]> Raphaƫl G. Git Repositories - distcook/blob - lib/export.sh
40e37045e55e50fdeba81957d68cc0b8c7e4710e
[distcook] / lib / export.sh
1 #! /bin/sh -e
2
3 # Clear config
4 cat /dev/null > root.conf
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.conf
9 done