[Crash-utility] [PATCH] allow various git command locations

Cliff Wickman cpw at sgi.com
Tue Aug 7 14:17:46 UTC 2012


From: Cliff Wickman <cpw at sgi.com>


I build crash on systems that don't always have the git command
as /usr/bin/git.

Could you allow git to be in various places?  Something like below?

Signed-off-by: Cliff Wickman <cpw at sgi.com>
---
 extensions/eppic.mk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: crash-6.0.8/extensions/eppic.mk
===================================================================
--- crash-6.0.8.orig/extensions/eppic.mk
+++ crash-6.0.8/extensions/eppic.mk
@@ -24,7 +24,8 @@ all:
       then \
         if  [ ! -f $(APPFILE) ]; \
         then \
-	      if [ -f /usr/bin/git ]; \
+	      GIT=`which git 2> /dev/null`; \
+	      if [ -f $${GIT} ]; \
           then \
              git clone https://code.google.com/p/eppic eppic; \
           else \




More information about the Crash-utility mailing list