Author: rey4
Date: 2006-04-06 10:22:39-0700
New Revision: 1313
Modified:
trunk/tools/make-release
Log:
Change make-release script to generate ZIPs with CRLF line endings.
Also, no longer include the elemx, tests, tools, tparse, and www
directories in releases.
* tools/make-release
Modified: trunk/tools/make-release
Url:
http://viewvc.tigris.org/source/browse/viewvc/trunk/tools/make-release?view=diff&rev=1313&p1=trunk/tools/make-release&p2=trunk/tools/make-release&r1=1312&r2=1313
==============================================================================
--- trunk/tools/make-release (original)
+++ trunk/tools/make-release 2006-04-06 10:22:39-0700
@@ -37,28 +37,38 @@
### Grab an export from the Subversion repository.
echo "Exporting into:" ${TARGET}
-svn export 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):
-
-cp ${TARGET}/viewvc.org/license-1.html ${TARGET}/LICENSE.html
-rm -r ${TARGET}/viewcvs.sourceforge.net
-
-# Remove some tools only useful for ViewVC developers:
-rm ${TARGET}/tools/make-release
-
-# Make sure, permissions are reasonable:
-find ${TARGET} -print | xargs chmod uoa+r
-find ${TARGET} -type d -print | xargs chmod uoa+x
-
-# Cut the tarball:
-tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz
-
-# Create also a ZIP file for those poor souls :-) still using Windows:
-zip -qor9 ${TARGET}.zip ${TARGET}
+for PLATFORM in unix windows; do
+ if test ${PLATFORM} = windows; then
+ EOL="--native-eol CRLF"
+ else
+ EOL="--native-eol LF"
+ fi
+
+ svn export ${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):
+
+ # Remove some not useful directories
+ rm -r ${TARGET}/{elemx,tests,tools,tparse,viewcvs.sourceforge.net,www}
+
+ # Make sure permissions are reasonable:
+ 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:
+ zip -qor9 ${TARGET}.zip ${TARGET}
+ else
+ # Cut the tarball:
+ tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz
+ fi
+
+ # remove target directory
+ rm -r ${TARGET}
+done
echo 'Done.'
|
|