projects
/
cycript.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove APR dependency: getopt_long actually works.
[cycript.git]
/
readline.sh
diff --git
a/readline.sh
b/readline.sh
index d71ead32a044e9d5d59dd32d98640de5943d6be3..cd11152af72f83c22cb85c08efbaf3dcdacf87ad 100755
(executable)
--- a/
readline.sh
+++ b/
readline.sh
@@
-1,4
+1,4
@@
-#!/
bin/
bash
+#!/
usr/bin/env
bash
# Cycript - Optimizing JavaScript Compiler/Runtime
# Copyright (C) 2009-2013 Jay Freeman (saurik)
# Cycript - Optimizing JavaScript Compiler/Runtime
# Copyright (C) 2009-2013 Jay Freeman (saurik)
@@
-21,20
+21,9
@@
set -e
set -e
-version=$1
-# XXX: verify version
-
-readline=readline-${version}
arch="-arch i386 -arch x86_64"
arch="-arch i386 -arch x86_64"
-rm -f "${readline}".tar.gz
-rm -rf "${readline}"
-
-curl -O ftp://ftp.cwru.edu/pub/bash/"${readline}".tar.gz
-tar -zxf "${readline}".tar.gz
-
-cd "${readline}"
-
+cd readline
CFLAGS="-g -O2 ${arch}" ./configure --disable-shared --enable-static
make
CFLAGS="-g -O2 ${arch}" ./configure --disable-shared --enable-static
make
-ln -s . readline
+ln -s
f
. readline