first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
[samba.git] / packaging / Example / package-prep
index 5e5834a6d3c8b6e17b4ccf68e3cb23672606c2f3..e8f5089a865f67fbabd467715e7b8b0b181ac589 100755 (executable)
@@ -7,7 +7,7 @@ tar xvf skeleton.tar
 ( cd /usr/local;
        mv man man.orig;
        mv samba samba.orig;
-       DIRNOW=`pwd1`;
+       NOWDIR=`pwd`;
                ln -sf $NOWDIR/usr/local/man man;
                ln -sf $NOWDIR/usr/local/samba samba; )
 
@@ -32,9 +32,8 @@ tar cvf install.tar usr var
 
 # Clean up original sources preserving all configured files
 #        Note: This will allow installers to check build options
-cd samba-X.X.X/source/bin
-rm -f *
-cd ..
+cd samba-X.X.X/source
+rm -f ../source/bin/*
 make clean
 cd ../..
 tar cvf samba-X.X.X.tar samba-X.X.X