blob: eeb53ebd92073d276b72c5420c03224e9026f262 (
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
- cat $file | grep -v '^#' >> $dir/local
- fi
- done
- done
|