mirror of https://github.com/bitcoin/bitcoin
Merge #20735: script: Remove outdated extract-osx-sdk.sh
pull/20740/head1fbb8b6fa3
script: Remove outdated extract-osx-sdk.sh (Hennadii Stepanov) Pull request description: The removed script was used to prepare `MacOSX10.11.sdk` which we do not use since 0.20 (7e2104433c
from #16392). See https://github.com/bitcoin-core/docs/pull/68. ACKs for top commit: laanwj: ACK1fbb8b6fa3
Tree-SHA512: ab5128ec2c505a43b1a12e06abf38d8fa8f62a03efe760de2c842550e82f68ca512dee1b6c220a4f8af2465a9c35a429ca91cb179cc4ce016fcd87c61fbc8b07
commit
f4ac48d30a
@ -1,34 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2016-2020 The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
export LC_ALL=C
|
||||
set -e
|
||||
|
||||
INPUTFILE="Xcode_7.3.1.dmg"
|
||||
HFSFILENAME="5.hfs"
|
||||
SDKDIR="Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"
|
||||
|
||||
7z x "${INPUTFILE}" "${HFSFILENAME}"
|
||||
SDKNAME="$(basename "${SDKDIR}")"
|
||||
SDKDIRINODE=$(ifind -n "${SDKDIR}" "${HFSFILENAME}")
|
||||
fls "${HFSFILENAME}" -rpF ${SDKDIRINODE} |
|
||||
while read type inode filename; do
|
||||
inode="${inode::-1}"
|
||||
if [ "${filename:0:14}" = "usr/share/man/" ]; then
|
||||
continue
|
||||
fi
|
||||
filename="${SDKNAME}/$filename"
|
||||
echo "Extracting $filename ..."
|
||||
mkdir -p "$(dirname "$filename")"
|
||||
if [ "$type" = "l/l" ]; then
|
||||
ln -s "$(icat "${HFSFILENAME}" $inode)" "$filename"
|
||||
else
|
||||
icat "${HFSFILENAME}" $inode >"$filename"
|
||||
fi
|
||||
done
|
||||
echo "Building ${SDKNAME}.tar.gz ..."
|
||||
MTIME="$(istat "${HFSFILENAME}" "${SDKDIRINODE}" | perl -nle 'm/Content Modified:\s+(.*?)\s\(/ && print $1')"
|
||||
find "${SDKNAME}" | sort | tar --no-recursion --mtime="${MTIME}" --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > "${SDKNAME}.tar.gz"
|
||||
echo 'All done!'
|
Loading…
Reference in new issue