mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-23 12:19:40 +00:00
28 lines
550 B
Bash
Executable File
28 lines
550 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
BASE_VERSION=839
|
|
NEW_VERSION=845
|
|
|
|
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
|