summaryrefslogtreecommitdiffstats
path: root/shell-term-fm
diff options
context:
space:
mode:
authorPavel Vinogradov2019-02-17 19:48:00 -0500
committerPavel Vinogradov2019-02-17 19:48:00 -0500
commita88d47e719c8aa0e77ae6c2ed26c372f10fd1e7b (patch)
tree2446471f96575718748ae87313a1bd51c2127e5a /shell-term-fm
parent65255495a1ec08ac5ee60a87ea6989256311f7f3 (diff)
shell-term-fm/bash: reorganized for loop in DETAILS
Diffstat (limited to 'shell-term-fm')
-rwxr-xr-xshell-term-fm/bash/DETAILS18
-rw-r--r--shell-term-fm/bash/HISTORY3
2 files changed, 10 insertions, 11 deletions
diff --git a/shell-term-fm/bash/DETAILS b/shell-term-fm/bash/DETAILS
index f453c55783..f183ba4b61 100755
--- a/shell-term-fm/bash/DETAILS
+++ b/shell-term-fm/bash/DETAILS
@@ -17,17 +17,13 @@ SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$XVERSION"
SOURCE2_IGNORE=signature
SOURCE4_IGNORE=signature
PATCHES_URL="${GNU_URL}/${SPELL}/${SPELL}-${XVERSION}-patches"
-declare -i index=5
-declare -i sigindex=index+1
-for i in $(seq -f "%03g" $BASH_PATCHLEVEL); do
- eval "SOURCE${index}=\${SPELL}\${XVERSION//./}-\${i}
- SOURCE${index}_URL[0]=\${PATCHES_URL}/\${SOURCE${index}}
- SOURCE${sigindex}=\${SOURCE${index}}.sig
- SOURCE${sigindex}_URL[0]=\${SOURCE${index}_URL[0]}.sig
- SOURCE${index}_GPG=gnu.gpg:\${SOURCE${sigindex}}:UPSTREAM_KEY
- SOURCE${sigindex}_IGNORE=signature"
- ((index+=2))
- ((sigindex+=2))
+for ((i=5; i<=2*BASH_PATCHLEVEL + 3; i+=2)); do
+ eval "SOURCE${i}=\${SPELL}\${XVERSION//./}-\$(printf \"%03d\" \$(((i-3)/2)))
+ SOURCE${i}_URL[0]=\${PATCHES_URL}/\${SOURCE${i}}
+ SOURCE$((i+1))=\${SOURCE${i}}.sig
+ SOURCE$((i+1))_URL[0]=\${SOURCE${i}_URL[0]}.sig
+ SOURCE${i}_GPG=gnu.gpg:\${SOURCE$((i+1))}:UPSTREAM_KEY
+ SOURCE$((i+1))_IGNORE=signature"
done
WEB_SITE=http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
ENTERED=20010922
diff --git a/shell-term-fm/bash/HISTORY b/shell-term-fm/bash/HISTORY
index 984833c617..2a55086b49 100644
--- a/shell-term-fm/bash/HISTORY
+++ b/shell-term-fm/bash/HISTORY
@@ -1,3 +1,6 @@
+2019-02-17 Pavel Vinogradov <public@sourcemage.org>
+ * DETAILS: tydying up for loop, made it similar to PRE_BUILD one
+
2019-01-25 Pavel Vinogradov <public@sourcemage.org>
* DETAILS: version 5.0.2