pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/texlive2pkg pkgtools/texlive2pkg: fix shell q...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/20dbe5faacff
branches:  trunk
changeset: 339650:20dbe5faacff
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Sep 13 13:43:30 2019 +0000

description:
pkgtools/texlive2pkg: fix shell quoting, update to 1.8

Before this fix, running "texlive2pkg --help" in a directory that
contains a file named "d" would output only "d" instead of "[-d]".

diffstat:

 pkgtools/texlive2pkg/Makefile             |   4 ++--
 pkgtools/texlive2pkg/files/texlive2pkg.sh |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 181f9ffc4e8c -r 20dbe5faacff pkgtools/texlive2pkg/Makefile
--- a/pkgtools/texlive2pkg/Makefile     Fri Sep 13 13:31:39 2019 +0000
+++ b/pkgtools/texlive2pkg/Makefile     Fri Sep 13 13:43:30 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2019/08/27 06:21:18 markd Exp $
+# $NetBSD: Makefile,v 1.12 2019/09/13 13:43:30 rillig Exp $
 #
 
-PKGNAME=       texlive2pkg-1.7
+PKGNAME=       texlive2pkg-1.8
 CATEGORIES=    pkgtools
 
 MAINTAINER=    markd%NetBSD.org@localhost
diff -r 181f9ffc4e8c -r 20dbe5faacff pkgtools/texlive2pkg/files/texlive2pkg.sh
--- a/pkgtools/texlive2pkg/files/texlive2pkg.sh Fri Sep 13 13:31:39 2019 +0000
+++ b/pkgtools/texlive2pkg/files/texlive2pkg.sh Fri Sep 13 13:43:30 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 # texlive2pkg
-# $NetBSD: texlive2pkg.sh,v 1.2 2019/08/27 06:21:18 markd Exp $
+# $NetBSD: texlive2pkg.sh,v 1.3 2019/09/13 13:43:30 rillig Exp $
 #
 # Copyright (c) 2016
 #       Mark Davies.  All rights reserved.
@@ -44,7 +44,7 @@
 pkgurl=0
 docurl=0
 
-USAGE="${NAME} [-d] package-tarball [doc-tarball] -- create a texlive package for pkgsrc"
+usage="${NAME} [-d] package-tarball [doc-tarball] -- create a texlive package for pkgsrc"
 
 if [ "$1" = "-d" ]; then
   dodoc=1
@@ -60,7 +60,7 @@
   pkgtarball=$1
   doctarball=$2
 else
-  echo ${USAGE}
+  echo "${usage}" 1>&2
   exit 1
 fi
 
@@ -74,7 +74,7 @@
    pkgtarball=$PWD/$pkgtarball
    break ;;
 *)
-   echo ${USAGE}
+   echo "${usage}" 1>&2
    exit 1
 esac
 
@@ -90,7 +90,7 @@
    doctarball=$PWD/$doctarball
    break ;;
 *)
-   echo ${USAGE}
+   echo "${usage}" 1>&2
    exit 1
 esac
 



Home | Main Index | Thread Index | Old Index