File: inst_file

package info (click to toggle)
ttf2pt1 3.4.4-1.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,056 kB
  • ctags: 1,142
  • sloc: ansic: 13,816; perl: 1,851; sh: 558; makefile: 190
file content (17 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Script to install a file (for portability reasons)
#
# (c) 2000 by The TTF2PT1 Project
# See COPYRIGHT for full license
#

[ $#  != 5 ] && {
	echo  "Use: $0 file-from file-to owner group mode" >&2
	exit 1
}

cp -f $1 $2 \
&& chown $3 $2 \
&& chgrp $4 $2 \
&& chmod 0$5 $2