Check-in [4257f23d7c]
Overview
Comment:Updated to make updating the remote m4 files optional and not the default
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tls-1-7
Files: files | file ages | folders
SHA1: 4257f23d7cde8d73e6ccac6cb2a021a951825836
User & Date: rkeene on 2016-12-06 05:24:20
Other Links: branch diff | manifest | tags
Context
2016-12-06
15:08
Updated to verify all commands are available before starting autogen check-in: 301214a2d6 user: rkeene tags: tls-1-7
05:24
Updated to make updating the remote m4 files optional and not the default check-in: 4257f23d7c user: rkeene tags: tls-1-7
04:56
Fixed search for "xxd" to not check for a prefixed version check-in: 4aa7638d1a user: rkeene tags: tls-1-7
Changes

Modified autogen.sh from [7cd79754ca] to [7fa0cd3e8e].

1





2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20








21
22
23
24
25
26
27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

+
+
+
+
+



















+
+
+
+
+
+
+
+







#! /usr/bin/env bash

update='0'
if [ "$1" = '-update' ]; then
	update='1'
fi

urls=(
	http://chiselapp.com/user/rkeene/repository/autoconf/doc/trunk/tcl.m4
	http://chiselapp.com/user/rkeene/repository/autoconf/doc/trunk/shobj.m4
	http://chiselapp.com/user/rkeene/repository/autoconf/doc/trunk/versionscript.m4
)

localFiles=(
	aclocal/tcltls_openssl.m4
)

cd "$(dirname "$(which "$0")")" || exit 1

mkdir aclocal >/dev/null 2>/dev/null

files=()

for url in "${urls[@]}"; do
	file="aclocal/$(echo "${url}" | sed 's@^.*/@@')"

	if [ -f "${file}" ]; then
		if [ "${update}" = '0' ]; then
			files=("${files[@]}" "${file}")

			continue
		fi
	fi

	curl -lsS "${url}" > "${file}.new" || exit 1
	if diff "${file}.new" "${file}" >/dev/null 2>/dev/null; then
		rm -f "${file}.new"
	else
		mv "${file}.new" "${file}"
	fi