aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xbin/fowners19
-rwxr-xr-xbin/fperms21
3 files changed, 31 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 90919ad..96a22b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,15 @@
# ChangeLog for Portage; the Gentoo Linux ports system
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Id: ChangeLog,v 1.967 2005/05/04 13:27:57 jstubbs Exp $
+# $Id: ChangeLog,v 1.968 2005/05/04 22:49:13 vapier Exp $
MAJOR CHANGES in 2.0.51:
1. /var/cache/edb/virtuals is no longer used at all. It's calculated now.
2. /var/cache/edb/world is now /var/lib/portage/world.
3. /etc/portage/profile/virtuals is _USER_ configs only.
+ 04 May 2005; Mike Frysinger <vapier@gentoo.org> bin/fowners bin/fperms:
+ Add recursive (-R) support to fowners/fperms.
+
04 May 2005; Jason Stubbs <jstubbs@gentoo.org> bin/test_target_graph.py:
Just a script to help test and show the usage of TargetGraph.
diff --git a/bin/fowners b/bin/fowners
index d4f8ce3..1d20940 100755
--- a/bin/fowners
+++ b/bin/fowners
@@ -1,15 +1,22 @@
#!/bin/bash
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/fowners,v 1.6 2004/10/04 13:56:50 vapier Exp $
+# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/fowners,v 1.7 2005/05/04 22:49:14 vapier Exp $
-if [ ${#} -lt 2 ] ; then
- echo "${0}: at least two arguments needed"
+if [ $# -lt 2 ] ; then
+ echo "${0}: at least two arguments needed" 1>&2
exit 1
fi
+OPTS=""
+while [ "${1:0:1}" = "-" ] ; do
+ OPTS="${OPTS} $1"
+ shift
+done
+
OWNER="${1}"
shift
-for FILE in $*; do
- chown "${OWNER}" "${D}${FILE}"
+
+for FILE in "$@" ; do
+ chown ${OPTS} "${OWNER}" "${D}${FILE}"
done
diff --git a/bin/fperms b/bin/fperms
index abde921..131f6a0 100755
--- a/bin/fperms
+++ b/bin/fperms
@@ -1,15 +1,22 @@
#!/bin/bash
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/fperms,v 1.6 2004/10/04 13:56:50 vapier Exp $
+# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/fperms,v 1.7 2005/05/04 22:49:14 vapier Exp $
-if [ ${#} -lt 2 ] ; then
- echo "${0}: at least two arguments needed"
+if [ $# -lt 2 ] ; then
+ echo "${0}: at least two arguments needed" 1>&2
exit 1
fi
-PERM="${1}"
+OPTS=""
+while [ "${1:0:1}" = "-" ] ; do
+ OPTS="${OPTS} $1"
+ shift
+done
+
+PERM=$1
shift
-for FILE in $*; do
- chmod "${PERM}" "${D}${FILE}"
+
+for FILE in "$@" ; do
+ chmod ${OPTS} "${PERM}" "${D}${FILE}"
done