PDA

View Full Version : "--output" option



nassaja-rus
6 Jul 2007, 11:14 PM
Ext 2.0 each time varies very often and inconveniently to correct jsb files manually, addition of an option for builder.sh "--output" which would specify a root directory for assembly of the project without editing jsb is possible?

jon.whitcraft
10 Jul 2007, 10:39 AM
I have not tested Ext 2.0 yet but give me a few days and I'll give it a try to see what's going on with it.

nassaja-rus
10 Jul 2007, 11:47 AM
Such option would be convenient in daily use. That to me in linux I should edit jsb ('output folder' config value) file after its each updating from svn.

For me it would be convenient to execute build.sh with --output=/home/nassaja/... option.

jon.whitcraft
14 Jul 2007, 11:12 AM
I tried doing this but the problem was that if you build all three at once it would put the resources and examples in the root folder instead of sub folders. i guess i could key them off of the jsb name but i'll revisit this and see what i can do.

Jon

JorisA
7 Aug 2007, 2:33 PM
I agree this would come in handy.

jon.whitcraft
7 Aug 2007, 2:48 PM
I am still working on this and other features for the next release. I'm hoping to have it out by the end of the month.

jack.slocum
8 Aug 2007, 3:46 PM
In the meantime, nassaja you could write a shell script to automate it easily. If you do, please post and share for everyone.

nassaja-rus
9 Aug 2007, 10:01 PM
#!/bin/sh

root="/home/nassaja/svn/ext-1.1"
crap1="C\:\/apps\/www\/deploy\/ext-1.1\/"
crap2="c\:\/apps\/www\/playpen\/slickspeed\/frameworks\/"

build="/home/nassaja/svn/build/ext-1.1/"
regexpbuild="\/home\/nassaja\/svn\/build\/ext-1.1\/"


function optimize {

src="$root/$1"
dst="$root/$1.new"

sed 's/\r//g' "$src" > "$dst"
mv $dst $src

sed 's/\\/\//g' $src > $dst
mv $dst $src

sed -e s/"$crap1"/"$regexpbuild"/g $src > $dst
mv $dst $src

sed -e s/"$crap2"/"$regexpbuild\/slickspeed\/frameworks\/"/g $src > $dst
mv $dst $src

}

svn update

optimize "src/ext.jsb"
optimize "resources/resources.jsb"
optimize "examples/examples.jsb"

rm -rf $build/
cd ./builder/
./build.sh


One thing -



cd ./builder/
./build.sh


I can't do ./builder/build.sh it wrote

Unable to access jarfile builder.jar

P.S. And where is this "cool" monad? %)