summaryrefslogtreecommitdiffstats
path: root/scripts/update-m4.sh
blob: d420c6c0391bf7af9951235b07fac43d25d01dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -eu

sv_ax_m4_pfx='https://git.savannah.gnu.org/cgit/autoconf-archive.git/plain/m4'
sv_gl_m4_pfx='https://git.savannah.gnu.org/cgit/gnulib.git/tree/m4'

for path in "$(dirname "${0}")/../m4/"*; do
	file="${path##*/}"
	case "${file}" in
		ax_*.m4)
			wget -O "${path}" "${sv_ax_m4_pfx}/${file}"
			;;
		gl_*.m4)
			wget -O "${path}" "${sv_gl_m4_pfx}/${file}"
			;;
	esac
done