diff options
author | Brandon Low <lostlogic@gentoo.org> | 2002-06-26 06:32:26 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2002-06-26 06:32:26 +0000 |
commit | 7f25c2283dac1ec0216446d8f4b03056f6e41bf2 (patch) | |
tree | 9b19cd480acedb9dedc8e94f77cc49ddc7cb191a /app-admin | |
parent | minor typo introduced during last minute touchup, fixed. (diff) | |
download | gentoo-2-7f25c2283dac1ec0216446d8f4b03056f6e41bf2.tar.gz gentoo-2-7f25c2283dac1ec0216446d8f4b03056f6e41bf2.tar.bz2 gentoo-2-7f25c2283dac1ec0216446d8f4b03056f6e41bf2.zip |
more
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/gentoolkit/files/etc-update/etc-update | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app-admin/gentoolkit/files/etc-update/etc-update b/app-admin/gentoolkit/files/etc-update/etc-update index 2d863aee4434..06b39bae7a90 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.5 2002/06/26 05:05:33 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.6 2002/06/26 06:32:26 lostlogic Exp $ function get_config() { item=$1 @@ -37,7 +37,7 @@ function scan() { rfile=`echo "${file}" | sed -e "s:^.*/::"` if [[ "${ofile:10}" != "${rfile:10}" ]] || [[ ${opath} != ${rpath} ]]; then if [[ -z `diff -Nu ${rpath}/${rfile} ${rpath}/${rfile:10}| - grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.5 2002/06/26 05:05:33 lostlogic Exp $'` ]]; then + grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.6 2002/06/26 06:32:26 lostlogic Exp $'` ]]; then mv ${rpath}/${rfile} ${rpath}/${rfile:10} continue else @@ -50,7 +50,7 @@ function scan() { fi fi if [[ -z `diff -Nu ${rpath}/${rfile} ${rpath}/${ofile}| - grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.5 2002/06/26 05:05:33 lostlogic Exp $'` ]]; then + grep "^[+-][^+-]"|grep -v '# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/files/etc-update/etc-update,v 1.6 2002/06/26 06:32:26 lostlogic Exp $'` ]]; then mv ${rpath}/${rfile} ${rpath}/${ofile} continue else @@ -85,7 +85,7 @@ function do_file() { local -i fcount until (( `cat ${TMP}/files/${input}|wc -l` < 2 )); do my_input=0 - (( `cat ${TMP}/files/${input}|wc -l` == 2 )) && my_input=1 && fcount=2 + (( `cat ${TMP}/files/${input}|wc -l` == 2 )) && my_input=1 until (( ${my_input} > 0 )) && \ (( ${my_input} < `cat ${TMP}/files/${input}|wc -l` )); do fcount=0 @@ -104,6 +104,8 @@ function do_file() { done [ ${my_input} == -1 ] && break + fcount=${my_input}+1 + file=`cat ${TMP}/files/${input} | sed -e "${fcount}p;d"` ofile=`head -n1 ${TMP}/files/${input}` |