Mercurial > dive4elements > river
diff contrib/make_flys_release/make_release.sh @ 8464:5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 04 Nov 2014 15:32:56 +0100 |
parents | e304f947c5a1 |
children | 40717a3b94aa |
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh Thu Oct 30 17:49:43 2014 +0100 +++ b/contrib/make_flys_release/make_release.sh Tue Nov 04 15:32:56 2014 +0100 @@ -440,6 +440,12 @@ mv $WORK_DIR/artifactsdb $WORK_DIR/server/ mv $WORK_DIR/datacagedb $WORK_DIR/server/ +if [ -n $INSTALL ]; then + echo "INFO: prepare custom installation script" + cp $INSTALL $WORK_DIR + sed -i "s/VERSION/$VERSION/g" $WORK_DIR/`basename $INSTALL` +fi + echo "INFO: create tarball" if [ -d "$WORK_DIR/flys-$VERSION" ]; then echo "INFO: removing old directory" @@ -448,6 +454,9 @@ mkdir $WORK_DIR/flys-$VERSION mv $WORK_DIR/server $WORK_DIR/client $WORK_DIR/flys-$VERSION +if [ -n $INSTALL ]; then + mv $WORK_DIR/`basename $INSTALL` $WORK_DIR/flys-$VERSION +fi cd $WORK_DIR tar cfz flys-$VERSION.tar.gz flys-$VERSION #echo "INFO: cleanup"