BlinkenArea - GitList
Repositories
Blog
Wiki
BlinkenLibJava
Code
Commits
Branches
Tags
Search
Tree:
4db5fb0
Branches
Tags
master
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
BlinkenLibJava
mkpack.sh
BlinkenLibJava v.0.1.1 (2006-10-17)
Christian Heimke
commited
4db5fb0
at 2011-07-15 08:55:06
mkpack.sh
Blame
History
Raw
#! /bin/sh NAME=BlinkenLibJava VERSION_FILE=Makefile VERSION=$(cat $VERSION_FILE | grep 'version [0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' | sed 's/^.*version \([0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*$/\1/') DATE=$(cat $VERSION_FILE | grep 'date [0-9]\+-[0-9]\+-[0-9]\+' | sed 's/^.*date \([0-9]\+-[0-9]\+-[0-9]\+\).*$/\1/') PACK="${NAME}-${VERSION}_${DATE}" FILES="ChangeLog Makefile org/blinkenarea/BlinkenLib/*.java mkpack.sh" rm -rf $PACK mkdir $PACK for FILE in $FILES do mkdir -p $(dirname $PACK/$FILE) cp $FILE $PACK/$FILE done ARCH=$PACK.tar.bz2 if [ -f $ARCH ] then ARCH=$ARCH.new fi tar jcf $ARCH $PACK rm -rf $PACK