diff options
Diffstat (limited to '')
-rwxr-xr-x | install-sh | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# $Id: install-sh,v 1.4 2002/09/09 13:51:46 ukai Exp $ +# $Id: install-sh,v 1.5 2002/11/06 03:50:49 ukai Exp $ set -e @@ -18,6 +18,12 @@ do fi shift; ;; + -o) owner=$2 + shift; shift + ;; + -g) group=$2 + shift; shift + ;; -*) shift ;; @@ -45,6 +51,12 @@ cp $file $dest if [ -n "$strip" ]; then $strip $dest fi +if [ -n "$owner" ]; then + chown $owner $dest +fi +if [ -n '$group" ]; then + chgrp $group $dest +fi if [ -n "$mode" ]; then chmod $mode $dest fi |