"fixed zip archives to not contain empty dirs for the contrib modules and some other optimisations"

This commit is contained in:
Ralf Becker 2008-11-11 13:26:03 +00:00
parent 19b7b62f8a
commit e06e3142a6

View File

@ -82,10 +82,11 @@ then
svn checkout -r $SVNREVISION $SVNURL"$CONTRIBMODULE" svn checkout -r $SVNREVISION $SVNURL"$CONTRIBMODULE"
fi fi
done done
else # updating an existing checkout in the build-root else
[ -z "$SVNREVISION" ] && SVNREVISION=HEAD
echo -n "Updating existing checkout ... " >> $LOGFILE 2>&1 echo -n "Updating existing checkout ... " >> $LOGFILE 2>&1
cd egroupware cd egroupware
svn update -r HEAD . * svn update -r $SVNREVISION . *
fi fi
cd $ANONCVSDIR cd $ANONCVSDIR
@ -93,8 +94,7 @@ cd $ANONCVSDIR
echo "done" >> $LOGFILE 2>&1 echo "done" >> $LOGFILE 2>&1
echo -n "Change directory rights back ... " >> $LOGFILE 2>&1 echo -n "Change directory rights back ... " >> $LOGFILE 2>&1
find . -type d -exec chmod 755 {} \; chmod -R u=rwX,g=rX,o=rX . >> $LOGFILE 2>&1
find . -type f -exec chmod 644 {} \;
echo "done" >> $LOGFILE 2>&1 echo "done" >> $LOGFILE 2>&1
echo -n "Starting anti virus scan ... " >> $LOGFILE 2>&1 echo -n "Starting anti virus scan ... " >> $LOGFILE 2>&1
@ -121,11 +121,11 @@ done
echo "done" >> $LOGFILE 2>&1 echo "done" >> $LOGFILE 2>&1
echo -n "building zip ... " >> $LOGFILE 2>&1 echo -n "building zip ... " >> $LOGFILE 2>&1
find $ONLY_CONTRIB > /tmp/exclude.list
zip -q -r -9 $SRCDIR/$PACKAGENAME-$VERSION.$PACKAGING.zip egroupware -x@/tmp/exclude.list >> $LOGFILE 2>&1
for CONTRIBMODULE in $EXTRAPACKAGES; do for CONTRIBMODULE in $EXTRAPACKAGES; do
zip -q -r -9 $SRCDIR/$PACKAGENAME-$CONTRIBMODULE-$VERSION.$PACKAGING.zip egroupware/$CONTRIBMODULE >> $LOGFILE 2>&1 zip -q -r -9 $SRCDIR/$PACKAGENAME-$CONTRIBMODULE-$VERSION.$PACKAGING.zip egroupware/$CONTRIBMODULE >> $LOGFILE 2>&1
done done
rm -rf $ONLY_CONTRIB >> $LOGFILE 2>&1
zip -q -r -9 $SRCDIR/$PACKAGENAME-$VERSION.$PACKAGING.zip egroupware >> $LOGFILE 2>&1
echo "done" >> $LOGFILE 2>&1 echo "done" >> $LOGFILE 2>&1
echo "Building tar.gz, tar.bz and zip archives finnished" >> $LOGFILE 2>&1 echo "Building tar.gz, tar.bz and zip archives finnished" >> $LOGFILE 2>&1