projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff2c2ee
)
ignore backup files when scanning for ._cfg????_*; bug 121401
author
Simon Stelling
<blubb@gentoo.org>
Thu, 13 Apr 2006 16:49:24 +0000
(16:49 -0000)
committer
Simon Stelling
<blubb@gentoo.org>
Thu, 13 Apr 2006 16:49:24 +0000
(16:49 -0000)
svn path=/main/trunk/; revision=3139
bin/etc-update
patch
|
blob
|
history
diff --git
a/bin/etc-update
b/bin/etc-update
index 885d513a7a13785bec5bad60fcb9b3be3e65c6e3..07d0f643881149ffbd983a79ca027005662e63d6 100755
(executable)
--- a/
bin/etc-update
+++ b/
bin/etc-update
@@
-44,7
+44,7
@@
function scan() {
[ ! -d ${path} ] && continue
ofile=""
- for file in `find ${path}/ -iname
"._cfg????_*"
|
+ for file in `find ${path}/ -iname
'._cfg????_*' ! -name '.*~' ! -name '.*.bak'
|
sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" |
sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'`; do
rpath=`echo "${file/\/\///}" | sed -e "s:/[^/]*$::"`