diff options
author | Brandon Low <lostlogic@gentoo.org> | 2002-06-26 23:07:51 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2002-06-26 23:07:51 +0000 |
commit | 9a68d3cc8885910bc7e78e3916b3c3bb9acd7ff5 (patch) | |
tree | 327a88dbfd6a1fb7af0267fdbd865fd643944ef2 /app-admin | |
parent | small fixes (diff) | |
download | gentoo-2-9a68d3cc8885910bc7e78e3916b3c3bb9acd7ff5.tar.gz gentoo-2-9a68d3cc8885910bc7e78e3916b3c3bb9acd7ff5.tar.bz2 gentoo-2-9a68d3cc8885910bc7e78e3916b3c3bb9acd7ff5.zip |
just adding CONFIG_PROTEC_MASK awareness cuz trance wanted it
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/gentoolkit/files/etc-update/etc-update | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/app-admin/gentoolkit/files/etc-update/etc-update b/app-admin/gentoolkit/files/etc-update/etc-update index dfc3c8f1e0ae..c35596fe66f3 100644 --- a/app-admin/gentoolkit/files/etc-update/etc-update +++ b/app-admin/gentoolkit/files/etc-update/etc-update @@ -8,7 +8,7 @@ # Leo Lipelis <aeoo@gentoo.org> # Karl Trygve Kalleberg <karltk@gentoo.org> # -# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.7 2002/06/26 16:56:13 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.8 2002/06/26 23:07:51 lostlogic Exp $ function get_config() { item=$1 @@ -35,9 +35,16 @@ function scan() { sort -t'%' -k3 -k2 | cut -f1 -d'%'`; do rpath=`echo "${file}" | sed -e "s:/[^/]*$::"` rfile=`echo "${file}" | sed -e "s:^.*/::"` + for mpath in ${CONFIG_PROTECT_MASK}; do + if [[ "${rpath}" == "${mpath}" ]]; then + mv ${rpath}/${rfile} ${rpath}/${rfile:10} + break + fi + done + [ ! -f ${file} ] && continue if [[ "${ofile:10}" != "${rfile:10}" ]] || [[ ${opath} != ${rpath} ]]; then if [[ -z `diff -Nua ${rpath}/${rfile} ${rpath}/${rfile:10}| - grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.7 2002/06/26 16:56:13 lostlogic Exp $'` ]]; then + grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.8 2002/06/26 23:07:51 lostlogic Exp $'` ]]; then mv ${rpath}/${rfile} ${rpath}/${rfile:10} continue else @@ -50,7 +57,7 @@ function scan() { fi fi if [[ -z `diff -Nua ${rpath}/${rfile} ${rpath}/${ofile}| - grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.7 2002/06/26 16:56:13 lostlogic Exp $'` ]]; then + grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.8 2002/06/26 23:07:51 lostlogic Exp $'` ]]; then mv ${rpath}/${rfile} ${rpath}/${ofile} continue else |