summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-03 21:34:06 +0000
committerJim Meyering <jim@meyering.net>2003-01-03 21:34:06 +0000
commitd45f740edcdddb3c059b9b78792cd38a176090ee (patch)
tree8b0980addf0ab726f9d954225931a3395286bdf2 /src
parent8cce2636495b071be7bbf3ed646247ad798b71d3 (diff)
downloadcoreutils-d45f740edcdddb3c059b9b78792cd38a176090ee.tar.xz
(false.c): Make the generated file be read-only.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ad95346f3..d14930cc6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -174,11 +174,13 @@ BUILT_SOURCES = dircolors.h false.c wheel.h wheel-size.h
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = false
false.c: true.c
+ rm -f $@
sed \
-e s/true/false/g \
-e s/success/failure/g \
-e 's/^ exit (EXIT_SUCCESS/ exit (EXIT_FAILURE/g' \
$(srcdir)/true.c > $@-t
+ chmod a-w $@-t
mv $@-t $@
all_programs = \