packages: adapter - readlink -f as the link maybe relative

glen glen at pld-linux.org
Mon Feb 22 09:24:23 CET 2010


Author: glen                         Date: Mon Feb 22 08:24:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- readlink -f as the link maybe relative

---- Files affected:
packages:
   adapter (1.44 -> 1.45) 

---- Diffs:

================================================================
Index: packages/adapter
diff -u packages/adapter:1.44 packages/adapter:1.45
--- packages/adapter:1.44	Mon Feb 22 09:23:26 2010
+++ packages/adapter	Mon Feb 22 09:24:17 2010
@@ -20,7 +20,7 @@
 $VERSION (C) 1999-2010 Free Penguins".
 
 PROGRAM=${0##*/}
-dir=$(d=$0; [ -L "$d" ] && d=$(readlink "$d"); dirname "$d")
+dir=$(d=$0; [ -L "$d" ] && d=$(readlink -f "$d"); dirname "$d")
 adapter=$dir/adapter.awk
 usage="Usage: $PROGRAM [FLAGS] SPECFILE
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/adapter?r1=1.44&r2=1.45&f=u



More information about the pld-cvs-commit mailing list