X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/800811a0cfc03717e043632a9883c2aad9c5ab31..c22e009d49bb891a560f8a6219fe3499859eff4b:/readline.sh diff --git a/readline.sh b/readline.sh index d71ead3..cd11152 100755 --- 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) @@ -21,20 +21,9 @@ set -e -version=$1 -# XXX: verify version - -readline=readline-${version} 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 -ln -s . readline +ln -sf . readline