[Libguestfs] [PATCH v2 6/6] build: Add comment to OCaml dependencies .depend files.
Richard W.M. Jones
rjones at redhat.com
Wed Sep 20 16:55:19 UTC 2017
Also mark them readonly, since they are generated.
---
ocaml-dep.sh.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ocaml-dep.sh.in b/ocaml-dep.sh.in
index ee24502cb..a8c501cf8 100755
--- a/ocaml-dep.sh.in
+++ b/ocaml-dep.sh.in
@@ -55,6 +55,9 @@ done
rm -f $output $output-t
- at OCAMLFIND@ ocamldep @OCAMLDEP_ALL@ @OCAMLDEP_ONE_LINE@ $includes "$@" > $output-t
+echo "# OCaml dependencies generated by $0" > $output-t
+echo >> $output-t
+ at OCAMLFIND@ ocamldep @OCAMLDEP_ALL@ @OCAMLDEP_ONE_LINE@ $includes "$@" >> $output-t
+chmod -w $output-t
mv $output-t $output
--
2.13.2
More information about the Libguestfs
mailing list