Updated test.sh (support for osx and some fixes)
[hashcat.git] / tools / package_bin.sh
index 6239643..e0f8794 100755 (executable)
@@ -6,7 +6,7 @@
 ##
 
 export IN=$HOME/oclHashcat
-export OUT=$HOME/xy/oclHashcat-2.01
+export OUT=$HOME/xy/oclHashcat-2.10
 
 rm -rf $OUT
 rm -rf $OUT.7z
@@ -24,12 +24,20 @@ cp -r $IN/rules                                 $OUT/
 cp -r $IN/extra                                 $OUT/
 cp    $IN/example.dict                          $OUT/
 cp    $IN/example[0123456789]*.hash             $OUT/
-cp    $IN/example[0123456789]*.sh               $OUT/
 cp    $IN/example[0123456789]*.cmd              $OUT/
 
 cp -r $IN/include                               $OUT/
 cp -r $IN/OpenCL                                $OUT/
 
+# since for the binary distribution we still use .bin, we need to rewrite the commands
+# within the example*.sh files
+
+for example in example[0123456789]*.sh; do
+
+  sed 's!./oclHashcat !./oclHashcat64.bin !' $IN/${example} > $OUT/${example}
+
+done
+
 dos2unix $OUT/rules/*.rule
 dos2unix $OUT/rules/hybrid/*.rule
 dos2unix $OUT/docs/*