[packages/adapter: 469/631] - readlink -f as the link maybe relative
glen
glen at pld-linux.org
Mon Sep 12 20:13:45 CEST 2016
commit 0709317ae7d8a026cab6ffa26157ab61571077fa
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Feb 22 08:24:17 2010 +0000
- readlink -f as the link maybe relative
Changed files:
adapter.sh -> 1.45
adapter.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/adapter.sh b/adapter.sh
index 94a1c3d..efaa601 100644
--- a/adapter.sh
+++ b/adapter.sh
@@ -20,7 +20,7 @@ Adapter adapts .spec files for PLD Linux.
$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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list