summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-02-21 06:15:34 +0000
committerRoland McGrath <roland@gnu.org>1995-02-21 06:15:34 +0000
commit01cc0be62795f0afee7d7866bb2ec2f24b92dcee (patch)
treec42e7c1791bac6822956cb70a45c1015db4353ea
parent8b60020b204dcaebc346d94f3d9972f741a8cbe1 (diff)
downloadglibc-01cc0be62795f0afee7d7866bb2ec2f24b92dcee.tar.gz
* Makefile (subdirs): Add elf first.
* elf/Makefile: New file. * elf/elf.h: New file.
-rw-r--r--ChangeLog4
-rw-r--r--Makefile2
-rw-r--r--elf/Makefile23
-rwxr-xr-xmanual/move-if-change17
-rwxr-xr-xmove-if-change17
5 files changed, 62 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4baa630c27..e605efe7ed 100644
--- 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
diff --git a/Makefile b/Makefile
index 9c998da1b7..3b1cefa7ae 100644
--- 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
index 0000000000..7dfb9ac37d
--- /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 0000000000..66d8b8adc7
--- /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 0000000000..66d8b8adc7
--- /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