Arrrgh, one more fix. Restores of long file names were
[Samba/gebeck_regimport.git] / source3 / script / revert.sh
blob68b47bf39d028648a21ba86f05825117ec3ca639
1 #!/bin/sh
2 BINDIR=$1
3 shift
5 for p in $*; do
6 if [ -f $BINDIR/$p.old ]; then
7 echo Restoring $BINDIR/$p.old as $BINDIR/$p
8 mv $BINDIR/$p $BINDIR/$p.new
9 mv $BINDIR/$p.old $BINDIR/$p
10 rm -f $BINDIR/$p.new
12 done
14 exit 0