Commit b1a9fb12 authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

change install directory to exclude version

parent 6b44f9ee
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -12,15 +12,14 @@ fi

if [[ $prefix=="." ]]
    then
    echo "wd"
    prefix=`pwd`
fi

if [[ "universc" == $(echo $prefix | rev | cut -d'/' -f1 | rev) ]]
    then
    echo "prefix in existing convert directory"
    echo "installing to universc"
    prefix=$(echo $prefix | cut -d'/' -f1-$(($( echo $prefix | grep -o "/" | wc -l))))
    echo $prefix
    INSTALLDIR=${prefix}/universc
fi

if [[ ! -d $prefix ]]
@@ -67,7 +66,10 @@ echo $prefix > inst/.installed
echo prefix=$prefix

# create install directory
if [[ -z $INSTALLDIR ]]
    then
    INSTALLDIR="${prefix}/universc-${version}"
fi
echo "Installing to $INSTALLDIR"
mkdir -p ${prefix}/universc-${version}