view test-lily/test-shar-gub.sh @ 6512:ccc20ae889ca default tip guix

mingw::guile-2.0.7 builds.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 24 Mar 2016 08:03:39 +0100
parents 38582cc4dc32
children
line wrap: on
line source

#!/bin/sh

directory="$HOME/$1"
shift
filename="$1"
shift
testfile="$1" 

set -x
if test ! -d $directory; then
  mkdir -p $directory
  if test "$?" != "0"; then
    exit 1;
  fi  
fi
cd $directory

if test -x bin/uninstall-lilypond; then
  bin/uninstall-lilypond --quiet
  if test "$?" != "0"; then
    exit 1;
  fi  
fi

sh $filename --batch --prefix `pwd`
if test "$?" != "0"; then
    exit 1;
fi  

bin/lilypond $testfile