]> Kevux Git Server - fll/commitdiff
Bugfix: install script destination parameters not being respected
authorKevin Day <thekevinday@gmail.com>
Sun, 28 Jul 2019 22:02:49 +0000 (17:02 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 28 Jul 2019 22:04:10 +0000 (17:04 -0500)
I used the wrong name in the grab_next variable when designating to grab the next includedir and libdir.
There is also a mistake where I was copying the destination_prefix onto itself.

build/scripts/install.sh

index 290cc9adb5d757a0ca110f2c7c1b7644ba1653f8..568dcebed15ff764a060a250359251c18c933d9b 100644 (file)
@@ -78,9 +78,9 @@ install_main(){
         elif [[ $p == "-B" || $p == "--bindir" ]] ; then
           grab_next=bindir
         elif [[ $p == "-I" || $p == "--includedir" ]] ; then
-          grab_next=includes
+          grab_next=includedir
         elif [[ $p == "-L" || $p == "--libdir" ]] ; then
-          grab_next=libraries
+          grab_next=libdir
         elif [[ $p == "--enable-shared" ]] ; then
           enable_shared="yes"
         elif [[ $p == "--disable-shared" ]] ; then
@@ -138,10 +138,6 @@ install_main(){
     fi
 
     if [[ $destination_prefix != "" ]] ; then
-      if [[ $(echo $destination_prefix | grep -o '^/') == "" ]] ; then
-        destination_prefix="$destination_prefix$destination_prefix"
-      fi
-
       if [[ $(echo $destination_programs | grep -o '^/') == "" ]] ; then
         destination_programs="$destination_prefix$destination_programs"
       fi