Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a little script to automate exports...
- Loading branch information
lindes
committed
Aug 7, 2001
1 parent
e54ec3e
commit eba3a26
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |