comparison 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
comparison
equal deleted inserted replaced
8463:5d7370cda6cb 8464:5dd6cc9fec1e
438 cd - 438 cd -
439 439
440 mv $WORK_DIR/artifactsdb $WORK_DIR/server/ 440 mv $WORK_DIR/artifactsdb $WORK_DIR/server/
441 mv $WORK_DIR/datacagedb $WORK_DIR/server/ 441 mv $WORK_DIR/datacagedb $WORK_DIR/server/
442 442
443 if [ -n $INSTALL ]; then
444 echo "INFO: prepare custom installation script"
445 cp $INSTALL $WORK_DIR
446 sed -i "s/VERSION/$VERSION/g" $WORK_DIR/`basename $INSTALL`
447 fi
448
443 echo "INFO: create tarball" 449 echo "INFO: create tarball"
444 if [ -d "$WORK_DIR/flys-$VERSION" ]; then 450 if [ -d "$WORK_DIR/flys-$VERSION" ]; then
445 echo "INFO: removing old directory" 451 echo "INFO: removing old directory"
446 rm -rf "$WORK_DIR/flys-$VERSION" 452 rm -rf "$WORK_DIR/flys-$VERSION"
447 fi 453 fi
448 454
449 mkdir $WORK_DIR/flys-$VERSION 455 mkdir $WORK_DIR/flys-$VERSION
450 mv $WORK_DIR/server $WORK_DIR/client $WORK_DIR/flys-$VERSION 456 mv $WORK_DIR/server $WORK_DIR/client $WORK_DIR/flys-$VERSION
457 if [ -n $INSTALL ]; then
458 mv $WORK_DIR/`basename $INSTALL` $WORK_DIR/flys-$VERSION
459 fi
451 cd $WORK_DIR 460 cd $WORK_DIR
452 tar cfz flys-$VERSION.tar.gz flys-$VERSION 461 tar cfz flys-$VERSION.tar.gz flys-$VERSION
453 #echo "INFO: cleanup" 462 #echo "INFO: cleanup"
454 #rm -r $WORK_DIR/flys-$VERSION 463 #rm -r $WORK_DIR/flys-$VERSION
455 464

http://dive4elements.wald.intevation.org