chiark
/
gitweb
/
~ian
/
topgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4f4b139
)
tg update: Do not use ${:n:m} substitution (bash extension)
author
Petr Baudis
<pasky@suse.cz>
Mon, 11 Aug 2008 17:31:01 +0000
(19:31 +0200)
committer
Petr Baudis
<pasky@suse.cz>
Mon, 11 Aug 2008 17:31:01 +0000
(19:31 +0200)
tg-update.sh
patch
|
blob
|
history
diff --git
a/tg-update.sh
b/tg-update.sh
index 563a62d8fbb293b4140fdd17067caf552d215e9c..27a8e81086f7eb71ba4c4c4d0e19aeabd6842a09 100644
(file)
--- a/
tg-update.sh
+++ b/
tg-update.sh
@@
-39,8
+39,8
@@
if [ -s "$depcheck" ]; then
sed 's/^\([^+]\)/-\1/' | # now each line is +branch or -branch (+ == recurse)
uniq -s 1 | # fold branch lines; + always comes before - and thus wins within uniq
while read depline; do
sed 's/^\([^+]\)/-\1/' | # now each line is +branch or -branch (+ == recurse)
uniq -s 1 | # fold branch lines; + always comes before - and thus wins within uniq
while read depline; do
- action="$
{depline:0:1}
"
- dep="$
{depline:1}
"
+ action="$
(echo "$depline" | cut -c 1)
"
+ dep="$
(echo "$depline" | cut -c 2-)
"
# We do not distinguish between dependencies out-of-date
# and base out-of-date cases for $dep here, but thanks
# We do not distinguish between dependencies out-of-date
# and base out-of-date cases for $dep here, but thanks