Skip to content

Commit

Permalink
a little script to automate exports...
Browse files Browse the repository at this point in the history
  • Loading branch information
lindes committed Aug 7, 2001
1 parent e54ec3e commit eba3a26
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions exportit
@@ -0,0 +1,18 @@
#!/bin/sh

# exportit -- a simple little script to export something and
# make a tarbal of it, in mostly automated fasion. Could do
# more error checking, but if things are happy, it works. :-)

name=ttyload

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

echo "Creating export of $name version $version (CVS: $cvsvers)"

cvs export -d "$dirname" -r "$cvsvers" $path
tar cvf "$dirname.tar" "$dirname"
gzip -9fv "$dirname.tar"

0 comments on commit eba3a26

Please sign in to comment.