]> git.saurik.com Git - cycript.git/blobdiff - trampoline.sh
Let's reserve # entirely for the pre-processor.
[cycript.git] / trampoline.sh
index ff0720cb2168e88145eae10e23ecdc15fc6e5225..97e078a40a4e514ee20deb74a5304370f8b31623 100755 (executable)
@@ -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_,"