android-ndk: use install_symlink

This commit is contained in:
Jack Nagel 2014-03-25 10:54:36 -05:00
parent 09de93a757
commit a3378855d1

View file

@ -14,14 +14,14 @@ class AndroidNdk < Formula
# Create a dummy script to launch the ndk apps
ndk_exec = prefix+'ndk-exec.sh'
(ndk_exec).write <<-EOS.undent
ndk_exec.write <<-EOS.undent
#!/bin/sh
BASENAME=`basename $0`
EXEC="#{prefix}/$BASENAME"
test -f "$EXEC" && exec "$EXEC" "$@"
EOS
(ndk_exec).chmod 0755
%w[ ndk-build ndk-gdb ndk-stack ].each { |app| ln_s ndk_exec, bin+app }
ndk_exec.chmod 0755
%w[ndk-build ndk-gdb ndk-stack].each { |app| bin.install_symlink ndk_exec => app }
end
def caveats; <<-EOS.undent