Browse Source

Add script to create the minimal subset of symlinks

Peter S. Mazinger 18 years ago
parent
commit
7c4607a257
1 changed files with 24 additions and 0 deletions
  1. 24 0
      extra/scripts/create_links.sh

+ 24 - 0
extra/scripts/create_links.sh

@@ -0,0 +1,24 @@
+#! /bin/sh
+#
+# Creates the minimally necessary links to build w/ the Makefile.in files
+
+DIRS="ldso libc libcrypt libintl libm libnsl libpthread libresolv librt libutil"
+DIRS2="ldso/ldso ldso/libdl libpthread/linuxthreads libpthread/linuxthreads_db"
+OBJ4="common arm i386 mips powerpc x86_64"
+
+for x in ${DIRS} ; do
+	rm -f ${x}/Makefile
+	ln -sf ../extra/scripts/Makefile.libs.lvl1 ${x}/Makefile
+done
+
+for x in ${DIRS2} ; do
+	rm -f ${x}/Makefile
+	ln -sf ../../extra/scripts/Makefile.libs.lvl2 ${x}/Makefile
+done
+
+for x in ${OBJ4} ; do
+	rm -f libc/sysdeps/linux/${x}/Makefile
+	ln -sf ../../../../extra/scripts/Makefile.objs.lvl4 libc/sysdeps/linux/${x}/Makefile
+done
+
+exit 0