cctools-port/tools/create_cctools_merge_patch.sh
Thomas Pöchtrager 9cf5b49b81 cctools 877.5
2015-10-23 19:07:14 +02:00

28 lines
552 B
Bash
Executable File

#!/usr/bin/env bash
BASE_VERSION=870
NEW_VERSION=877.5
set -e
CDIR=`pwd`
TMPDIR=`mktemp -d`
pushd $TMPDIR
wget http://www.opensource.apple.com/tarballs/cctools/cctools-$BASE_VERSION.tar.gz
wget http://www.opensource.apple.com/tarballs/cctools/cctools-$NEW_VERSION.tar.gz
tar xzf cctools-$BASE_VERSION* &>/dev/null
tar xzf cctools-$NEW_VERSION* &>/dev/null
pushd cctools-$NEW_VERSION*
echo "creating patch..."
diff -Naur ../cctools-$BASE_VERSION . > "$CDIR/cctools-${BASE_VERSION}-${NEW_VERSION}.patch" || true
echo "done"
popd
rm -rf $TMPDIR