From patchwork Sat May 28 01:16:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongli Zhang X-Patchwork-Id: 9139115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2EF2B60759 for ; Sat, 28 May 2016 01:18:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B88A28305 for ; Sat, 28 May 2016 01:18:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E193C28315; Sat, 28 May 2016 01:18:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 73D9228305 for ; Sat, 28 May 2016 01:18:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6Srf-0000Cv-7A; Sat, 28 May 2016 01:16:31 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6Sre-0000Co-LL for xen-devel@lists.xen.org; Sat, 28 May 2016 01:16:30 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id F2/F3-06230-D61F8475; Sat, 28 May 2016 01:16:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRWlGSWpSXmKPExsUyZ7p8oG7uR49 wgw275C2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oxPfz6yF3zhqPh96jRLA+Mnti5GTg4hgYlM Es/nWXYxcgHZvxklWhZ8YYdIbGSUWH1FDMLuZpSY+tMYxGYT0JGYduAUSxcjB4eIgJ/ElosFI GFhgUiJYzvnsoDYLAKqEj/O/QCbzyvgJjF7xn2wuISAnMTJY5NZIWxDic8blzJPYORewMiwil G9OLWoLLVI11AvqSgzPaMkNzEzR9fQwEwvN7W4ODE9NScxqVgvOT93EyPQtwxAsINx53OnQ4y SHExKorxMlz3ChfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwPnoPlBMsSk1PrUjLzAEGGUxagoNH SYRX/QNQmre4IDG3ODMdInWKUVFKnDcAJCEAksgozYNrgwX2JUZZKWFeRqBDhHgKUotyM0tQ5 V8xinMwKgnzZoJM4cnMK4Gb/gpoMRPQ4gUsYItLEhFSUg2MCsaHH/p8TjN35BGezMGa/yy9+8 5xfy4xy5NqcpWe/14dP89eXeTW3lyfaXlffKP85H9fjHK68heYvJbVKj/563/QzKnyx5eILOh N7I1682/mq/WxFl/DNG75qbyq+dU3TUjm6WoN1lNH+eeEG5h1aniYRJxXN65lmb/TVjV13czo yasT/KyVWIozEg21mIuKEwE+F82rZwIAAA== X-Env-Sender: dongli.zhang@oracle.com X-Msg-Ref: server-11.tower-21.messagelabs.com!1464398187!16261174!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 38528 invoked from network); 28 May 2016 01:16:29 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-11.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 28 May 2016 01:16:29 -0000 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u4S1GPaB020394 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 May 2016 01:16:26 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u4S1GPin001830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 May 2016 01:16:25 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u4S1GOIf021946; Sat, 28 May 2016 01:16:25 GMT Received: from linux.cn.oracle.com (/10.182.70.252) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 27 May 2016 18:16:24 -0700 From: Dongli Zhang To: xen-devel@lists.xen.org, ross.lagerwall@citrix.com, konrad.wilk@oracle.com Date: Sat, 28 May 2016 09:16:58 +0800 Message-Id: <1464398218-5261-1-git-send-email-dongli.zhang@oracle.com> X-Mailer: git-send-email 1.9.1 X-Source-IP: userv0022.oracle.com [156.151.31.74] Subject: [Xen-devel] [PATCH 1/1] xsplice-build-tools: replace realpath with readlink in xsplice-build X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Replace realpath with readlink since '-m' option is not supported by realpath. Signed-off-by: Dongli Zhang --- xsplice-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xsplice-build b/xsplice-build index 2eb7993..5852186 100755 --- a/xsplice-build +++ b/xsplice-build @@ -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"