cctools-port/tools/create_ld64_merge_patch.sh
Thomas Pöchtrager 05dea216c9 ld64 274.2
2017-02-04 13:16:44 +01:00

29 lines
555 B
Bash
Executable File

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