Make PREFIX work under Cygwin - Take 2

This commit is contained in:
Tom Eastep 2009-07-25 07:44:53 -07:00
parent eed9df1c06
commit 2d45a35c8f
4 changed files with 39 additions and 21 deletions

View File

@ -107,14 +107,6 @@ if [ -z "$RUNLEVELS" ] ; then
RUNLEVELS="" RUNLEVELS=""
fi fi
if [ -z "$OWNER" ] ; then
OWNER=root
fi
if [ -z "$GROUP" ] ; then
GROUP=root
fi
while [ $# -gt 0 ] ; do while [ $# -gt 0 ] ; do
case "$1" in case "$1" in
-h|help|?) -h|help|?)
@ -138,6 +130,23 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
# Determine where to install the firewall script # Determine where to install the firewall script
# #
DEBIAN= DEBIAN=
CYGWIN=
case $(uname) in
CYGWIN*)
if [ -z "$PREFIX" ]; then
DEST=
INIT=
fi
OWNER=$(id -un)
GROUP=$(id -gn)
;;
*)
[ -z "$OWNER" ] && OWNER=root
[ -z "$GROUP" ] && GROUP=root
;;
esac
OWNERSHIP="-o $OWNER -g $GROUP" OWNERSHIP="-o $OWNER -g $GROUP"

View File

@ -113,8 +113,11 @@ MANDIR=${MANDIR:-"/usr/share/man"}
case $(uname) in case $(uname) in
CYGWIN*) CYGWIN*)
if [ -z "$PREFIX" ]; then
DEST= DEST=
INIT= INIT=
fi
OWNER=$(id -un) OWNER=$(id -un)
GROUP=$(id -gn) GROUP=$(id -gn)
CYGWIN=Yes CYGWIN=Yes

View File

@ -133,8 +133,11 @@ DEBIAN=
case $(uname) in case $(uname) in
CYGWIN*) CYGWIN*)
if [ -z "$PREFIX" ]; then
DEST= DEST=
INIT= INIT=
fi
OWNER=$(id -un) OWNER=$(id -un)
GROUP=$(id -gn) GROUP=$(id -gn)
;; ;;

View File

@ -113,8 +113,11 @@ MANDIR=${MANDIR:-"/usr/share/man"}
case $(uname) in case $(uname) in
CYGWIN*) CYGWIN*)
if [ -z "$PREFIX" ]; then
DEST= DEST=
INIT= INIT=
fi
OWNER=$(id -un) OWNER=$(id -un)
GROUP=$(id -gn) GROUP=$(id -gn)
CYGWIN=Yes CYGWIN=Yes