Add emacs magic to set created files to read-only.
authorWerner Koch <wk@gnupg.org>
Mon, 2 Apr 2012 13:04:15 +0000 (15:04 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 2 Apr 2012 13:04:15 +0000 (15:04 +0200)
* configure.ac (emacs_local_vars_begin): New AC_SUBST.
* src/gpg4win.mk.in: Use above to set gpg4win.mk to read-only.

configure.ac
src/gpg4win.mk.in

index 91a3772..1205f4a 100644 (file)
@@ -126,6 +126,11 @@ if test -z "$RELEASEHOST" ; then
 fi
 AC_SUBST(RELEASEHOST)
 
+# Substitutions to set generated files in a Emacs buffer to read-only.
+AC_SUBST(emacs_local_vars_begin, ['Local Variables:'])
+AC_SUBST(emacs_local_vars_read_only, ['buffer-read-only: t'])
+AC_SUBST(emacs_local_vars_end, ['End:'])
+
 # For development of this package it is useful to build without
 # creating the source installer (takes a long time).  This option may
 # be used to suppress creation of the source installer.
index c6d4845..dbfcebf 100644 (file)
@@ -359,3 +359,7 @@ clean-gpg4win:
        $(RM) -fR playground stamps
 
 .PHONY : all-gpg4win clean-stamps clean-gpg4win
+
+# @emacs_local_vars_begin@
+# @emacs_local_vars_read_only@
+# @emacs_local_vars_end@