blob: 06aa7fbec999382c6a400e359865735f4fb0c85d (
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" == "violations.ignore.d" ]; 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
|