aboutsummaryrefslogtreecommitdiffstats
path: root/install-sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinstall-sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/install-sh b/install-sh
index 890de2f..fee2af0 100755
--- a/install-sh
+++ b/install-sh
@@ -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