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


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1313 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2006-04-06 17:22:39 +00:00
parent a5c7a1279f
commit 10a237f380
1 changed files with 26 additions and 16 deletions

View File

@ -37,28 +37,38 @@ fi
### Grab an export from the Subversion repository. ### Grab an export from the Subversion repository.
echo "Exporting into:" ${TARGET} echo "Exporting into:" ${TARGET}
svn export http://viewvc.tigris.org/svn/viewvc/${ROOT} ${TARGET}
### Various shifting, cleanup. for PLATFORM in unix windows; do
if test ${PLATFORM} = windows; then
EOL="--native-eol CRLF"
else
EOL="--native-eol LF"
fi
# Documentation is now also distributed together with the release, but svn export ${EOL} http://viewvc.tigris.org/svn/viewvc/${ROOT} ${TARGET}
# 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 ### Various shifting, cleanup.
rm -r ${TARGET}/viewcvs.sourceforge.net
# Remove some tools only useful for ViewVC developers: # Documentation is now also distributed together with the release, but
rm ${TARGET}/tools/make-release # we still copy the license file to its traditional place (it is small
# and many files still contain comments refering to this location):
# Make sure, permissions are reasonable: # Remove some not useful directories
find ${TARGET} -print | xargs chmod uoa+r rm -r ${TARGET}/{elemx,tests,tools,tparse,viewcvs.sourceforge.net,www}
find ${TARGET} -type d -print | xargs chmod uoa+x
# Cut the tarball: # Make sure permissions are reasonable:
tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz find ${TARGET} -print | xargs chmod uoa+r
find ${TARGET} -type d -print | xargs chmod uoa+x
# Create also a ZIP file for those poor souls :-) still using Windows: if test ${PLATFORM} = windows; then
zip -qor9 ${TARGET}.zip ${TARGET} # 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.' echo 'Done.'