* Makefile (subdirs): Add elf first.
authorRoland McGrath <roland@gnu.org>
Tue, 21 Feb 1995 06:15:34 +0000 (06:15 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 21 Feb 1995 06:15:34 +0000 (06:15 +0000)
* elf/Makefile: New file.
* elf/elf.h: New file.

ChangeLog
Makefile
elf/Makefile [new file with mode: 0644]
manual/move-if-change [new file with mode: 0755]
move-if-change [new file with mode: 0755]

index 4baa630..e605efe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 9c998da..3b1cefa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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 (file)
index 0000000..7dfb9ac
--- /dev/null
@@ -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 (executable)
index 0000000..66d8b8a
--- /dev/null
@@ -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 (executable)
index 0000000..66d8b8a
--- /dev/null
@@ -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