X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c15969fd0a6280c60d2f35876b5343004fed2b11..4ad7388f6204180f983960593b7f885980517ca9:/trampoline.sh diff --git a/trampoline.sh b/trampoline.sh index ff0720c..97e078a 100755 --- a/trampoline.sh +++ b/trampoline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Cycript - Optimizing JavaScript Compiler/Runtime # Copyright (C) 2009-2013 Jay Freeman (saurik) @@ -72,7 +72,7 @@ for arch in "${archs[@]}"; do echo echo "static const char ${name}_${arch}_data_[] = {" - od -v -t x1 -t c -j "$((offset + fileoff))" -N "${filesize}" "${object}" | "${sed}" -e ' + LANG=C od -v -t x1 -t c -j "$((offset + fileoff))" -N "${filesize}" "${object}" | "${sed}" -e ' /^[0-7]/ ! { s@^ @// @; s/\(....\)/ \1/g; @@ -105,7 +105,7 @@ for arch in "${archs[@]}"; do echo "*/" echo - echo "static Trampoline ${name}_${arch}_ = {" + echo "_disused static Trampoline ${name}_${arch}_ = {" echo " ${name}_${arch}_data_," echo " sizeof(${name}_${arch}_data_)," echo " ${name}_${arch}_entry_,"