#!/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 cracking.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