diff options
author | Max Kellermann <max@duempel.org> | 2008-10-16 15:00:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-16 15:00:00 +0200 |
commit | c0a9ef980f94f12fdd9ba7d1949b2a05111b5ade (patch) | |
tree | 701f519b553d9f94ac396183146cd9f37cd55397 /bs/mkdep.sh | |
parent | 9b5ce27c3b517c501bb13a534d50476e11751262 (diff) | |
download | mpd-c0a9ef980f94f12fdd9ba7d1949b2a05111b5ade.tar.gz mpd-c0a9ef980f94f12fdd9ba7d1949b2a05111b5ade.tar.xz mpd-c0a9ef980f94f12fdd9ba7d1949b2a05111b5ade.zip |
removed the "bs" build scripts
autotools are somewhat ugly, but that doesn't justify duplicating its
effort with another complex build system.
Diffstat (limited to 'bs/mkdep.sh')
-rwxr-xr-x | bs/mkdep.sh | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/bs/mkdep.sh b/bs/mkdep.sh deleted file mode 100755 index 019b4bc4c..000000000 --- a/bs/mkdep.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# $d must have a trailing slash $(dir file) in GNU Make -f="$1" -d="$2" -x="$3" -if test -z "$O"; then - echo '$O= not defined or not a directory' >&2 - exit 1 -fi -test -d "$O/$d" || "$SHELL" ./bs/mkdir_p.sh "$O/$d" -t="$O/t.$$.d" -depmode= -out= -if test -e "$O/depmode"; then - . "$O/depmode" -fi - -case "$depmode" in -mm) - $CC -MM $CPPFLAGS $CFLAGS "$f" > "$t" 2>/dev/null - ;; -m) - $CC -M $CPPFLAGS $CFLAGS "$f" > "$t" 2>/dev/null - ;; -none) - echo "$O/$f: $f $HDR_DEP_HACK" | sed -e 's#c:#o:#' > "$x"+ - ;; -*) - # detect our depmode - # -MM is gcc-specific... - $CC -MM $CPPFLAGS $CFLAGS "$f" > "$t" 2>/dev/null - if test $? -eq 0; then - depmode=mm - else - # ok, maybe -M is supported... - $CC -M $CPPFLAGS $CFLAGS "$f" \ - > "$t" 2>/dev/null - if test $? -eq 0; then - depmode=m - else - depmode=none - # don't guess, fudge the dependencies by using - # all headers - echo "$O/$f: $f $HDR_DEP_HACK" \ - | sed -e 's#c:#o:#' > "$x"+ - fi - fi - echo "depmode=$depmode" > "$O/depmode" - ;; -esac - -case "$depmode" in -m|mm) - sed -e 's#.c$#.o#' -e "1s#^#$O/$d&#" < "$t" > "$x"+ - ;; -esac -rm -f "$t" -exec mv "$x"+ "$x" |