-#!/bin/sh -e
+#!/bin/sh
# Copyright (C) 2001 Free Software Foundation, Inc.
# file, but you are not obligated to do so. If you do not wish to do
# so, delete this exception statement from your version.
+set -e
CVSROOT=:pserver:cvs@sunsite.dk:/pack/anoncvs
SUBDIR=wget.cvs.$$
;;
-r)
shift
- EXPORT_TAG="-r $1"
+ EXPORT_TAG="-r '$1'"
;;
--force-version)
shift
echo "-----------" >$O
# Checkout clean sources from the repository.
-echo $e_n "Exporting ($EXPORT_TAG) out the CVS tree to $SUBDIR... $e_c"
+echo $e_n "Exporting ($EXPORT_TAG) out the CVS tree to $TMPDIR/$SUBDIR... $e_c"
cvs -d $CVSROOT export $EXPORT_TAG -d $SUBDIR wget 1>>$O 2>&1
echo "done."
# Create the distribution file.
echo $e_n "Creating distribution tarball... $e_c"
$MAKE dist 1>>$O 2>&1
-mv wget-*.tar.gz $DEST_DIR
-echo "done."
+archive=`echo wget-*.tar.gz`
+mv "$archive" $DEST_DIR
+echo "$archive"
cd ..