1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #!/bin/sh
- #
- # "$Id: makesrcdist 150 2009-04-10 07:52:29Z mike $"
- #
- # makesrcdist - make a source distribution of newsd.
- #
- echo "Getting distribution..."
- if test $# = 0; then
- echo -n "Version number for distribution? "
- read version
- else
- version=$1
- fi
- cd /tmp
- if test $version = snapshot; then
- url="https://svn.easysw.com/public/newsd/trunk"
- else
- url="https://svn.easysw.com/public/newsd/tags/release-$version"
- svn copy https://svn.easysw.com/public/newsd/trunk/ "$url" \
- -m "Tag $version" || exit 1
- fi
- rm -rf newsd-$version
- svn export $url newsd-$version
- cd newsd-$version
- echo "Removing Subversion files and directories..."
- rm -rf www
- rm -f makesrcdist
- cd ..
- echo "Making .tar.gz distribution..."
- gtar czf newsd-$version-source.tar.gz newsd-$version
- echo "Making .tar.bz2 distribution..."
- gtar cjf newsd-$version-source.tar.bz2 newsd-$version
- echo "Removing distribution directory..."
- rm -rf newsd-$version
- echo "Done!"
- #
- # End of "$Id: makesrcdist 150 2009-04-10 07:52:29Z mike $".
- #
|