Mercurial > hg > buildtools
diff hg2cl @ 20:627a2524520d
Cleanups, rename svn2cl.xsl to xml2cl.csl.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 20 May 2020 12:42:41 +0300 |
parents | 0accb32904e7 |
children | 31f6639b7a77 |
line wrap: on
line diff
--- a/hg2cl Wed May 20 10:44:27 2020 +0300 +++ b/hg2cl Wed May 20 12:42:41 2020 +0300 @@ -45,7 +45,7 @@ CHANGELOG="ChangeLog" # do command line checking -prog=`basename $0` +prog="$(basename $0)" while [ -n "$1" ] do case "$1" in @@ -78,7 +78,7 @@ shift ;; -V|--version) - echo "$prog $VERSION"; + echo "${prog} $VERSION"; echo "Written by Arthur de Jong." echo "Modified for Mercurial by Matti Hamalainen." echo "Copyright (C) 2005 Arthur de Jong." @@ -89,7 +89,7 @@ exit 0 ;; -h|--help) - echo "Usage: $prog [OPTION]..." + echo "Usage: ${prog} [OPTION]..." echo "Generate a ChangeLog from a checked out Mercurial repository." echo "" echo " --strip-prefix NAME prefix to strip from all entries, defaults" @@ -105,8 +105,8 @@ exit 0 ;; *) - echo "$prog: invalid option -- $1" - echo "Try \`$prog --help' for more information." + echo "${prog}: invalid option -- $1" + echo "Try \`${prog} --help' for more information." exit 1 ;; esac @@ -120,7 +120,7 @@ # find the directory that this script resides in dir="$(dirname "$(realpath "$0")")" -XSL="${dir}/svn2cl.xsl" +XSL="${dir}/xml2cl.xsl" # redirect stdout to the changelog file if needed if test "x$CHANGELOG" != "x-"; then