]> Raphaƫl G. Git Repositories - distcook/blob - lib/export.sh
e8c65fcb5a18f76a6a57d0149387545a66ce6c6a
[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