(cherry picked from commit2076085457) (cherry picked from commit5d453d2dae) (cherry picked from commitfcc6e05c61) (cherry picked from commitd9a6d80350)
17 lines
337 B
Bash
Executable file
17 lines
337 B
Bash
Executable file
#!/bin/bash
|
|
|
|
DATE=`date +%Y%m%d`
|
|
VERSION=1.1.29
|
|
PKGNAME=389-admin
|
|
TAG=${TAG:-$PKGNAME-$VERSION}
|
|
SRCNAME=${PKGNAME}-${VERSION}
|
|
echo you must be in the admin server git repo to use this
|
|
test -d .git || {
|
|
echo bye ; exit 1
|
|
}
|
|
if [ -z "$1" ] ; then
|
|
dir=.
|
|
else
|
|
dir="$1"
|
|
fi
|
|
git archive --prefix=$SRCNAME/ $TAG | bzip2 > $dir/$SRCNAME.tar.bz2
|