mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-18 08:51:06 +00:00
(divrem rule): Make the output unwritable, use mv -f.
This commit is contained in:
parent
8e576015fb
commit
dae2877c9e
@ -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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user