mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-23 04:09:48 +00:00
5c43af2026
add package.sh script
13 lines
295 B
Bash
Executable File
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 $?
|