New -d (doc-cvs-tag) argument to include docs in the package.

git-svn-id: http://scm.dspace.org/svn/repo/trunk@1109 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Robert Tansley
2005-02-10 19:49:46 +00:00
parent 4d0a0810a9
commit 6ef891ac8b

View File

@@ -1,11 +1,19 @@
#!/bin/sh
USAGE="$0 cvs-tag version"
USAGE="$0 [-d <doc-cvs-tag>] cvs-tag version"
# Just in case you need to 'socksify' etc
CVS_COMMAND="cvs"
# Check we have command-line arguments
DOC_CVSTAG="no"
# Check for doc CVS tag
if [ "$1" = "-d" ]; then
DOC_CVSTAG=$2
shift;shift
fi
# Check we have required command-line arguments
if [ "$#" != "2" ]; then
echo $USAGE
exit 1
@@ -18,7 +26,7 @@ mkdir tmp
cd tmp
echo "Checking out core code..."
$CVS_COMMAND -q export -r $1 dspace
$CVS_COMMAND -Q export -r $1 dspace
# Don't need to include this script!
rm -f dspace/make-release-package
@@ -26,6 +34,21 @@ rm -f dspace/make-release-package
# Or silly cvsignore files
rm -f `find dspace -name .cvsignore`
# Check out docs if appropriate
if [ "$DOC_CVSTAG" != "no" ]; then
echo "Checking out docs..."
cd dspace
$CVS_COMMAND -Q export -r $DOC_CVSTAG docs
# Remove unwanted stuff
rm -f docs/.cvsignore
rm -rf docs/originals
rm -f docs/make-doc-package
cd ..
fi
echo "Creating tarball..."
mv dspace $FILENAME