vty_reference_combine.sh: chmod xsltproc output

Force the xsltproc output file to be writable, if it exists already.
This is needed for 'make distcheck': xsltproc gives output files the
same permissions as input files. We need to change the output file in
multiple iterations in vty_reference_combine.sh, hence it must be
writable.

(moving manuals to project repositories 15/19)

Related: OS#3385
Change-Id: I693e12ee15665d01cbc50187e6cb3ca74ad0356a
This commit is contained in:
Oliver Smith 2018-11-19 12:24:26 +01:00
parent 54e6529a6a
commit 896c7a8c49
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,14 @@ cp $reference "$combined"
while [ -n "$1" ]; do
addition="$(realpath "$1")"
shift
# Fix permissions: xsltproc sets the output permissions the same as the
# input file, which means during "make distcheck" our output file will
# become read-only.
if [ -f "$combine_src" ]; then
chmod 644 "$combine_src"
fi
mv "$combined" "$combine_src"
xsltproc -o "$combined" \
--stringparam with "$addition" \