comparison hg2cl @ 19:0accb32904e7

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 May 2020 10:44:27 +0300
parents a6bd44285160
children 627a2524520d
comparison
equal deleted inserted replaced
18:a6bd44285160 19:0accb32904e7
117 echo "No Mercurial repository found from this directory." 117 echo "No Mercurial repository found from this directory."
118 exit 2 118 exit 2
119 fi 119 fi
120 120
121 # find the directory that this script resides in 121 # find the directory that this script resides in
122 dir=`dirname "$0"` 122 dir="$(dirname "$(realpath "$0")")"
123 dir=`cd "$dir" && pwd` 123 XSL="${dir}/svn2cl.xsl"
124 XSL="$dir/svn2cl.xsl"
125 124
126 # redirect stdout to the changelog file if needed 125 # redirect stdout to the changelog file if needed
127 if test "x$CHANGELOG" != "x-"; then 126 if test "x$CHANGELOG" != "x-"; then
128 exec > "$CHANGELOG" 127 exec > "$CHANGELOG"
129 fi 128 fi