osmith has uploaded this change for review. ( https://gerrit.osmocom.org/11843
Change subject: vty_reference_combine.sh: chmod xsltproc output
......................................................................
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
---
M build/vty_reference_combine.sh
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-manuals
refs/changes/43/11843/1
diff --git a/build/vty_reference_combine.sh b/build/vty_reference_combine.sh
index cb18e9e..449b227 100755
--- a/build/vty_reference_combine.sh
+++ b/build/vty_reference_combine.sh
@@ -22,6 +22,14 @@
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" \
--
To view, visit https://gerrit.osmocom.org/11843
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I693e12ee15665d01cbc50187e6cb3ca74ad0356a
Gerrit-Change-Number: 11843
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>