projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64247b2
)
etc-update: eliminate duplicate example configs
author
Zac Medico
<zmedico@gentoo.org>
Tue, 14 Dec 2010 04:29:10 +0000
(20:29 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 14 Dec 2010 14:28:31 +0000
(06:28 -0800)
bin/etc-update
patch
|
blob
|
history
diff --git
a/bin/etc-update
b/bin/etc-update
index d3b988ab6608e9cfc7612307a8a62d971dd726a6..e64ef493bfc8be0356684c0202919a86b41b2930 100755
(executable)
--- a/
bin/etc-update
+++ b/
bin/etc-update
@@
-466,7
+466,11
@@
do_distconf() {
suffix+="${count}"
efile="${ofile}${suffix}"
if [[ ! -f ${efile} ]]; then
- mv ${mv_opts} ${file} ${efile}
+ mv ${mv_opts} "${file}" "${efile}"
+ break
+ elif diff_command "${file}" "${efile}" &> /dev/null; then
+ # replace identical copy
+ mv "${file}" "${efile}"
break
fi
done