[gnome-common] Use dirname, instead of basename for finding srcdir



commit 230af79ef72f1465b83b36df05db08f029805e65
Author: Mathias Hasselmann <mathias openismus com>
Date:   Fri Mar 19 08:55:57 2010 +0100

    Use dirname, instead of basename for finding srcdir
    
    Partially fixes bug #510989.

 doc/usage.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/doc/usage.txt b/doc/usage.txt
index ff7c255..d2294e5 100644
--- a/doc/usage.txt
+++ b/doc/usage.txt
@@ -11,7 +11,7 @@ script in your module that looks something like this:
 
 ---- Cut Here ----
 #!/bin/sh
-srcdir=`basename $0`
+srcdir=`dirname $0`
 [ -z "$srcdir" ] && srcdir=.
 
 PKG_NAME=mypackage



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]