cctools-port/package.sh
Thomas Pöchtrager 5c43af2026 FreeBSD port
add package.sh script
2013-12-14 09:56:01 +01:00

13 lines
295 B
Bash
Executable File

#!/usr/bin/env bash
dir=`pwd`
packagetmp=`mktemp -d`
cp -r . $packagetmp || exit $?
pushd $packagetmp >/dev/null
./cleanup.sh 2>/dev/null
rm -rf .git 2>/dev/null
rm cctools*.tar.* 2>/dev/null
tar -pczf $dir/cctools-XXX-ld64-XXX.tar.gz * || exit $?
popd >/dev/null
rm -rf $packagetmp || exit $?