move orig/ to .orig
gcc looks for programs in a path relative to its executable's location..
This commit is contained in:
parent
f821b0e046
commit
0a74404c97
1 changed files with 3 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
# Since the ghc-android wrappers actually hardcode the path to the
|
# Since the ghc-android wrappers actually hardcode the path to the
|
||||||
# toolchain, and we want to wrap the toolchain programs, the binaries
|
# toolchain, and we want to wrap the toolchain programs, the binaries
|
||||||
# are moved to bin/orig/ and replaced by wrappers.
|
# are moved to .orig and replaced by wrappers.
|
||||||
|
|
||||||
androidversion="$1"
|
androidversion="$1"
|
||||||
|
|
||||||
|
@ -25,11 +25,9 @@ wrap () {
|
||||||
# location to toolchain as installed by ghc-android
|
# location to toolchain as installed by ghc-android
|
||||||
androidtoolchain="$HOME/.ghc/$(cat $top/abiversion)/bin"
|
androidtoolchain="$HOME/.ghc/$(cat $top/abiversion)/bin"
|
||||||
|
|
||||||
mkdir -p "$androidtoolchain/orig"
|
for f in $(find "$androidtoolchain" -maxdepth 1 -not -type d -printf '%f\n' | grep -v \.orig); do
|
||||||
|
|
||||||
for f in $(find "$androidtoolchain" -maxdepth 1 -not -type d -printf '%f\n'); do
|
|
||||||
bin="$androidtoolchain/$f"
|
bin="$androidtoolchain/$f"
|
||||||
orig="$androidtoolchain/orig/$f"
|
orig="$androidtoolchain/$f.orig"
|
||||||
if [ ! -e "$orig" ]; then
|
if [ ! -e "$orig" ]; then
|
||||||
cp -a "$bin" "$orig"
|
cp -a "$bin" "$orig"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue