diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | elf/Makefile | 23 | ||||
-rwxr-xr-x | manual/move-if-change | 17 | ||||
-rwxr-xr-x | move-if-change | 17 |
5 files changed, 62 insertions, 1 deletions
@@ -1,5 +1,9 @@ Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> + * Makefile (subdirs): Add elf first. + * elf/Makefile: New file. + * elf/elf.h: New file. + * sysdeps/unix/start.c (errno): Only define if it's not #define'd as a macro. [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol @@ -49,7 +49,7 @@ sysdep-subdirs := $(subst $(\n), ,$(sysdep-subdirs)) endif # These are the subdirectories containing the library source. -subdirs := csu assert ctype locale math setjmp signal stdio stdlib \ +subdirs := elf csu assert ctype locale math setjmp signal stdio stdlib \ malloc string time dirent grp pwd posix io termios resource \ socket misc gnulib $(wildcard crypt) manual \ $(sysdep-subdirs) diff --git a/elf/Makefile b/elf/Makefile new file mode 100644 index 0000000..7dfb9ac --- /dev/null +++ b/elf/Makefile @@ -0,0 +1,23 @@ +# Copyright (C) 1995 Free Software Foundation, Inc. +# This file is part of the GNU C Library. + +# The GNU C Library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. + +# The GNU C Library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. + +# You should have received a copy of the GNU Library General Public +# License along with the GNU C Library; see the file COPYING.LIB. If +# not, write to the Free Software Foundation, Inc., 675 Mass Ave, +# Cambridge, MA 02139, USA. + +subdir := elf + +headers := elf.h # libelf.h + +include ../Rules diff --git a/manual/move-if-change b/manual/move-if-change new file mode 100755 index 0000000..66d8b8a --- /dev/null +++ b/manual/move-if-change @@ -0,0 +1,17 @@ +#!/bin/sh +# Like mv $1 $2, but if the files are the same, just delete $1. +# Status is 0 if $2 is changed, 1 otherwise. +if +test -r $2 +then +if +cmp -s $1 $2 +then +echo $2 is unchanged +rm -f $1 +else +mv -f $1 $2 +fi +else +mv -f $1 $2 +fi diff --git a/move-if-change b/move-if-change new file mode 100755 index 0000000..66d8b8a --- /dev/null +++ b/move-if-change @@ -0,0 +1,17 @@ +#!/bin/sh +# Like mv $1 $2, but if the files are the same, just delete $1. +# Status is 0 if $2 is changed, 1 otherwise. +if +test -r $2 +then +if +cmp -s $1 $2 +then +echo $2 is unchanged +rm -f $1 +else +mv -f $1 $2 +fi +else +mv -f $1 $2 +fi |