[axel-commits] r104 - in /trunk: CHANGES configure

phihag-guest at users.alioth.debian.org phihag-guest at users.alioth.debian.org
Sun Apr 5 21:09:26 UTC 2009


Author: phihag-guest
Date: Sun Apr  5 21:09:26 2009
New Revision: 104

URL: http://svn.debian.org/wsvn/axel/?sc=1&rev=104
Log:
Allow special characters in arguments to configure

Modified:
    trunk/CHANGES
    trunk/configure

Modified: trunk/CHANGES
URL: http://svn.debian.org/wsvn/axel/trunk/CHANGES?rev=104&op=diff
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Sun Apr  5 21:09:26 2009
@@ -7,6 +7,7 @@
 - Removed Fedora packaging file. axel will be available in the Fedora repositories soon.
 - Use /etc/ instead of /usr/local/etc as the default system-wide configuration location.
 - Respect environment CFLAGS in configure.
+- Allow special characters in arguments to configure.
 
 Version 2.3
 

Modified: trunk/configure
URL: http://svn.debian.org/wsvn/axel/trunk/configure?rev=104&op=diff
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sun Apr  5 21:09:26 2009
@@ -40,7 +40,11 @@
 EOF
 		exit;
 	fi
-	eval "$e"
+	
+	keyname=$(expr "$e" : '\(.*\)=.*' | sed 's/[^a-z0-9_]/_/g')
+	value=$(expr "$e" : '.*=\(.*\)' | sed 's/"/_/g')
+	
+	eval "$keyname=${value}"
 	shift;
 done
 




More information about the axel-commits mailing list