]> Raphaƫl G. Git Repositories - distcook/blob - lib/export.sh
Import cooking scripts
[distcook] / lib / export.sh
1 #! /bin/sh -e
2
3 # Clear config
4 cat /dev/null > root.config
5
6 # Append every config parameters
7 for i in `cat config/*.conf | perl -pne 'undef $_ if /^#/; s/=.*$//'`; do
8 eval echo ${i}=\$$i | tee -a root.config
9 done