# HG changeset patch # User John Donoghue # Date 1388754266 18000 # Node ID 58b5ed5a0247040cf6749a2a863d8258c55e9da8 # Parent 0779856e1186967baef76720db5404bd2fe12482 mk-dist: delay getting OCTAVE_VERSION until after make is run * mk-dist: move getting octave version below make call. diff -r 0779856e1186 -r 58b5ed5a0247 mk-dist --- a/mk-dist Fri Jan 03 02:14:54 2014 -0500 +++ b/mk-dist Fri Jan 03 08:04:26 2014 -0500 @@ -15,7 +15,6 @@ OCTAVE_DIST_DIR=$TOPDIR/dist/octave-$DATE INSTALLER_PKG= -OCTAVE_VERSION=`head -1 $TOPDIR/octave/octave-version` strip=yes installer=no @@ -34,7 +33,6 @@ --stable) # for stable, use octave-version as the folder OCTAVE_TARGET=stable-octave - OCTAVE_DIST_DIR=$TOPDIR/dist/octave-$OCTAVE_VERSION shift ;; --no-strip) @@ -60,7 +58,6 @@ echo "deleting previous dist directory..." rm -rf $TOPDIR/dist -mkdir -p $OCTAVE_DIST_DIR echo "building octave and dependencies..." if [ $jobs -gt 0 ]; then @@ -69,6 +66,16 @@ make $OCTAVE_TARGET $INSTALLER_PKG msys-base native-gcc native-binutils octave-forge-packages npp units transfig fi +OCTAVE_VERSION=`head -1 $TOPDIR/octave/octave-version` + +if [ "$OCTAVE_TARGET" = "stable-octave" ]; then + # if building stable version, use the octave version number aspart of + # the dist name + OCTAVE_DIST_DIR=$TOPDIR/dist/octave-$OCTAVE_VERSION +fi +# make dist folder +mkdir -p $OCTAVE_DIST_DIR + echo "generating lists of files to exclude..." echo " native files..."