projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99ec8de
)
etc-update: replace 'seq' with pure bash
v2.2.0_alpha8
author
Zac Medico
<zmedico@gentoo.org>
Mon, 13 Dec 2010 06:22:53 +0000
(22:22 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 13 Dec 2010 06:22:53 +0000
(22:22 -0800)
bin/etc-update
patch
|
blob
|
history
diff --git
a/bin/etc-update
b/bin/etc-update
index d4ed6e68963ce01851f268c89197fcb36f0a41dd..3e7bd4f724073f3fc550eb25f85b3ac77a8d7399 100755
(executable)
--- a/
bin/etc-update
+++ b/
bin/etc-update
@@
-460,11
+460,13
@@
do_distconf() {
local suffix
local efile
- for count in $(seq 0 9999); do
+ count=0
+ while true ; do
size=${#count}
-
let
fill=$((4-$size))
+ fill=$((4-$size))
suffix=".dist_"
- for f in $(seq 1 $fill); do
+ while [ $fill -gt 0 ] ; do
+ ((fill--))
suffix+="0"
done
suffix+="${count}"
@@
-474,6
+476,7
@@
do_distconf() {
mv ${mv_opts} ${file} ${efile}
break
fi
+ ((count++))
done
}