cctools-port/tools/create_ld64_merge_patch.sh
Thomas Pöchtrager 11dc49ae17 Update README.md
2020-03-20 13:35:53 +01:00

29 lines
551 B
Bash
Executable File

#!/usr/bin/env bash
BASE_VERSION=450.3
NEW_VERSION=512.4
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