Makefile: use mingw-list-dlls from MinGW cross scripts
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 18 Oct 2008 18:14:44 +0000 (18:14 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 18 Oct 2008 18:14:44 +0000 (18:14 +0000)
The scripts are available at http://repo.or.cz/w/mingw-xscripts.git

git-svn-id: https://s.snth.net/svn/neverball/trunk@2575 78b8d119-cf0a-0410-b17c-f493084dd1d7

Makefile
scripts/gen-install-dlls.sh [deleted file]

index 25e1eed..ccc28a4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -336,12 +336,8 @@ install-dlls: install-dlls.sh
        sh $<
 
 install-dlls.sh:
-       if ! sh scripts/gen-install-dlls.sh > $@; then \
-           $(RM) $@; \
-           exit 1; \
-       fi
+       mingw-list-dlls --sh > $@
        @echo --------------------------------------------------------
-       @echo You can probably ignore any file-not-found errors above.
        @echo Now edit $@ to your needs before restarting make.
        @echo --------------------------------------------------------
        @exit 1
diff --git a/scripts/gen-install-dlls.sh b/scripts/gen-install-dlls.sh
deleted file mode 100644 (file)
index 600aaa5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-if test -z "$MINGW_PREFIX"; then
-    cat >&2 <<EOF
-MINGW_PREFIX not set.  Set the MINGW_PREFIX environment variable to your
-MinGW path, such as /mingw, /usr/i586-mingw32msvc or ~/mingw.
-EOF
-    exit 1
-fi
-
-if ! test -d "$MINGW_PREFIX"; then
-    cat >&2 <<EOF
-MINGW_PREFIX not valid.  Make sure the MINGW_PREFIX environment variable
-is set to a valid location.
-EOF
-    exit 1
-fi
-
-cat <<EOF
-#!/bin/sh
-# This script was generated automatically.
-# Edit the list below to suit your needs.
-
-install \\
-$(ls "$MINGW_PREFIX"/{bin,lib}/*.dll | sed -e 's/^/    /' -e 's/$/ \\/')
-    .
-EOF
-