Author: cmpilato
Date: 2007-04-10 08:45:21-0700
New Revision: 1596
Modified:
branches/1.0.x/tools/make-release
Log:
Update make-release script with latest from trunk.
Modified: branches/1.0.x/tools/make-release
Url:
http://viewvc.tigris.org/source/browse/viewvc/branches/1.0.x/tools/make-release?view=diff&rev=1596&p1=branches/1.0.x/tools/make-release&p2=branches/1.0.x/tools/make-release&r1=1595&r2=1596
==============================================================================
--- branches/1.0.x/tools/make-release (original)
+++ branches/1.0.x/tools/make-release 2007-04-10 08:45:21-0700
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved.
+# Copyright (C) 1999-2007 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
@@ -45,30 +45,50 @@
EOL="--native-eol LF"
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.
# Documentation is now also distributed together with the release, but
# we still copy the license file to its traditional place (it is small
# and many files still contain comments refering to this location):
+ echo " Copying LICENSE.html into place..."
+ cp ${TARGET}/viewvc.org/license-1.html ${TARGET}/LICENSE.html
# Remove some not useful directories
- rm -r ${TARGET}/{elemx,tests,tools,tparse,viewcvs.sourceforge.net,www}
+ for JUNK in elemx \
+ notes \
+ tests \
+ tools \
+ tparse \
+ viewcvs.sourceforge.net \
+ viewvc.org \
+ www; do
+ if [ -d ${TARGET}/${JUNK} ]; then
+ echo " Removing ${TARGET}/${JUNK}..."
+ rm -r ${TARGET}/${JUNK}
+ fi
+ done
# Make sure permissions are reasonable:
+ echo " Normalizing permissions..."
find ${TARGET} -print | xargs chmod uoa+r
find ${TARGET} -type d -print | xargs chmod uoa+x
if test ${PLATFORM} = windows; then
# Create also a ZIP file for those poor souls :-) still using Windows:
+ echo " Creating ZIP archive..."
zip -qor9 ${TARGET}.zip ${TARGET}
else
# Cut the tarball:
+ echo " Creating tarball archive..."
tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz
fi
# remove target directory
rm -r ${TARGET}
done
-echo 'Done.'
+echo "Done."
|
|