blob: 3ba8a8a66d35bdd904dc96506a8f03eea7c79b8b (
plain)
- #!/bin/sh
- # Bad ass temp script to simply generate file "local" containing *all*
- # other files in it (until a proper cfengine script is written
- for dir in ignore.d.server ignore.d.workstation violations.ignore.d; do
- echo regenerating $dir
- rm -f $dir/local
- # Include server lines in workstation as well
- if [ "$dir" == "ignore.d.workstation" ]; then
- for file in ignore.d.server/*; do
- if [ -f $file -a `basename $file` != "local" ]; then
- echo "### $file" >> $dir/local
- cat $file >> $dir/local
- fi
- done
- fi
- for file in $dir/*; do
- if [ -f $file -a `basename $file` != "local" ]; then
- echo "### $file" >> $dir/local
- cat $file >> $dir/local
- fi
- done
- done
|