File: install-files

package info (click to toggle)
tetex-src 3.0.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 122,292 kB
  • ctags: 2,709
  • sloc: makefile: 2,323; perl: 1,820; sh: 1,378; lisp: 448; python: 335; xml: 175; sed: 138; ansic: 138; yacc: 52
file content (23 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

umask 022

case $# in
0|1|2)	exit;;
#3)	if [ -d $1 ] && [ $1 != $2 ]; then
#		echo >&2
#		echo "!! Warning: using $1" >&2
#		echo >&2
#		dir=$1
#	else
#		dir=$2
#	fi
#	;;
*)	dir=$1;;
esac

shift; shift

test -f $dir || mkdir -p $dir
touch $dir
cp -auv "$@" $dir