* tools/make-release

Fix some bugs in this script which prevented the to-be-deleted
  directories from actually being deleted.



git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1586 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/options-overhaul
cmpilato 2007-04-10 07:04:51 +00:00
parent ffe04321f3
commit 00b8f8a74e
1 changed files with 11 additions and 4 deletions

View File

@ -45,7 +45,10 @@ for PLATFORM in unix windows; do
EOL="--native-eol LF" EOL="--native-eol LF"
fi fi
svn export ${EOL} http://viewvc.tigris.org/svn/viewvc/${ROOT} ${TARGET} echo "Beginning build for ${PLATFORM}:"
echo " Exporting source code..."
svn export --quiet ${EOL} http://viewvc.tigris.org/svn/viewvc/${ROOT} ${TARGET}
### Various shifting, cleanup. ### Various shifting, cleanup.
@ -62,24 +65,28 @@ for PLATFORM in unix windows; do
viewcvs.sourceforge.net \ viewcvs.sourceforge.net \
viewvc.org \ viewvc.org \
www; do www; do
if [ -e ${JUNK} ]; then if [ -d ${TARGET}/${JUNK} ]; then
rm -f ${JUNK} echo " Removing ${TARGET}/${JUNK}..."
rm -r ${TARGET}/${JUNK}
fi fi
done done
# Make sure permissions are reasonable: # Make sure permissions are reasonable:
echo " Normalizing permissions..."
find ${TARGET} -print | xargs chmod uoa+r find ${TARGET} -print | xargs chmod uoa+r
find ${TARGET} -type d -print | xargs chmod uoa+x find ${TARGET} -type d -print | xargs chmod uoa+x
if test ${PLATFORM} = windows; then if test ${PLATFORM} = windows; then
# Create also a ZIP file for those poor souls :-) still using Windows: # Create also a ZIP file for those poor souls :-) still using Windows:
echo " Creating ZIP archive..."
zip -qor9 ${TARGET}.zip ${TARGET} zip -qor9 ${TARGET}.zip ${TARGET}
else else
# Cut the tarball: # Cut the tarball:
echo " Creating tarball archive..."
tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz
fi fi
# remove target directory # remove target directory
rm -r ${TARGET} rm -r ${TARGET}
done done
echo 'Done.' echo "Done."