diff options
author | Sven Gothel <[email protected]> | 2012-08-26 03:57:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-08-26 03:57:27 +0200 |
commit | 951f7c667c44ca3d93017f81aa40bffbb18a1ed4 (patch) | |
tree | cc6159ef6dfe8a53708d907fc3c44800b536f041 /jenkins-builds/funcs_promotion.sh | |
parent | acdd4d57a378654fec572ffdc21736ffa93e911e (diff) |
jenkins-build promotion: move all Android APK files in their own 'apk' subfolder to simplify directing users
Diffstat (limited to 'jenkins-builds/funcs_promotion.sh')
-rwxr-xr-x | jenkins-builds/funcs_promotion.sh | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/jenkins-builds/funcs_promotion.sh b/jenkins-builds/funcs_promotion.sh index 34eb684..fb7b7bc 100755 --- a/jenkins-builds/funcs_promotion.sh +++ b/jenkins-builds/funcs_promotion.sh @@ -13,6 +13,7 @@ function prom_setup() { mkdir $ldest/archive/jogamp-$i/test-results/ done mkdir $ldest/jar + mkdir $ldest/apk mkdir $ldest/jar/atomic mkdir $ldest/javadoc mkdir $ldest/jnlp-files @@ -151,9 +152,13 @@ function prom_merge_modules() { else if [ -e jar ] ; then mkdir -p ../$mergefolder/jar - for l in `find jar -maxdepth 1 -name \*natives\* -o -name \*.apk` ; do + for l in `find jar -maxdepth 1 -name \*natives\*` ; do cp -av $l ../$mergefolder/jar/ done + for l in `find jar -maxdepth 1 -name \*.apk` ; do + mkdir -p ../$mergefolder/apk + cp -av $l ../$mergefolder/apk/ + done if [ -e jar/atomic ] ; then mkdir -p ../$mergefolder/jar/atomic cp -av jar/atomic/*natives*.jar ../$mergefolder/jar/atomic/ @@ -171,6 +176,15 @@ function prom_merge_modules() { cd .. done done + # move unsigned APKs in seperate folder + if [ -e $mergefolder/apk ] ; then + cd $mergefolder/apk + mkdir unsigned + for i in *-unsigned.apk ; do + mv $i unsigned/`basename $i -unsigned.apk`.apk + done + cd ../.. + fi cp -av ../log/aggregated.artifact.properties.sorted ../log/all.artifact.properties.sorted $mergefolder/ echo "INFO: Create merged jogamp archive $mergefolder.7z" 7z a -r ../archive/$mergefolder.7z $mergefolder @@ -229,15 +243,25 @@ function prom_promote_module() { # 7z folder verfified above already local zfile=archive/jogamp-$i/$module-$i.7z local zfolder=tmp/`basename $zfile .7z` - for j in `find $zfolder/jar -maxdepth 1 -name \*.jar -o -name \*.apk` ; do + for j in `find $zfolder/jar -maxdepth 1 -name \*.jar` ; do cp -av $j ./jar/ done + for j in `find $zfolder/jar -maxdepth 1 -name \*.apk` ; do + cp -av $j ./apk/ + done if [ -e $zfolder/jar/atomic ] ; then for j in $zfolder/jar/atomic/*.jar ; do cp -av $j ./jar/atomic/ done fi done + # move unsigned APKs in seperate folder + cd apk + mkdir unsigned + for i in *-unsigned.apk ; do + mv $i unsigned/`basename $i -unsigned.apk`.apk + done + cd .. # copy the master pic JAR files # 7z folder verfified above already local zfile=archive/jogamp-$masterpick/$module-$masterpick.7z |