Skip to content
Snippets Groups Projects
generate.sh 335 B
Newer Older
Kasalehlia's avatar
Kasalehlia committed
#!/bin/bash
for inc in $(ls -1 includes/); do
	declare "$inc"="$(cat includes/$inc)"
	export "$inc"
done
cp .gitignore.template .gitignore
(echo "# ignoring from *.template generated files"
for file in $(ls *.template); do
	new=$(echo $file | sed 's/template/html/')
	/home/kasalehlia/mo $file > $new
	echo "$new"
done) >> .gitignore