45
45
fi
46
46
47
47
IBSTRINGSDIR=ibstrings
48
- XIB_BASE=" $GIT_DIR /Interfaces/English.lproj"
48
+ # XIB_BASE="$GIT_DIR/Interfaces/English.lproj"
49
49
50
50
echo " Cleaning remains of any previous nightly builds..."
51
51
@@ -56,39 +56,39 @@ rm -f languagetranslations.zip &> /dev/null
56
56
rm -rf languagetranslations & > /dev/null
57
57
rm -rf $IBSTRINGSDIR & > /dev/null
58
58
59
- echo " Creating IB strings files for rekeying..."
60
- mkdir -p $IBSTRINGSDIR /English.lproj
61
- find " $XIB_BASE " \( -name " *.xib" \) | while read FILE; do
62
- printf " \t$( basename ${FILE} ) \n"
63
- ibtool " $FILE " --export-strings-file " $IBSTRINGSDIR /English.lproj/` basename " $FILE " .xib` .strings"
64
- done
59
+ # echo "Creating IB strings files for rekeying..."
60
+ # mkdir -p $IBSTRINGSDIR/English.lproj
61
+ # find "$XIB_BASE" \( -name "*.xib" \) | while read FILE; do
62
+ # printf "\t$(basename ${FILE})\n"
63
+ # ibtool "$FILE" --export-strings-file "$IBSTRINGSDIR/English.lproj/`basename "$FILE" .xib`.strings"
64
+ # done
65
65
66
- echo " Downloading localizations to merge in..."
66
+ # echo "Downloading localizations to merge in..."
67
67
# Download the latest language translations, and copy them into the Resources directory
68
- curl http://dev.sequelpro.com/translate/download/sequelpro > languagetranslations.zip
69
- unzip -q languagetranslations.zip -d languagetranslations
70
-
71
- echo " Rekeying localization files, translating xibs, merging localizations..."
72
- find languagetranslations/Resources \( -name " *.lproj" \) | while read FILE; do
73
- loc=` basename " $FILE " `
74
- mkdir " $IBSTRINGSDIR /$loc "
75
- printf " \tRekeying localization: $loc \n"
76
- find " $FILE " \( -name " *.strings" \) | while read STRFILE; do
77
- file=` basename " $STRFILE " .strings`
78
- printf " \t\tFile: $file \n"
79
- ibkeyfile=" $IBSTRINGSDIR /English.lproj/$file .strings"
80
- xibfile=" $XIB_BASE /$file .xib"
81
- transfile=" $IBSTRINGSDIR /$loc /$file .strings"
82
- if [ -e " $ibkeyfile " ] && [ -e " $xibfile " ]; then
83
- $BUILD_DIR /xibLocalizationPostprocessor " $STRFILE " " $ibkeyfile " " $transfile "
68
+ # curl http://dev.sequelpro.com/translate/download/sequelpro > languagetranslations.zip
69
+ # unzip -q languagetranslations.zip -d languagetranslations
70
+ #
71
+ # echo "Rekeying localization files, translating xibs, merging localizations..."
72
+ # find languagetranslations/Resources \( -name "*.lproj" \) | while read FILE; do
73
+ # loc=`basename "$FILE"`
74
+ # mkdir "$IBSTRINGSDIR/$loc"
75
+ # printf "\tRekeying localization: $loc\n"
76
+ # find "$FILE" \( -name "*.strings" \) | while read STRFILE; do
77
+ # file=`basename "$STRFILE" .strings`
78
+ # printf "\t\tFile: $file\n"
79
+ # ibkeyfile="$IBSTRINGSDIR/English.lproj/$file.strings"
80
+ # xibfile="$XIB_BASE/$file.xib"
81
+ # transfile="$IBSTRINGSDIR/$loc/$file.strings"
82
+ # if [ -e "$ibkeyfile" ] && [ -e "$xibfile" ]; then
83
+ # $BUILD_DIR/xibLocalizationPostprocessor "$STRFILE" "$ibkeyfile" "$transfile"
84
84
# we no longer need the original file and don't want to copy it
85
- rm -f " $STRFILE "
86
- ibtool " $xibfile " --import-strings-file " $transfile " --compile " languagetranslations/Resources/$loc /$file .nib"
87
- fi
88
- done
89
- printf " \tCopying localization: $loc \n"
90
- cp -R " $FILE " " Sequel Pro.app/Contents/Resources/"
91
- done
85
+ # rm -f "$STRFILE"
86
+ # ibtool "$xibfile" --import-strings-file "$transfile" --compile "languagetranslations/Resources/$loc/$file.nib"
87
+ # fi
88
+ # done
89
+ # printf "\tCopying localization: $loc\n"
90
+ # cp -R "$FILE" "Sequel Pro.app/Contents/Resources/"
91
+ # done
92
92
93
93
# echo "Copying nightly icon"
94
94
@@ -108,11 +108,11 @@ php -r '$infoplistloc = "'$BUILD_DIR'/Sequel Pro.app/Contents/Info.plist";
108
108
109
109
# Update versions in localised string files
110
110
php -r ' $englishstringsloc = "/' $BUILD_DIR ' /Sequel Pro.app/Contents/Resources/English.lproj/InfoPlist.strings";
111
- $englishstrings = file_get_contents($englishstringsloc);
112
- $englishstrings = mb_convert_encoding($englishstrings, "UTF-8", "UTF-16");
113
- $englishstrings = preg_replace("/version [^\,\"]+/iu", "nightly build for r' $SHORT_HASH ' ", $englishstrings);
114
- $englishstrings = mb_convert_encoding($englishstrings, "UTF-16", "UTF-8");
115
- file_put_contents($englishstringsloc, $englishstrings);'
111
+ $englishstrings = file_get_contents($englishstringsloc);
112
+ $englishstrings = mb_convert_encoding($englishstrings, "UTF-8", "UTF-16");
113
+ $englishstrings = preg_replace("/version [^\,\"]+/iu", "nightly build for r' $SHORT_HASH ' ", $englishstrings);
114
+ $englishstrings = mb_convert_encoding($englishstrings, "UTF-16", "UTF-8");
115
+ file_put_contents($englishstringsloc, $englishstrings);'
116
116
117
117
echo " Signing build..."
118
118
186
186
exit 1
187
187
fi
188
188
189
- echo " Done!"
189
+ echo " Done!"
0 commit comments