[rott-commits] r285 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Feb 24 11:37:06 EST 2015


Author: fabian
Date: 2015-02-24 11:37:06 -0500 (Tue, 24 Feb 2015)
New Revision: 285

Modified:
   trunk/configure.ac
Log:
Remove duplicate and trailing slashes from datadir variable

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2015-02-24 07:05:14 UTC (rev 284)
+++ trunk/configure.ac	2015-02-24 16:37:06 UTC (rev 285)
@@ -55,6 +55,7 @@
     suffix=
     ;;
 *)
+    # Add leading dash
     suffix=-${suffix}
     ;;
 esac
@@ -69,6 +70,9 @@
               [datadir="$enableval"],
               [datadir=no])
 
+# Remove duplicate and trailing slashes
+datadir=`echo ${datadir} | tr -s '/' | sed 's|/*$||'`
+
 case "$datadir" in
 no|yes)
     ;;



More information about the rott-commits mailing list