Lines 1-160
Link Here
|
1 |
--- Makefile.in.orig 2016-02-03 13:49:10 UTC |
|
|
2 |
+++ Makefile.in |
3 |
@@ -338,9 +338,9 @@ ECHO_WHITELIST = if [ -f $(REPRODUCERS_C |
4 |
#end of exported autoconf copies |
5 |
|
6 |
# binary names |
7 |
-javaws := $(shell echo javaws | sed '@program_transform_name@') |
8 |
+javaws := $(shell echo itweb-javaws | sed '@program_transform_name@') |
9 |
itweb_settings := $(shell echo itweb-settings | sed '@program_transform_name@') |
10 |
-policyeditor := $(shell echo policyeditor | sed '@program_transform_name@') |
11 |
+policyeditor := $(shell echo itweb-policyeditor | sed '@program_transform_name@') |
12 |
|
13 |
# the launcher needs to know $(bindir) and $(datadir) which can be different at |
14 |
# make-time from configure-time |
15 |
@@ -900,10 +900,10 @@ install-exec-local: |
16 |
@ENABLE_PLUGIN_TRUE@ ${INSTALL_DATA} $(abs_top_builddir)/liveconnect/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/plugin.jar |
17 |
${INSTALL_DATA} $(NETX_DIR)/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/netx.jar |
18 |
${INSTALL_DATA} $(NETX_SRCDIR)/javaws_splash.png $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/javaws_splash.png |
19 |
- ${INSTALL_DATA} $(abs_top_srcdir)/javaws.png $(ICONS_DEST_DIR)/ |
20 |
- ${INSTALL_PROGRAM} launcher.build/$(javaws) $(DESTDIR)$(bindir) |
21 |
- ${INSTALL_PROGRAM} launcher.build/$(itweb_settings) $(DESTDIR)$(bindir) |
22 |
- ${INSTALL_PROGRAM} launcher.build/$(policyeditor) $(DESTDIR)$(bindir) |
23 |
+ ${INSTALL_DATA} $(abs_top_srcdir)/javaws.png $(ICONS_DEST_DIR)/itweb-javaws.png |
24 |
+ ${INSTALL_SCRIPT} launcher.build/$(javaws) $(DESTDIR)$(bindir) |
25 |
+ ${INSTALL_SCRIPT} launcher.build/$(itweb_settings) $(DESTDIR)$(bindir) |
26 |
+ ${INSTALL_SCRIPT} launcher.build/$(policyeditor) $(DESTDIR)$(bindir) |
27 |
|
28 |
# all generated manpages are installed in swarm |
29 |
install-data-local: |
30 |
@@ -913,12 +913,14 @@ install-data-local: |
31 |
@ENABLE_DOCS_TRUE@ (cd ${abs_top_builddir}/docs/netx; \ |
32 |
@ENABLE_DOCS_TRUE@ for files in $$(find . -type f); \ |
33 |
@ENABLE_DOCS_TRUE@ do \ |
34 |
-@ENABLE_DOCS_TRUE@ ${INSTALL_DATA} -D $${files} $(DESTDIR)$(htmldir)/netx/$${files}; \ |
35 |
+@ENABLE_DOCS_TRUE@ mkdir -p `dirname $(DESTDIR)$(htmldir)/netx/$${files}`; \ |
36 |
+@ENABLE_DOCS_TRUE@ ${INSTALL_DATA} $${files} $(DESTDIR)$(htmldir)/netx/$${files}; \ |
37 |
@ENABLE_DOCS_TRUE@ done) |
38 |
@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ (cd ${abs_top_builddir}/docs/plugin; \ |
39 |
@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ for files in $$(find . -type f); \ |
40 |
@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ do \ |
41 |
-@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ ${INSTALL_DATA} -D $${files} $(DESTDIR)$(htmldir)/plugin/$${files}; \ |
42 |
+@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ mkdir -p `dirname $(DESTDIR)$(htmldir)/plugin/$${files}`; \ |
43 |
+@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ ${INSTALL_DATA} $${files} $(DESTDIR)$(htmldir)/plugin/$${files}; \ |
44 |
@ENABLE_DOCS_TRUE@@ENABLE_PLUGIN_TRUE@ done) |
45 |
|
46 |
# all generated manpages must be removed one by one |
47 |
@@ -928,7 +930,7 @@ uninstall-local: |
48 |
rm -f $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/netx.jar |
49 |
rm -r $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/javaws_splash.png |
50 |
rm -r $(ICONS_DEST_DIR)/javaws.png |
51 |
- KNOWN_MANS="icedtea-web.1 icedtea-web-plugin.1 itweb-settings.1 javaws.1 policyeditor.1" ; \ |
52 |
+ KNOWN_MANS="icedtea-web.1 icedtea-web-plugin.1 itweb-settings.1 itweb-javaws.1 itweb-policyeditor.1" ; \ |
53 |
KNOWN_DIRS="man1 de/man1 pl/man1 cs/man1" ; \ |
54 |
for file in $$KNOWN_MANS ; do \ |
55 |
for dir in $$KNOWN_DIRS ; do \ |
56 |
@@ -1161,7 +1163,7 @@ stamps/generate-docs.stamp: stamps/netx. |
57 |
echo "<body><h3>$(PLUGIN_VERSION) docs:</h3>" >> "$$HTML_DOCS_INDEX" ; \ |
58 |
for LANG_ID in en_US.UTF-8 cs_CZ.UTF-8 pl_PL.UTF-8 de_DE.UTF-8 ; do \ |
59 |
ID=`echo "$$LANG_ID" | head -c 2` ; \ |
60 |
- ENCOD=`echo "$$LANG_ID" | tail -c 6 -` ; \ |
61 |
+ ENCOD=`echo "$$LANG_ID" | tail -c 6` ; \ |
62 |
export LANG=$$LANG_ID; \ |
63 |
mkdir "$$HTML_DOCS_TARGET_DIR/$$ID" ; \ |
64 |
echo "<li><a href='$$ID/icedtea-web.html'>$$LANG_ID</a></li>" >> "$$HTML_DOCS_INDEX" ; \ |
65 |
@@ -1203,7 +1205,8 @@ stamps/netx.stamp: netx-source-files.txt |
66 |
(cd $(NETX_RESOURCE_DIR); \ |
67 |
for files in $$(find . -type f); \ |
68 |
do \ |
69 |
- ${INSTALL_DATA} -D $${files} \ |
70 |
+ mkdir -p `dirname $(NETX_DIR)/net/sourceforge/jnlp/resources/$${files}`; \ |
71 |
+ ${INSTALL_DATA} $${files} \ |
72 |
$(NETX_DIR)/net/sourceforge/jnlp/resources/$${files}; \ |
73 |
done) |
74 |
cp -a $(NETX_SRCDIR)/net/sourceforge/jnlp/runtime/pac-funcs.js \ |
75 |
@@ -1233,7 +1236,7 @@ clean-netx: |
76 |
rm -f $(NETX_RESOURCE_DIR)/{NEWS,AUTHORS,COPYING,ChangeLog}.html |
77 |
|
78 |
clean-desktop-files: |
79 |
- rm -f javaws.desktop |
80 |
+ rm -f itweb-javaws.desktop |
81 |
rm -f itweb-settings.desktop |
82 |
|
83 |
launcher.build/$(javaws): launcher/launchers.in |
84 |
@@ -1266,7 +1269,7 @@ clean-launchers: |
85 |
fi |
86 |
|
87 |
javaws.desktop: javaws.desktop.in |
88 |
- sed "s#PATH_TO_JAVAWS#$(bindir)/$(javaws)#" < $(srcdir)/javaws.desktop.in > javaws.desktop |
89 |
+ sed "s#PATH_TO_JAVAWS#$(bindir)/$(javaws)#" < $(srcdir)/javaws.desktop.in > itweb-javaws.desktop |
90 |
|
91 |
itweb-settings.desktop: $(srcdir)/itweb-settings.desktop.in |
92 |
sed "s#PATH_TO_ITWEB_SETTINGS#$(bindir)/$(itweb_settings)#" \ |
93 |
@@ -1274,7 +1277,7 @@ itweb-settings.desktop: $(srcdir)/itweb- |
94 |
|
95 |
policyeditor.desktop: $(srcdir)/policyeditor.desktop.in |
96 |
sed 's#PATH_TO_POLICYEDITOR#$(bindir)/$(policyeditor)#' \ |
97 |
- < $(srcdir)/policyeditor.desktop.in > policyeditor.desktop |
98 |
+ < $(srcdir)/policyeditor.desktop.in > itweb-policyeditor.desktop |
99 |
|
100 |
# documentation |
101 |
|
102 |
@@ -1400,7 +1403,7 @@ stamps/netx-dist-tests-prepare-reproduce |
103 |
notSrcFiles=`find . -mindepth 1 -type f \! -name "*.java" | sed "s/.\/*//"` ; \ |
104 |
$(SYSTEM_JDK_DIR)/bin/javac -cp $(NETX_DIR)/lib/classes.jar:$(abs_top_builddir)/liveconnect -d "$(REPRODUCERS_BUILD_DIR)/$$dir/" $$srcFiles ; \ |
105 |
if [ -n "$$notSrcFiles" ] ; then \ |
106 |
- cp -R --parents $$notSrcFiles "$(REPRODUCERS_BUILD_DIR)/$$dir/" ; \ |
107 |
+ tar -c -f - "$$notSrcFiles" | tar -x -f - -C "$(REPRODUCERS_BUILD_DIR)/$$dir/" ; \ |
108 |
fi ; \ |
109 |
cd "$(REPRODUCERS_BUILD_DIR)/$$dir/" ; \ |
110 |
if [ -f $(META_MANIFEST) ]; \ |
111 |
@@ -1465,7 +1468,7 @@ stamps/change-dots-to-paths.stamp: stamp |
112 |
path="`dirname $$slashed_dir`" ; \ |
113 |
file="`basename $$slashed_dir`.jar" ; \ |
114 |
echo "copying $$dir.jar to $$path as $$file" ; \ |
115 |
- mkdir --parents $$path ; \ |
116 |
+ mkdir -p $$path ; \ |
117 |
cp $$dir".jar" "$$path"/"$$file" ; \ |
118 |
fi ; \ |
119 |
done ; \ |
120 |
@@ -1598,7 +1601,7 @@ $(REPRODUCERS_CLASS_NAMES): |
121 |
whiteListed=$(RUN_WHITELIST_FILTER); \ |
122 |
cd $(TEST_EXTENSIONS_TESTS_DIR) ; \ |
123 |
class_names= ; \ |
124 |
- for test in `find -type f` ; do \ |
125 |
+ for test in `find . -type f` ; do \ |
126 |
class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \ |
127 |
class_name=`echo $$class_name | sed -e 's|/|.|g' ` ; \ |
128 |
INCLUDE="NO" ; \ |
129 |
@@ -1783,7 +1786,7 @@ $(TESTS_DIR)/$(REPORT_STYLES_DIRNAME): |
130 |
$(UNIT_CLASS_NAMES): |
131 |
cd $(NETX_UNIT_TEST_DIR) ; \ |
132 |
class_names= ; \ |
133 |
- for test in `find -type f` ; do \ |
134 |
+ for test in `find . -type f` ; do \ |
135 |
class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \ |
136 |
class_name=`echo $$class_name | sed -e 's|/|.|g' ` ; \ |
137 |
class_names="$$class_names $$class_name" ; \ |
138 |
@@ -1794,10 +1797,7 @@ stamps/run-netx-unit-tests.stamp: stamps |
139 |
$(TESTS_DIR)/$(REPORT_STYLES_DIRNAME) $(UNIT_CLASS_NAMES) |
140 |
filename=" " ; \ |
141 |
cd $(NETX_UNIT_TEST_SRCDIR) ; \ |
142 |
- for file in `find . -type f \! -iname "*.java"`; do\ |
143 |
- filename=`echo $$file `; \ |
144 |
- cp --parents $$filename $(NETX_UNIT_TEST_DIR) ; \ |
145 |
- done ; \ |
146 |
+ tar -c -f - `find . -type f \! -iname "*.java"` | tar -x -f - -C $(NETX_UNIT_TEST_DIR) ; \ |
147 |
cd $(NETX_UNIT_TEST_DIR) ; \ |
148 |
class_names=`cat $(UNIT_CLASS_NAMES)` ; \ |
149 |
CLASSPATH=$(call joinsegments, $(NETX_DIR)/lib/classes.jar $(abs_top_builddir)/liveconnect/lib/classes.jar $(JUNIT_RUNTIME) $(JUNIT_RUNNER_JAR) $(TEST_EXTENSIONS_DIR) . $(TEST_EXTENSIONS_SRCDIR) $(TAGSOUP_JAR)) ; \ |
150 |
@@ -2095,9 +2095,7 @@ clean-test-code-coverage-tools-jacoco: |
151 |
@ENABLE_PLUGIN_TRUE@ $(PLUGIN_TEST_SRCS) ; |
152 |
@ENABLE_PLUGIN_TRUE@ $(SYSTEM_JDK_DIR)/bin/jar cf plugin/tests/LiveConnect/PluginTest.jar \ |
153 |
@ENABLE_PLUGIN_TRUE@ plugin/tests/LiveConnect/*.class ; |
154 |
-@ENABLE_PLUGIN_TRUE@ cp -pPR $(SRC_DIR_LINK) $(abs_top_srcdir)/plugin/tests/LiveConnect/*.{js,html} \ |
155 |
-@ENABLE_PLUGIN_TRUE@ plugin/tests/LiveConnect ; |
156 |
-@ENABLE_PLUGIN_TRUE@ echo "Done. Now launch \"firefox file://`pwd`/index.html\"" ; |
157 |
+@ENABLE_PLUGIN_TRUE@ @echo "Done. Now launch \"firefox file://`realpath plugin/tests/LiveConnect`/index.html\"" ; |
158 |
@ENABLE_PLUGIN_TRUE@ mkdir -p stamps |
159 |
@ENABLE_PLUGIN_TRUE@ touch stamps/plugin-tests.stamp |
160 |
|