Handle streams separately in tree_add_track()
[cmus.git] / scripts / install
blob8c453b7d1d1c59852727647eed8763fad8428805
1 #!/bin/sh
3 # Copyright 2005-2006 Timo Hirvonen
5 # This file is licensed under the GPLv2.
7 flags=""
8 while test $# -gt 0
9 do
10 case $1 in
11 -*)
12 flags="$flags $1"
15 break
17 esac
18 shift
19 done
21 test $# -lt 2 && exit 0
23 to="${DESTDIR}${1}"
24 shift
25 $GINSTALL -d -m755 "${to}"
26 for i in "$@"
28 dest="${to}/`basename ${i}`"
29 test "$INSTALL_LOG" && echo "$dest" >> "$INSTALL_LOG"
30 echo "INSTALL ${dest}"
31 $GINSTALL $flags "$i" "${to}"
32 done