File: install

package info (click to toggle)
cmus 2.7.1%2Bgit20160225-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,848 kB
  • sloc: ansic: 35,866; sh: 1,548; makefile: 260; python: 159
file content (32 lines) | stat: -rwxr-xr-x 448 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
#
# Copyright 2005-2006 Timo Hirvonen
#
# This file is licensed under the GPLv2.

flags=""
while test $# -gt 0
do
	case $1 in
		-*)
			flags="$flags $1"
			;;
		*)
			break
			;;
	esac
	shift
done

test $# -lt 2 && exit 0

to="${DESTDIR}${1}"
shift
$GINSTALL -d -m755 "${to}"
for i in "$@"
do
	dest="${to}/`basename ${i}`"
	test "$INSTALL_LOG" && echo "$dest" >> "$INSTALL_LOG"
	echo "INSTALL ${dest}"
	$GINSTALL $flags "$i" "${to}"
done