From patchwork Tue Jan 16 11:13:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Latvala X-Patchwork-Id: 10166535 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 5AB63601E7 for ; Tue, 16 Jan 2018 11:15:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0736028358 for ; Tue, 16 Jan 2018 11:15:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF8D128389; Tue, 16 Jan 2018 11:15:30 +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 autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A2B9028358 for ; Tue, 16 Jan 2018 11:15:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 56F2789842; Tue, 16 Jan 2018 11:15:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6BE4C89830; Tue, 16 Jan 2018 11:15:27 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2018 03:15:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,368,1511856000"; d="scan'208";a="10929309" Received: from thrakatuluk.fi.intel.com (HELO thrakatuluk) ([10.237.68.137]) by orsmga006.jf.intel.com with ESMTP; 16 Jan 2018 03:15:25 -0800 Received: from platvala by thrakatuluk with local (Exim 4.89) (envelope-from ) id 1ebPDA-0001r7-H5; Tue, 16 Jan 2018 13:15:24 +0200 From: Petri Latvala To: igt-dev@lists.freedesktop.org Date: Tue, 16 Jan 2018 13:13:04 +0200 Message-Id: <20180116111306.7080-2-petri.latvala@intel.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180116111306.7080-1-petri.latvala@intel.com> References: <20180116111306.7080-1-petri.latvala@intel.com> Cc: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH i-g-t 2/4] meson: Add quotes in man/rst2man.sh X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP If the directories contain spaces, rst2man.sh fails. Signed-off-by: Petri Latvala --- man/rst2man.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/man/rst2man.sh b/man/rst2man.sh index fc2b5ed8..8106ca4b 100755 --- a/man/rst2man.sh +++ b/man/rst2man.sh @@ -3,14 +3,14 @@ input=$1 output=$2 -out_dir=$(dirname ${output}) -in_file=$(basename ${input}) +out_dir=$(dirname "${output}") +in_file=$(basename "${input}") # rst2man doesn't handle multiple source directories well, and since defs.rst is # generated we first need to move it all into the build dir -cp $input $out_dir +cp "$input" "$out_dir" -rst2man $out_dir/$in_file ${output%.gz} +rst2man "$out_dir/$in_file" "${output%.gz}" -rm -f ${output} -gzip ${output%.gz} +rm -f "${output}" +gzip "${output%.gz}"