File: refresh.sh

package info (click to toggle)
ivtools 2.0.11d.a1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,604 kB
  • sloc: cpp: 175,124; ansic: 12,740; perl: 2,164; makefile: 836; sh: 334
file content (17 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -f

# This tiny script scans ../aclocal.m4 (which should be generated by
# autoreconf --install) and pulls in the master copies of macro files
# consulted. These files can be cached in ../m4/ for use on target
# that have only the basic macros.

# To use, remove any currently-cached versions, regenerate aclocal.m4,
# and run ./refresh.sh

set -e

for u in $(grep 'http.*ax' ../aclocal.m4 | tr -d '#'); do
    f=$(echo "${u}" | sed 's!https://www.gnu.org/software/autoconf-archive/!!' | sed 's!\.html!!')
    wget2 --output-document="${f}.m4" \
	  "http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/${f}.m4"
done