diff options
Diffstat (limited to 'jjb/common/include-apps-prepare-upload-folder.sh')
-rw-r--r-- | jjb/common/include-apps-prepare-upload-folder.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/jjb/common/include-apps-prepare-upload-folder.sh b/jjb/common/include-apps-prepare-upload-folder.sh new file mode 100644 index 00000000..e883e610 --- /dev/null +++ b/jjb/common/include-apps-prepare-upload-folder.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +#set -x +set -e + +echo -e "\n\n\n" +echo "#########################################" +echo -e "\n\n\n" + + + +# construct upload folder +#mv UPLOAD UPLOAD2 || true +if test x"" = x"${AGLBRANCH}" ; then + rm -rf UPLOAD/${TARGETARCH} || true + mkdir -p UPLOAD/${TARGETARCH} + export DEST=$(pwd)/UPLOAD/${TARGETARCH} +else + rm -rf UPLOAD/${AGLBRANCH}/${TARGETARCH} || true + mkdir -p UPLOAD/${AGLBRANCH}/${TARGETARCH} + export DEST=$(pwd)/UPLOAD/${AGLBRANCH}/${TARGETARCH} +fi + +pushd ${MYPROJECT} +pwd + +ls -alh + +ls + +ls package || true + +cp package/*.wgt $DEST +ls -alh $DEST + +popd |