@@ -73,47 +73,45 @@ case $1 in
73
73
${CONTAINER} /build/src/cb ci-build ${@: 2}
74
74
;;
75
75
" compress-usr-dir" )
76
- OUTPUT=$( realpath .) /${2} _${BUILDVARIANT} .tar.bz2
77
76
INSTALL_DIR=$( realpath .) /build/install
78
77
79
- echo " -- Creating $OUTPUT from $INSTALL_DIR "
80
-
81
- echo " -- Current directory: $( pwd) "
78
+ if [ -f " ${BASE_DIR} /deploy-script.sh" ]; then
79
+ echo " -- Using customized deploy script"
80
+ source ${BASE_DIR} /deploy-script.sh
81
+ else
82
+ OUTPUT=$( realpath .) /${2} _${BUILDVARIANT} .tar.bz2
83
+ echo " -- Creating $OUTPUT from $INSTALL_DIR "
82
84
83
- echo " -- Source dir: ${BASE_DIR} "
84
- ls ${BASE_DIR}
85
- echo " -- Build dir: $( realpath .) /build"
86
- ls $( realpath .) /build
87
- echo " -- Install dir: ${INSTALL_DIR} "
88
- ls ${INSTALL_DIR}
85
+ echo " -- Current directory: $( pwd) "
89
86
90
- # echo "-- Install dir contents: "
91
- # ls -R ${INSTALL_DIR }
92
- # echo "-- Build dir contents: "
93
- # ls ${INSTALL_DIR}
94
- # echo "-- Root dir contents: "
95
- # ls -R $(realpath .)
87
+ echo " -- Source dir: ${BASE_DIR} "
88
+ ls ${BASE_DIR }
89
+ echo " -- Build dir: $( realpath . ) /build "
90
+ ls $( realpath . ) /build
91
+ echo " -- Install dir: ${INSTALL_DIR} "
92
+ ls ${INSTALL_DIR}
96
93
97
- pushd ${INSTALL_DIR}
98
- case $2 in
99
- " bin" )
100
- tar vcf ${OUTPUT} \
101
- --exclude=${INSTALL_DIR} /include \
102
- --exclude=${INSTALL_DIR} /lib \
103
- --exclude=${INSTALL_DIR} /share \
104
- ${INSTALL_DIR}
105
- ;;
106
- " libraries" )
107
- tar vcf ${OUTPUT} \
108
- --exclude=${INSTALL_DIR} /bin \
109
- --exclude=${INSTALL_DIR} /packaged \
110
- ${INSTALL_DIR}
111
- ;;
112
- * )
113
- echo " -- Unhandled case $2 "
114
- ;;
115
- esac
116
- popd
94
+ pushd ${INSTALL_DIR}
95
+ case $2 in
96
+ " bin" )
97
+ tar cvf ${OUTPUT} \
98
+ --exclude=${INSTALL_DIR} /include \
99
+ --exclude=${INSTALL_DIR} /lib \
100
+ --exclude=${INSTALL_DIR} /share \
101
+ ${INSTALL_DIR}
102
+ ;;
103
+ " libraries" )
104
+ tar cvf ${OUTPUT} \
105
+ --exclude=${INSTALL_DIR} /bin \
106
+ --exclude=${INSTALL_DIR} /packaged \
107
+ ${INSTALL_DIR}
108
+ ;;
109
+ * )
110
+ echo " -- Unhandled case $2 "
111
+ ;;
112
+ esac
113
+ popd
114
+ fi
117
115
;;
118
116
" push-asset" )
119
117
TAG_NAME=$( github_api list tag " $TRAVIS_REPO_SLUG " " ^$TRAVIS_COMMIT $" | cut -d' |' -f 2)
0 commit comments