95 } < "$CATALOG_FILE" |
95 } < "$CATALOG_FILE" |
96 fi |
96 fi |
97 done |
97 done |
98 |
98 |
99 |
99 |
100 # platform patches |
100 # platform-specific patches |
101 |
101 |
102 case "$PLATFORM_FAMILY" in |
102 case "$PLATFORM_FAMILY" in |
103 linux) |
103 linux) |
104 ( |
104 OTHER_PLATFORMS='-name "x86*-darwin" -o -name "x86*-cygwin" -o -name "x86*-windows"' |
105 cd "$ISABELLE_TARGET" |
|
106 for DIR in contrib/jdk*/*-darwin contrib/jdk*/*-cygwin |
|
107 do |
|
108 echo "removing $DIR" |
|
109 rm -rf "$DIR" |
|
110 done |
|
111 ) |
|
112 ;; |
105 ;; |
113 macos) |
106 macos) |
114 ( |
107 OTHER_PLATFORMS='-name "x86*-linux" -o -name "x86*-cygwin" -o -name "x86*-windows"' |
115 cd "$ISABELLE_TARGET" |
108 |
116 for DIR in contrib/jdk*/*-linux contrib/jdk*/*-cygwin |
|
117 do |
|
118 echo "removing $DIR" |
|
119 rm -rf "$DIR" |
|
120 done |
|
121 ) |
|
122 perl -pi -e "s,lookAndFeel=.*,lookAndFeel=com.apple.laf.AquaLookAndFeel,g;" \ |
109 perl -pi -e "s,lookAndFeel=.*,lookAndFeel=com.apple.laf.AquaLookAndFeel,g;" \ |
123 -e "s,delete-line.shortcut=.*,delete-line.shortcut=C+d,g;" \ |
110 -e "s,delete-line.shortcut=.*,delete-line.shortcut=C+d,g;" \ |
124 -e "s,delete.shortcut2=.*,delete.shortcut2=A+d,g;" \ |
111 -e "s,delete.shortcut2=.*,delete.shortcut2=A+d,g;" \ |
125 "$TMP/$ISABELLE_NAME/src/Tools/jEdit/dist/properties/jEdit.props" |
112 "$TMP/$ISABELLE_NAME/src/Tools/jEdit/dist/properties/jEdit.props" |
126 ;; |
113 ;; |
127 windows) |
114 windows) |
128 ( |
115 OTHER_PLATFORMS='-name "x86*-linux" -o -name "x86*-darwin"' |
129 cd "$ISABELLE_TARGET" |
|
130 for DIR in \ |
|
131 $(find contrib -name x86-linux -o -name x86_64-linux -o -name x86-darwin -o -name x86_64-darwin | sort) |
|
132 do |
|
133 echo "removing $DIR" |
|
134 rm -rf "$DIR" |
|
135 done |
|
136 ) |
|
137 |
116 |
138 perl -pi -e "s,lookAndFeel=.*,lookAndFeel=com.sun.java.swing.plaf.windows.WindowsLookAndFeel,g;" \ |
117 perl -pi -e "s,lookAndFeel=.*,lookAndFeel=com.sun.java.swing.plaf.windows.WindowsLookAndFeel,g;" \ |
139 "$TMP/$ISABELLE_NAME/src/Tools/jEdit/dist/properties/jEdit.props" |
118 "$TMP/$ISABELLE_NAME/src/Tools/jEdit/dist/properties/jEdit.props" |
140 |
119 |
141 # FIXME include cygwin.tar.gz etc. |
120 # FIXME include cygwin.tar.gz etc. |