[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04254] patch: path trimming in configure

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-07-28 16:37:20 UTC
List: ruby-talk #4254
Configure handles path literally at least for --prefix and appends it's
relative path as '/include', not plain 'include'.

Thus I thought to say --prefix=/home/my_home/test_bed, but then I though
about root dir and decided the path should be /home/my_home/test_bed/ so
that root is specified as --prefix=/. Trailing '/' causes ruby to -I
(nclude) and install to /home/my_home/test_bed//bin. This causes no problems
(dunno why unix allows this), but seems quite ackward, so I made following
patch which removes trailing slash from prefix option.

Same kind of thing should probably be applied to all path options, but I
haven't used them, so I thought I should not mess up.

	- Aleksi

--- configure~  Thu Jun 22 06:47:46 2000
+++ configure   Fri Jul 28 18:27:47 2000
@@ -269,7 +269,7 @@
   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     ac_prev=prefix ;;
   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
-    prefix="$ac_optarg" ;;
+    prefix=`echo $ac_optarg|sed -e 's/\/$//'` ;;
 
   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   | --program-pre | --program-pr | --program-p)


In This Thread

Prev Next