mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-26 21:50:26 +00:00
42109667d4
(compiles now - everything else is *untested*) other changes: * rename 'machochecker' to 'machocheck' * get rid of duplicate $CFLAGS * fix a typo in the ios toolchain README * package.sh: remove the autom4te.cache directory
36 lines
703 B
Bash
Executable File
36 lines
703 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
DIR=`pwd`
|
|
PACKAGETMP=`mktemp -d /tmp/XXXXXXXX`
|
|
|
|
REVHASH=`git rev-parse --short HEAD`
|
|
CCTOOLSVER=`cat README.md | grep "Current Version: " | awk '{print $3}'`
|
|
LD64VER=`cat README.md | grep "Current Version: " | awk '{print $5}'`
|
|
|
|
PACKAGE=cctools-${CCTOOLSVER}-${LD64VER%?}_$REVHASH
|
|
|
|
mkdir $PACKAGETMP/$PACKAGE
|
|
cp -r . $PACKAGETMP/$PACKAGE
|
|
|
|
pushd $PACKAGETMP &>/dev/null
|
|
|
|
pushd $PACKAGE &>/dev/null
|
|
git clean -fdx &>/dev/null
|
|
rm -rf .git
|
|
rm -f cctools*.tar.*
|
|
rm -f package.sh
|
|
rm -f .gitignore
|
|
pushd cctools &>/dev/null
|
|
./autogen.sh
|
|
rm -rf autom4te.cache
|
|
popd &>/dev/null
|
|
popd &>/dev/null
|
|
|
|
tar -cf - * | xz -9 -c - > $DIR/$PACKAGE.tar.xz
|
|
|
|
popd &>/dev/null
|
|
|
|
rm -rf $PACKAGETMP
|