aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Pasquet <kiorky@cryptelium.net>2007-04-11 12:01:15 +0000
committerMathieu Pasquet <kiorky@cryptelium.net>2007-04-11 12:01:15 +0000
commit8fb2d8c8536633570777e625626dcecb92d74c7b (patch)
treed7743b7d68396018a68c228d82e2909a0cfcc2f6
parentbsfix/xml-rewrite-2.py_tests.sh: Correct some parameters (diff)
downloadjavatoolkit-8fb2d8c8536633570777e625626dcecb92d74c7b.tar.gz
javatoolkit-8fb2d8c8536633570777e625626dcecb92d74c7b.tar.bz2
javatoolkit-8fb2d8c8536633570777e625626dcecb92d74c7b.zip
bsfix/xml-rewrite-2.py_tests.sh: interferences with Betelgeuse :)
svn path=/projects/javatoolkit/trunk/; revision=4192
-rwxr-xr-xsrc/bsfix/rewrite2-speed-test.sh4
-rwxr-xr-xsrc/bsfix/xml-rewrite-2.py_tests.sh47
2 files changed, 2 insertions, 49 deletions
diff --git a/src/bsfix/rewrite2-speed-test.sh b/src/bsfix/rewrite2-speed-test.sh
index 773437f..b572206 100755
--- a/src/bsfix/rewrite2-speed-test.sh
+++ b/src/bsfix/rewrite2-speed-test.sh
@@ -30,9 +30,9 @@ old() {
new(){
${NEWPATH}/xml-rewrite-2.py ${files} \
- -c --source-element ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } \
+ -c --source-element ${JAVA_PKG_BSFIX_SOURCE_TAGS// / --source_elements } \
--source-attribute source --source-value ${want_source} \
- --target-element ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
+ --target-element ${JAVA_PKG_BSFIX_TARGET_TAGS// / --target_elements} \
--target-attribute target --target-value ${want_target} \
${output}
}
diff --git a/src/bsfix/xml-rewrite-2.py_tests.sh b/src/bsfix/xml-rewrite-2.py_tests.sh
deleted file mode 100755
index b572206..0000000
--- a/src/bsfix/xml-rewrite-2.py_tests.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-files=""
-JAVA_PKG_BSFIX_TARGET_TAGS=${JAVA_PKG_BSFIX_TARGET_TAGS:-"javac xjavac javac.preset"}
-JAVA_PKG_BSFIX_SOURCE_TAGS=${JAVA_PKG_BSFIX_SOURCE_TAGS:-"javadoc javac xjavac javac.preset"}
-
-want_source="java-1.4"
-want_target="java-1.5"
-
-NEWPATH="./" # TODO: CHANGEME
-rpath="./xmls" # TODO: CHANGEME
-
-for i in $(ls $rpath/b*);
-do
- files=" $files -f $i"
-done
-
-clean(){
- rm -rf $rpath
- cp -rf $rpath.sav $rpath
-}
-
-old() {
- xml-rewrite-2.py ${files} \
- -c -e ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } \
- -a source -v ${want_source} ${output}
- xml-rewrite-2.py ${files} \
- -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
- -a target -v ${want_target} ${output}
-}
-
-new(){
- ${NEWPATH}/xml-rewrite-2.py ${files} \
- -c --source-element ${JAVA_PKG_BSFIX_SOURCE_TAGS// / --source_elements } \
- --source-attribute source --source-value ${want_source} \
- --target-element ${JAVA_PKG_BSFIX_TARGET_TAGS// / --target_elements} \
- --target-attribute target --target-value ${want_target} \
- ${output}
-}
-
-clean
-echo "_________________time old"
-time old|grep -v "ewrit"
-
-clean
-echo "_________________time new"
-time new|grep -v "ewrit"
-