Skip to content

Commit

Permalink
First version of Tools, targeted to Mac OS X but may work for others.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkiddy committed Jan 13, 2013
1 parent 32fa30d commit d930bf9
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tools/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -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

36 changes: 36 additions & 0 deletions Tools/buildAll
Original file line number Diff line number Diff line change
@@ -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
45 changes: 45 additions & 0 deletions Tools/buildOnly
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions Tools/docAll
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d930bf9

Please sign in to comment.