Skip to content

Commit

Permalink
Updated Windows make script.
Browse files Browse the repository at this point in the history
Added unix make and run scripts.
  • Loading branch information
Pierre-Luc Paour committed Aug 18, 2002
1 parent 62d3935 commit 314cefa
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 4 deletions.
8 changes: 4 additions & 4 deletions make.bat
Expand Up @@ -28,14 +28,14 @@ goto :EOF

:make_zip
call :make_clean_jar
zip -0 gallery_remote.zip GalleryRemote.jar default.gif ChangeLog defaults.properties
rem Info-ZIP zip.exe needs to be installed somewhere in the path
zip -0 gallery_remote.zip GalleryRemote.jar default.gif ChangeLog defaults.properties run.bat run.sh
goto :EOF

:make_source_zip
call :make_jar
rem zip -0 gallery_remote.zip GalleryRemote.jar default.gif (for info-zip)
rem pkzip -e0 gallery_remote.zip GalleryRemote.jar default.gif (for pkzip)
zip -0 gallery_remote.zip GalleryRemote.jar default.gif
rem Info-ZIP zip.exe needs to be installed somewhere in the path
zip -0 gallery_remote.zip GalleryRemote.jar default.gif ChangeLog defaults.properties run.bat run.sh
goto :EOF

:make_cvsbuild
Expand Down
58 changes: 58 additions & 0 deletions make.sh
@@ -0,0 +1,58 @@
export CLASSPATH=.

make_()
{
javac com/gallery/GalleryRemote/GalleryRemote.java;
}

make_all()
{
javac com/gallery/GalleryRemote/*.java HTTPClient/*.java;
}

make_clean()
{
rm -rf *.class;
}

make_jar()
{
make_all;
jar cvf GalleryRemote.jar com HTTPClient;
}

make_clean_jar()
{
make_all;
jar cvf GalleryRemote.jar com/gallery/GalleryRemote/*.class com/gallery/GalleryRemote/model/*.class HTTPClient/*.class;
}

make_zip()
{
make_clean_jar;
zip -0 gallery_remote.zip GalleryRemote.jar default.gif ChangeLog defaults.properties run.bat run.sh;
}

make_source_zip()
{
make_jar;
zip -0 gallery_remote.zip GalleryRemote.jar default.gif ChangeLog defaults.properties run.bat run.sh;
}

make_cvsbuild()
{
rem For this to work unattended, the cvs must be checked out with the read-only account-less method
cvs update;
make_zip;
}

case $1 in
all) make_all;;
clean) make_clean;;
jar) make_jar;;
clean_jar) make_clean_jar;;
zip) make_zip;;
source_zip) make_source_zip;;
cvsbuild) make_cvsbuild;;
*) make_;;
esac
3 changes: 3 additions & 0 deletions run.sh
@@ -0,0 +1,3 @@
export CLASSPATH=.

java com.gallery.GalleryRemote.GalleryRemote

0 comments on commit 314cefa

Please sign in to comment.