From: Roland McGrath Date: Tue, 15 Nov 1994 06:55:45 +0000 (+0000) Subject: (divrem rule): Make the output unwritable, use mv -f. X-Git-Tag: glibc-2.16-ports-before-merge~4032 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dae2877c9ec505d9ed260f824bd43da78bba8e06;p=thirdparty%2Fglibc.git (divrem rule): Make the output unwritable, use mv -f. --- diff --git a/sysdeps/alpha/Makefile b/sysdeps/alpha/Makefile index 5490776da66..4ea38941cc9 100644 --- a/sysdeps/alpha/Makefile +++ b/sysdeps/alpha/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1993 Free Software Foundation, Inc. +# Copyright (C) 1993, 1994 Free Software Foundation, Inc. # Contributed by Brendan Kehoe (brendan@zen.org). # The GNU C Library is free software; you can redistribute it and/or @@ -88,4 +88,6 @@ $(divrem:%=$(sysdep_dir)/alpha/%.S): $(sysdep_dir)/alpha/divrem.m4 $(sysdep_dir) define(SYSDEP_DIR, \`$(sysdep_dir)/alpha')\ /* This file is generated from divrem.m4; DO NOT EDIT! */"; \ cat $<) | $(M4) > $@-tmp - mv $@-tmp $@ +# Make it unwritable so noone will edit it by mistake. + -chmod a-w $@-tmp + mv -f $@-tmp $@