Skip to content

Commit

Permalink
tarball creation script
Browse files Browse the repository at this point in the history
  • Loading branch information
Wakaba committed Jun 12, 2010
1 parent 5e0f4ca commit 02339ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bin/create-tarball.sh
@@ -0,0 +1,22 @@
#!/bin/sh

basename=tama-`ruby -e 'load "lib/tama_m.rb"; puts "#{TAMA::Version}"'`
tarname=$basename.tar
gzname=$tarname.gz
if [ -f $gzname ]; then
echo "$gzname: File exists"
exit 1
fi

echo $tarname...

mkdir $basename || exit 1

cp -R --preserve=timestamps bin lib doc conf html tools config *.rb *.ja $basename
tar -cf $tarname --exclude=*~ --atime-preserve --preserve-permission --owner apache --group apache $basename
gzip $tarname

rm -fr $basename

## Author: Wakaba <w@suika.fam.cx>
## License: Public Domain.

0 comments on commit 02339ae

Please sign in to comment.