Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lindes committed Aug 7, 2001
1 parent eba3a26 commit dd93ba1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion exportit
Expand Up @@ -4,15 +4,22 @@
# make a tarbal of it, in mostly automated fasion. Could do
# more error checking, but if things are happy, it works. :-)

# name you wanna call this... Perhaps this should be `basename
# $path`, but whatever:
name=ttyload

# automagical settings for things:
path=`cat CVS/Repository`
version=`cat Version`
cvsvers=${name}_`echo "$version" | sed -e 's/[ \.]/_/g'`
dirname="$name-$version"

# let the user know what the settings came up with:
echo "Creating export of $name version $version (CVS: $cvsvers)"

cvs export -d "$dirname" -r "$cvsvers" $path
# export, and if that fails, bail.
cvs export -d "$dirname" -r "$cvsvers" $path || exit 1

# then tar and gzip:
tar cvf "$dirname.tar" "$dirname"
gzip -9fv "$dirname.tar"

0 comments on commit dd93ba1

Please sign in to comment.