diff --git a/Tools/ReadMe.txt b/Tools/ReadMe.txt new file mode 100644 index 00000000000..9bd5d7b9cc8 --- /dev/null +++ b/Tools/ReadMe.txt @@ -0,0 +1,8 @@ + +These tools are written for Bourne shell (speficially GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)) and are intended to be +as re-usable as possible. They will work with Mac OS X and, probably, Linux. Nothing has been done to make them work with Windows. + +They assume the existence of a "logs" directory. This could be paramterized if anyone cares. + +Any suggestions to make them more cross-platform or more usable are welcomed. ray hat(british) ganymede d0t org + diff --git a/Tools/buildAll b/Tools/buildAll new file mode 100755 index 00000000000..81231fd5e62 --- /dev/null +++ b/Tools/buildAll @@ -0,0 +1,36 @@ +#!/bin/sh + +if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + echo "" + echo "Cleans and build the Wonder frameworks and runs ant tests. See the ReadMe.txt for more info." + echo "" + exit 0 +fi + +if [ ! -f "Build/build/build.xml" ]; then + echo "" + echo "Please execute from within a checked-out Wonder directory. For example, you can do:" + echo "" + echo " % git clone https://github.com/projectwonder/wonder" + echo " % cd wonder" + echo " % ./Tools/buildAll" + echo "" + exit 0 +fi + +if [ ! -d logs ]; then + mkdir logs +fi + +chmod +w Frameworks/Misc/WOJRebel/manifest.mf +chmod +w Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js + +script logs/log_buildAll_`date +%Y%m%d_%H%M%S`.txt ant clean frameworks applications examples tests tests.run + +git checkout Frameworks/Misc/WOJRebel/manifest.mf +chmod -w Frameworks/Misc/WOJRebel/manifest.mf + +git checkout Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js +chmod -w Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js + +exit 0 diff --git a/Tools/buildOnly b/Tools/buildOnly new file mode 100755 index 00000000000..2bd66fa68bf --- /dev/null +++ b/Tools/buildOnly @@ -0,0 +1,45 @@ +#!/bin/sh + +if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + echo "" + echo "Builds specific parts of the Wonder frameworks. Usually one can use the name of the framework, appliction, or" + echo "example, with a \".all\" at the end, and this target will build just that. See the ReadMe.txt for more info." + echo "" + exit 0 +fi + +if [ "$1" = "" ]; then + echo "" + echo "Please give me a target, one or more of: ant clean frameworks applications examples tests tests.run." + echo "One can also provide the namename of a project with \".all\" appended, such as \"ERExtensions.all\"." + echo "" + exit 0 +fi + +if [ ! -f "Build/build/build.xml" ]; then + echo "" + echo "Please execute from within a checked-out Wonder directory. For example, you can do:" + echo "" + echo " % git clone https://github.com/projectwonder/wonder" + echo " % cd wonder" + echo " % ./Tools/buildAll" + echo "" + exit 0 +fi + +if [ ! -d logs ]; then + mkdir logs +fi + +chmod +w Frameworks/Misc/WOJRebel/manifest.mf +chmod +w Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js + +script logs/log_buildOnly_`date +%Y%m%d_%H%M%S`.txt ant -buildfile Build/build/build.xml -Dbuild.action=build -Dwonder.patch=54 $* + +git checkout Frameworks/Misc/WOJRebel/manifest.mf +chmod -w Frameworks/Misc/WOJRebel/manifest.mf + +git checkout Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js +chmod -w Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js + +exit 0 diff --git a/Tools/docAll b/Tools/docAll new file mode 100755 index 00000000000..c4b7ed86d67 --- /dev/null +++ b/Tools/docAll @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + echo "" + echo "Builds the Wonder javadoc. See the ReadMe.txt for more info." + echo "" + echo "Use of the \"-orange\" parameter requires one to check out http://github.com/rkiddy/Orange" + echo "" + exit 0 +fi + +if [ ! -d logs ]; then + mkdir logs +fi + +if [ "$1" = "-orange" ]; then + script logs/log_docAll_`date +%Y%m%d_%H%M%S`.txt ant -Dextra.javadoc.dir=../Orange docs +else + script logs/log_docAll_`date +%Y%m%d_%H%M%S`.txt ant docs +fi + +exit 0