aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/obsolete/bsfix/rewrite2-speed-test.sh')
-rwxr-xr-xsrc/obsolete/bsfix/rewrite2-speed-test.sh47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/obsolete/bsfix/rewrite2-speed-test.sh b/src/obsolete/bsfix/rewrite2-speed-test.sh
deleted file mode 100755
index b572206..0000000
--- a/src/obsolete/bsfix/rewrite2-speed-test.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"
-