Skip to content

Commit

Permalink
Made few things more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmid committed Mar 15, 2014
1 parent 9ad9804 commit ec111d5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions kindle-5.4-jailbreak/pack
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

recode -f utf8..flat < cti-me.txt.utf-8 > cti-me.txt
zip kindle-5.4-jailbreak.zip Update_jb_\$\(cd\ mnt\ \&\&\ cd\ us\ \&\&\ sh\ jb.sh\).bin bridge.sh cti-me.txt jb.sh
source ../config

recode -f utf8..flat < README > $README.txt
zip kindle-5.4-jailbreak.zip Update_jb_\$\(cd\ mnt\ \&\&\ cd\ us\ \&\&\ sh\ jb.sh\).bin bridge.sh $README.txt jb.sh
rm -f $README.txt
4 changes: 2 additions & 2 deletions transifex-framework2sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ echo "begin;" > ../../../../framework_$VER.sql
find . -name "*_$HACKLANG.properties" | while read item
do
cs="$item"
en=${cs%_cs.properties}_en_US.properties
engb=${cs%_cs.properties}_en_GB.translation
en=${cs%_$HACKLANG.properties}_en_US.properties
engb=${cs%_$HACKLANG.properties}_en_GB.translation
OLDIFS=$IFS
IFS="="
echo "Processing $cs"
Expand Down
4 changes: 2 additions & 2 deletions transifex-pillow2sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ VER="5.0.3"
cd transifex/src/$VER/pillow

echo "begin;" > ../../../../pillow_$VER.sql
find . -name "*.properties" -path './cs/*' | while read item
find . -name "*.properties" -path "./$HACKLANG/*" | while read item
do
cs="$item"
en=${cs//cs/en_US}
en=${cs//\/$HACKLANG\//\/en_US\/}
engb=./usr/share/webkit-1.0/pillow/locales/en-GB/${en#./en_US/}
engb=${engb%.properties}.js
OLDIFS=$IFS
Expand Down
4 changes: 2 additions & 2 deletions transifex-waf2sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ VER="5.0.3"
cd transifex/src/$VER/waf

echo "begin;" > ../../../../waf_$VER.sql
find . -name "*.properties" -path './cs/*' | while read item
find . -name "*.properties" -path "./$HACKLANG/*" | while read item
do
cs="$item"
en=${cs//cs/en_US}
en=${cs//\/$HACKLANG\//\/en_US\/}
echo $en
project=${en#./en_US/}
prpath=${project#*/}
Expand Down

0 comments on commit ec111d5

Please sign in to comment.