summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-01 15:17:11 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-01 15:17:11 (EDT)
commitbd277c882600a192804f91213fcf4e2b11885b6c (patch)
treeecc59ae56f941fddc86dad05531cec0722dafb58
parentab10e8cb3012e3ff1100b642b235c7ad3642462e (diff)
downloadmarquee-bd277c882600a192804f91213fcf4e2b11885b6c.zip
marquee-bd277c882600a192804f91213fcf4e2b11885b6c.tar.gz
marquee-bd277c882600a192804f91213fcf4e2b11885b6c.tar.bz2
scripts/update-m4.sh: Make more extensible
-rwxr-xr-xscripts/update-m4.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/update-m4.sh b/scripts/update-m4.sh
index 9b6e99b..55a46ee 100755
--- a/scripts/update-m4.sh
+++ b/scripts/update-m4.sh
@@ -4,6 +4,11 @@ set -eu
sv_ax_m4_pfx='https://git.savannah.gnu.org/cgit/autoconf-archive.git/plain/m4'
-for file in "$(dirname "${0}")/../m4/ax_"*; do
- wget -O "${file}" "${sv_ax_m4_pfx}/${file#*/}"
+for path in "$(dirname "${0}")/../m4/"*; do
+ file="${path##*/}"
+ case "${file}" in
+ ax_*.m4)
+ wget -O "${path}" "${sv_ax_m4_pfx}/${file}"
+ ;;
+ esac
done