[parted-devel] [PATCH] tests/Makefile.am (init.sh): Make this generated file read-only

Jim Meyering jim at meyering.net
Sat May 19 06:54:18 UTC 2007


FYI,

Signed-off-by: Jim Meyering <jim at meyering.net>
---
 tests/Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 55e44e2..93247a0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -14,5 +14,7 @@ EXTRA_DIST = \
 CLEANFILES = init.sh
 all: init.sh
 init.sh: Makefile.in
+	rm -f $@-t $@
 	( echo 'srcdir=$(srcdir)'; echo '. $$srcdir/test-lib.sh' ) > $@-t
+	chmod a-w $@-t
 	mv $@-t $@



More information about the parted-devel mailing list