File tree 1 file changed +14
-3
lines changed 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -216,22 +216,33 @@ create_unified_vm_macOS() {
216
216
# echo ln -s `readlink "$A/$f"` "$O/$f"
217
217
elif [ ! -f " $A /$f " ]; then
218
218
echo " $A /$f does not exist; how come?"
219
- elif [[ ! " $f " =~ ^.* MainMenu.nib$ ]] && [ ! -f " $B /$f " ]; then
219
+ elif [[ ! " $f " =~ ^.* MainMenu\ . nib$ ]] && [ ! -f " $B /$f " ]; then
220
220
echo " $B /$f does not exist; how come?"
221
221
else
222
222
case ` file -b " $A /$f " ` in
223
223
Mach-O* )
224
224
lipo -create -output " $O /$f " " $A /$f " " $B /$f " ;;
225
225
* )
226
- if [[ " $ f" =~ ^. * MainMenu.nib$ ]] || [ cmp -s " $A /$f " " $B /$f " ] ; then
226
+ if [ -f " $B / $ f" ] && ( cmp -s " $A /$f " " $B /$f " ) ; then
227
227
cp " $A /$f " " $O /$f "
228
228
else
229
- echo " EXCLUDING $f because it differs"
230
229
case " $f " in
231
230
* .plist)
231
+ echo " EXCLUDING $f because it differs"
232
232
MISMATCHINGPLISTS=" $MISMATCHINGPLISTS $f "
233
233
;;
234
+ * MainMenu.nib)
235
+ # Use old binary plist from x64 bundle.
236
+ # Ignore NIBArchive keyedobjects-101300.nib.
237
+ # Ignore NIBArchive MainMenu.nib from ARM bundle.
238
+ if [ -d " $B /$f " ]; then
239
+ cp " $B /$f /keyedobjects.nib" " $O /$f "
240
+ else
241
+ echo " $B /$f should be a directory; how come?"
242
+ fi
243
+ ;;
234
244
* .nib)
245
+ echo " REPLACING $f because it differs"
235
246
MISMATCHINGNIBS=" $MISMATCHINGNIBS $f "
236
247
echo " using $B version"
237
248
cp " $B /$f " " $O /$f "
You can’t perform that action at this time.
0 commit comments