summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorJohn H Terpstra <jht@dv1000.dyn.terpstra-world.org>2009-04-20 10:10:20 -0500
committerJohn H Terpstra <jht@dv1000.dyn.terpstra-world.org>2009-04-20 10:13:10 -0500
commitf493755aafacb128cb7b9148898f5ce1d02f6d69 (patch)
tree6bdc0ec3a3b3acc8baf7f90f56a70c0393f76354 /source3/script
parente3db09cf029f70473cb0b2a6d9e9fb8035a8b5f8 (diff)
downloadsamba-f493755aafacb128cb7b9148898f5ce1d02f6d69.tar.gz
samba-f493755aafacb128cb7b9148898f5ce1d02f6d69.tar.bz2
samba-f493755aafacb128cb7b9148898f5ce1d02f6d69.zip
Added ability to revert to old modules for make revert.
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/installmodules.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/script/installmodules.sh b/source3/script/installmodules.sh
index f70db003ed..127091d808 100755
--- a/source3/script/installmodules.sh
+++ b/source3/script/installmodules.sh
@@ -29,6 +29,11 @@ mtype=`basename $LIBDIR`
for p in $*; do
p2=`basename $p`
name=`echo $p2 | sed -es/${mtype}_//`
+ echo Preserving old module as $DESTDIR/$LIBDIR/$name.old
+ if [ -f $DESTDIR/$LIBDIR/$name ]; then
+ rm -f $DESTDIR/$LIBDIR/$name.old
+ mv $DESTDIR/$LIBDIR/$name $DESTDIR/$LIBDIR/$name.old
+ fi
echo Installing $p as $DESTDIR/$LIBDIR/$name
cp -f $p $DESTDIR/$LIBDIR/$name
chmod $INSTALLPERMS $DESTDIR/$LIBDIR/$name