forked from dlegland/javaGeom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakejar.bat
More file actions
41 lines (32 loc) · 1.39 KB
/
makejar.bat
File metadata and controls
41 lines (32 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@REM Build the file javaGeom.jar
@REM
@REM Requires the file 'jar.exe' to be in the path
@REM For adding it with windows (Windows Vista)
@REM - Start->Parameters->Configuration Panel->System->
@REM Advanced System Parameters->Environement variables
@REM - Clic on Variable 'Path' in 'System Variable' panel
@REM - Add the path to jar.exe, typically:
@REM "C:\Program Files\jdk1.6.0_03\bin\"
@REM (Adapt version number according to your system)
@REM
@REM modified for incorporating external library gpcj (polygon clipping)
@echo off
@REM remove old copy of jar folder if it exists
FOR /F "tokens=*" %%i IN ('dir /a:d /b jar') DO rmdir /S /Q %%i
@REM make a copy of the binary directory into the jar directory
robocopy bin jar *.* /s /njs /njh /ndl
@REM remove '.svn' directories, created by Eclipse from subversion repository
FOR /F "tokens=*" %%i IN ('dir /a:d /s /b jar\*.svn*') DO rmdir /S /Q %%i
@REM change directory and uncompress external library
cd jar
jar xf ../lib/gpcj-2.2.0.jar
rmdir /S /Q META-INF
cd ..
@REM remove old archive if it exists
@REM FOR /F "tokens=*" %%i IN ('dir /b javaGeom.jar') DO del /f /q %%i
if exist javaGeom.jar del /f /q javaGeom.jar
@REM build the new archive
jar cf javaGeom.jar -C jar\ .
@REM remove temporary files created during process
:: FOR /F "tokens=*" %%i IN ('dir /a:d /b jar') DO rmdir /S /Q %%i
if exist jar rmdir /S /Q jar