blob: e8f6432b3554c8de66d728fcac41ced2b7b5e198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
diff -Naur webCDwriter-2.8.0.orig/configure webCDwriter-2.8.0/configure
--- webCDwriter-2.8.0.orig/configure 2007-04-29 23:23:42.000000000 +1200
+++ webCDwriter-2.8.0/configure 2007-04-30 18:43:42.000000000 +1200
@@ -47,6 +47,9 @@
--destDir=*)
DESTDIR=`echo $1 | sed "s:--destDir=::g"`
;;
+ --javac-flags=*)
+ JAVACFLAGS=`echo $1 | sed "s:--javac-flags=::g"`
+ ;;
--doNotCompileCDWserver)
doNotCompileCDWserver="on"
;;
@@ -105,6 +108,8 @@
--destDir use a prefix invisible to the installed files
+--javac-flags Flags to pass to javac
+
--doNotCompileCDWserver if you want to install CDWserver Pro
--doNotCompileWebCDcreator use the precompiled and signed webCDcreator
@@ -152,7 +157,8 @@
}
}
EOF
-javac Test.java 2> /dev/null \
+#2> /dev/null
+javac ${JAVACFLAGS} Test.java Test0.java \
&& webCDcreator="webCDcreator.jar $webCDcreator" \
&& echo " OK -> will build webCDcreator.jar" \
|| echo " not found -> will use precompiled webCDcreator.jar"
@@ -284,13 +290,17 @@
forPluginRSA=""
fi
+echo "JAVACFLAGS=${JAVACFLAGS}"
+
cat webCDcreator/Makefile.in \
| sed s/@nosCert@/"$nosCert"/g \
| sed s/@sunCert@/"$sunCert"/g \
| sed s/@all@/"$webCDcreator"/g \
| sed s/@4pi@/"$forPlugin"/g \
| sed s/@4ns@/"$forPluginRSA"/g \
+ | sed s_@JAVACFLAGS@_"$JAVACFLAGS"_g \
> webCDcreator/Makefile
+#| sed s_@JAVACFLAGS@_"\"$JAVACFLAGS\""_g \
echo "Creating config"
diff -Naur webCDwriter-2.8.0.orig/webCDcreator/Makefile.in webCDwriter-2.8.0/webCDcreator/Makefile.in
--- webCDwriter-2.8.0.orig/webCDcreator/Makefile.in 2007-04-29 23:23:42.000000000 +1200
+++ webCDwriter-2.8.0/webCDcreator/Makefile.in 2007-04-30 20:16:01.000000000 +1200
@@ -14,6 +14,7 @@
nosCert=@nosCert@
sunCert=@sunCert@
+JAVACFLAGS=@JAVACFLAGS@
all: @all@
@@ -21,7 +22,7 @@
$(MAKE) -C icons
webCDcreator.jar: *.java icons/up.jpg
- javac -target 1.4 *.java
+ javac ${JAVACFLAGS} *.java netscape/security/*.java
jar cfm webCDcreator.jar Manifest \
gpl.html \
*.class \
|