-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of Tools, targeted to Mac OS X but may work for others.
- Loading branch information
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |