Changeset c31b589


Ignore:
Timestamp:
Apr 26, 2016, 1:26:47 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
1d0370a
Parents:
a89ed31
Message:

scripts/build_apple_frameworks: escape PWD and OLDPWD to build from a path with a space (closes #43)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/build_apple_frameworks

    ra89ed31 rc31b589  
    77LIBVERSION=$LIBAUBIO_LT_CUR.$LIBAUBIO_LT_REV.$LIBAUBIO_LT_AGE
    88OUTPUTDIR=$PWD/dist
    9 mkdir -p $OUTPUTDIR
     9mkdir -p "$OUTPUTDIR"
    1010# add git abbreviated commit hash
    1111#VERSION+=+$(git log --pretty=format:"%h" -1)
     
    2626  # create tarball
    2727  tarfile=$OUTPUTDIR/$1-$2.$3_binary.tar.bz2
    28   tar -C $AUBIO_TMPDIR/dist-$3/ -jcf $tarfile .
     28  tar -C $AUBIO_TMPDIR/dist-$3/ -jcf "$tarfile" .
    2929  #rm -rf $AUBIO_TMPDIR/dist-$3
    3030}
     
    3535  cp -pr COPYING README.md $AUBIO_TMPDIR/framework-$3/$1-$2.$3_framework
    3636  pushd $AUBIO_TMPDIR/framework-$3
    37   cp -pr $OLDPWD/build/src/lib$1.a $1-$2.$3_framework/$1.framework/$1 || \
     37  cp -pr "$OLDPWD/build/src/lib$1.a" $1-$2.$3_framework/$1.framework/$1 || \
    3838    cp -pr $AUBIO_TMPDIR/dist-$3/usr/local/lib/lib$1.$LIBVERSION.dylib \
    3939    $AUBIO_TMPDIR/framework-$3/$1-$2.$3_framework/$1.framework/$1
    4040  cp -pr $AUBIO_TMPDIR/dist-$3/usr/local/include/$1 $1-$2.$3_framework/$1.framework/Headers
    41   cp -pr $OLDPWD/scripts/apple/Modules $1-$2.$3_framework/$1.framework/
     41  cp -pr "$OLDPWD/scripts/apple/Modules" $1-$2.$3_framework/$1.framework/
    4242  popd
    4343}
     
    6262  zip -qr $zipfile $1-$2.$3_framework
    6363  popd
    64   mv $AUBIO_TMPDIR/framework-$3/$zipfile $OUTPUTDIR
     64  mv $AUBIO_TMPDIR/framework-$3/$zipfile "$OUTPUTDIR"
    6565}
    6666
Note: See TracChangeset for help on using the changeset viewer.