forked from WorldWindEarth/WorldWindJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,29 @@ | ||
#!/usr/bin/python3 | ||
|
||
import sys | ||
from pathlib import Path | ||
import shutil | ||
|
||
# Script to update WWJ JOGL libs from a new jogamp-all-platforms.7z unpacked distribution. | ||
# Example: ./refresh-jogl.py ../../downloads/jogamp-all-platforms/jar | ||
if len(sys.argv)<2: | ||
print('Usage: refresh-jogl.py [path to jars]') | ||
sys.exit(1) | ||
|
||
srcPath=sys.argv[1] | ||
jogl_jars=['gluegen-rt.jar','gluegen-rt-natives-linux-amd64.jar','gluegen-rt-natives-macosx-universal.jar','gluegen-rt-natives-windows-amd64.jar', \ | ||
'jogl-all.jar','jogl-all-natives-linux-amd64.jar','jogl-all-natives-macosx-universal.jar','jogl-all-natives-windows-amd64.jar'] | ||
for jar in jogl_jars: | ||
srcJar=srcPath+'/'+jar | ||
destJar='./'+jar | ||
print(srcJar, ' => ', destJar) | ||
shutil.copyfile(srcJar,destJar) | ||
|
||
jogl_txts=['jogl.README.txt','jogl.LICENSE.txt','gluegen.LICENSE.txt'] | ||
folderIdx=srcPath.rfind('/') | ||
txtPath=srcPath[:folderIdx] | ||
for txt in jogl_txts: | ||
srcTxt=txtPath+'/'+txt | ||
destTxt='./'+txt | ||
print(srcTxt, ' => ', destTxt) | ||
shutil.copyfile(srcTxt,destTxt) |