Page MenuHomePhabricator

makedist
No OneTemporary

makedist

#!/usr/bin/env sh
if [ ! -f library/cdr_generic.php ]; then
echo "Run this program inside the CDRTool directory"
exit 1
fi
style=""
pkgignore=".pkgignorelite"
if [ $# -eq 1 -a "$1" = "full" ]; then
style="_full"
pkgignore=".pkgignore"
fi
dirname=`basename $PWD`
basedir=`dirname $PWD`
version=`cat version`
archive="CDRTool-$version$style.tar.gz"
if [ "$dirname" != "CDRTool" ]; then
create=1
else
create=0
fi
if [ $create -eq 1 ]; then
(cd ../; ln -s "$dirname" CDRTool)
fi
echo "Creating $archive"
GZIP=--best
tar --exclude-from=$pkgignore --directory ../ -zchf "$archive" CDRTool
if [ $create -eq 1 ]; then
rm ../CDRTool
fi

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 2:19 PM (22 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3409313
Default Alt Text
makedist (669 B)

Event Timeline