Initial revision
authorPer Bothner <per@bothner.com>
Mon, 7 Oct 1991 23:14:25 +0000 (23:14 +0000)
committerPer Bothner <per@bothner.com>
Mon, 7 Oct 1991 23:14:25 +0000 (23:14 +0000)
binutils/is-ranlib.c [new file with mode: 0644]
binutils/maybe-ranlib.c [new file with mode: 0644]
binutils/not-ranlib.c [new file with mode: 0644]
binutils/ranlib.sh [new file with mode: 0755]

diff --git a/binutils/is-ranlib.c b/binutils/is-ranlib.c
new file mode 100644 (file)
index 0000000..fde72a4
--- /dev/null
@@ -0,0 +1,3 @@
+/* Linked with ar.o to flag that this program is 'ranlib' (not 'ar'). */
+
+int is_ranlib = 1;
diff --git a/binutils/maybe-ranlib.c b/binutils/maybe-ranlib.c
new file mode 100644 (file)
index 0000000..882bb73
--- /dev/null
@@ -0,0 +1,4 @@
+/* Linked with ar.o to flag that this program decides at runtime
+   (using argv[0] if it is is 'ar' or 'ranlib'. */
+
+int is_ranlib = 0;
diff --git a/binutils/not-ranlib.c b/binutils/not-ranlib.c
new file mode 100644 (file)
index 0000000..b4b730e
--- /dev/null
@@ -0,0 +1,3 @@
+/* Linked with ar.o to flag that this program is 'ar' (not 'ranlib'). */
+
+int is_ranlib = -1;
diff --git a/binutils/ranlib.sh b/binutils/ranlib.sh
new file mode 100755 (executable)
index 0000000..2b6fbc4
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+# A simple ranlib script, to use less disk space than a ranlib program.
+ar s $1