blob: 1c00de946d7761207307b05e4fef511d9b0e4151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
#( cd .. ; tar cvfz $(PROJECT)-$(shell git log --date='format:%Y%M%d' --pretty=format:%ad_%h @^ ).tar.gz $(PROJECT) ;
TMP=${TMP:-/tmp}
PROJECT="$1"
VERSION="$( git log --date='format:%Y%m%d' --pretty=format:%ad_%h @^ )"
rm -rf $TMP/$PROJECT-$VERSION
mkdir -p $TMP/$PROJECT-$VERSION
cp -a * $TMP/$PROJECT-$VERSION
cd $TMP
tar cvfz $PROJECT-$VERSION.tar.gz $PROJECT-$VERSION
naptime $PROJECT-$VERSION.tar.gz
md5sum $PROJECT-$VERSION.tar.gz
|