Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wakaba
committed
Jun 12, 2010
1 parent
5e0f4ca
commit 02339ae
Showing
1 changed file
with
22 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,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. |