root/branches/trivoallan/batch/undist.sh

Revision 12, 306 bytes (checked in by nperriault, 10 months ago)

Unistribute cli utility

  • Property svn:executable set to *
Line 
1 #!/bin/bash
2 # This command line script undistribute Symfonians configuration files
3 for file in `find ./config -type f -name *-dist |grep -v .svn`
4 do
5   newname=`echo $file| sed s/-dist//`
6   if [ ! -f $newname ]; then
7     cp $file $newname
8   else
9     echo "$newname has already been undistributed"
10   fi
11 done
Note: See TracBrowser for help on using the browser.