moving around build folders to make easier to run core and libs from eclipse

This commit is contained in:
benfry
2006-07-18 02:15:57 +00:00
parent fbb999eaaf
commit 1c17d3c40c
7 changed files with 20 additions and 16 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+11 -7
View File
@@ -83,25 +83,29 @@ cd ../..
echo Building processing.core
# move to bagel inside base 'processing' directory
#cd bagel
# move to core inside base 'processing' directory
cd core
rm -f processing/core/*.class
#rm -f processing/core/*.class
# new regular version
CLASSPATH="..\\build\\windows\\work\\java\\lib\\rt.jar"
export CLASSPATH
perl preproc.pl
../build/windows/work/jikes -d . +D -target 1.1 *.java
./preproc.pl
../build/windows/work/jikes -d . +D -target 1.1 src/processing/core/*.java
# use this from time to time to test 1.1 savviness
#/cygdrive/c/msjdk-4.0/bin/jvc /d . *.java
#/cygdrive/c/msjdk-4.0/bin/jvc /d . src/processing/core/*.java
# package this folder into core.jar
zip -rq ../build/windows/work/lib/core.jar processing
#rm -rf processing
# back to base processing dir
cd ..
exit
### -- BUILD PREPROC ---------------------------------------------
# i suck at shell scripting
-1
View File
@@ -1 +0,0 @@
processing
-1
View File
@@ -1 +0,0 @@
*.class
+9 -7
View File
@@ -1,21 +1,23 @@
#!/usr/bin/perl
#!/usr/bin/perl -w
$basedir = 'src/processing/core';
# PGraphics subclasses PImage.. so first get methods from bimage
open(F, "PImage.java") || die $!;
open(F, "$basedir/PImage.java") || die $!;
@contents = <F>;
close(F);
# next slurp methods from PGraphics
open(F, "PGraphics.java") || die $!;
open(F, "$basedir/PGraphics.java") || die $!;
#@contents = <F>;
foreach $line (<F>) {
# can't remember perl right now.. there must be a better way
@contents[$#contents++] = $line;
$contents[$#contents++] = $line;
}
close(F);
open(APPLET, "PApplet.java") || die $!;
open(APPLET, "$basedir/PApplet.java") || die $!;
@applet = <APPLET>;
close(APPLET);
@@ -23,7 +25,7 @@ close(APPLET);
$insert = 'public functions for processing.core';
# an improved version of this would only rewrite if changes made
open(OUT, ">PApplet.new") || die $!;
open(OUT, ">$basedir/PApplet.new") || die $!;
foreach $line (@applet) {
print OUT $line;
last if ($line =~ /$insert/);
@@ -147,7 +149,7 @@ close(OUT);
$oldguy = join(' ', @applet);
open(NEWGUY, "PApplet.new") || die $!;
open(NEWGUY, "$basedir/PApplet.new") || die $!;
@newbie = <NEWGUY>;
$newguy = join(' ', @newbie);
close(NEWGUY);