]> xenbits.xensource.com Git - livepatch-build-tools.git/commitdiff
xsplice-build-tools: replace realpath with readlink in xsplice-build
authorDongli Zhang <dongli.zhang@oracle.com>
Sat, 28 May 2016 01:16:58 +0000 (09:16 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 Jun 2016 20:24:07 +0000 (16:24 -0400)
Replace realpath with readlink since '-m' option is not supported by realpath.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xsplice-build

index 2eb7993f061d92ec1bdc5afe1ee64287f98c1c98..5852186b0bff325502874f403b27f4002df174ba 100755 (executable)
@@ -213,7 +213,7 @@ while [[ $# -gt 0 ]]; do
             ;;
         --xen-syms)
             shift
-            XENSYMS="$(realpath -m -- "$1")"
+            XENSYMS="$(readlink -m -- "$1")"
             [ -f "$XENSYMS" ] || die "xen-syms file does not exist"
             shift
             ;;
@@ -238,9 +238,9 @@ done
 [ -z "$outputarg" ] && die "Output directory not given"
 [ -z "$DEPENDS" ] && die "Build-id dependency not given"
 
-SRCDIR="$(realpath -m -- "$srcarg")"
-PATCHFILE="$(realpath -m -- "$patcharg")"
-OUTPUT="$(realpath -m -- "$outputarg")"
+SRCDIR="$(readlink -m -- "$srcarg")"
+PATCHFILE="$(readlink -m -- "$patcharg")"
+OUTPUT="$(readlink -m -- "$outputarg")"
 
 [ -d "${SRCDIR}" ] || die "Xen directory does not exist"
 [ -f "${PATCHFILE}" ] || die "Patchfile does not exist"