diff options
-rwxr-xr-x | build/vty_reference_combine.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ 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" \ |