aboutsummaryrefslogtreecommitdiffstats
path: root/bs/bs-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-09-06 09:28:16 +0000
committerEric Wong <normalperson@yhbt.net>2006-09-06 09:28:16 +0000
commitb78b0a7f09eb2c276cb62645c5f2481f205329a0 (patch)
tree32a5c42ce51a1ca33987d17b4144297d2c912cf0 /bs/bs-lib.sh
parent412cb1ee105a74999a3ffac4e60e6602c5f2e541 (diff)
downloadmpd-b78b0a7f09eb2c276cb62645c5f2481f205329a0.tar.gz
mpd-b78b0a7f09eb2c276cb62645c5f2481f205329a0.tar.xz
mpd-b78b0a7f09eb2c276cb62645c5f2481f205329a0.zip
remove bs; oops, didn't mean to commit that
git-svn-id: https://svn.musicpd.org/mpd/trunk@4738 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'bs/bs-lib.sh')
-rw-r--r--bs/bs-lib.sh50
1 files changed, 0 insertions, 50 deletions
diff --git a/bs/bs-lib.sh b/bs/bs-lib.sh
deleted file mode 100644
index 8b13653f2..000000000
--- a/bs/bs-lib.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# common shell functions and variable setup for the bs build system,
-# expect variables to be set and exported in bs.mk
-
-test -z "$CC" && CC=cc
-test -z "$CPP" && CPP='cc -E'
-test -z "$PKGCONFIG" && PKGCONFIG=pkg-config
-
-p ()
-{
- echo >&2 "$@"
-}
-
-run_cc ()
-{
- $CC $CPPFLAGS $CFLAGS $LDFLAGS \
- $cppflags $cflags $ldflags -o t.o t.c >/dev/null 2>&1
-}
-
-test_header ()
-{
- cat > t.c <<EOF
-#include <$1.h>
-int main (void) { return 0; }
-EOF
- run_cc
-}
-
-dep_paths ()
-{
- name=$1
- eval "cflags=`echo '$'`${name}_cflags"
- eval "ldflags=`echo '$'`${name}_ldflags"
- eval "pfx=`echo '$'`${name}_pfx"
- if test -n "$pfx"; then
- cflags="$cflags -I$pfx/include"
- ldflags="$ldflags -L$pfx/lib"
- fi
-}
-
-test_compile ()
-{
- h=shift
- cat > t.c <<EOF
-#include <$h.h>
-int main () { $@ return 0; }
-EOF
- run_cc
-}
-