diff --git a/build.sh b/build.sh index d0edcb4..3bf3d1a 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ SOURCE=$(find . -type f ! -path './test/*' -name "*.c") HEADER="-I. -I/usr/local/include" -if [ "$(uname)" = "Linux" ]; then +if [ "$(uname)" = "Linux" -o "$(uname)" = "NetBSD" ]; then LIBS="-L/usr/local/lib -lprinthex -lz" else LIBS="-L/usr/local/lib -lz -liconv -lprinthex" diff --git a/install.sh b/install.sh index f6c716b..957142e 100755 --- a/install.sh +++ b/install.sh @@ -1,9 +1,14 @@ #!/bin/sh INSTALLPATH=/usr/local/bin +mkdir -p "$INSTALLPATH" for SOURCE in id3edit id3show id3frames id3dump ; do - install -m 755 -v -o root $SOURCE $INSTALLPATH + if [ "$(uname)" = "NetBSD" -o "$(uname)" = "OpenBSD" ]; then + install -m 755 -o root $SOURCE $INSTALLPATH + else + install -m 755 -v -o root $SOURCE $INSTALLPATH + fi done strip $INSTALLPATH/id3edit