Check-in [019ff6c17d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make sure when overwriting files we have permission to do so
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 019ff6c17d1b90d6fa0dcea8c89626d03d6ff87e
User & Date: rkeene 2019-05-09 23:10:42
Context
2019-05-10
17:08
A bit more work to ensure that some flags are preserved until the right stage check-in: 033a6f4cd4 user: rkeene tags: trunk
2019-05-09
23:10
Make sure when overwriting files we have permission to do so check-in: 019ff6c17d user: rkeene tags: trunk
23:10
Updated patch for NetBSD compiler, from NixOS project check-in: ef57276d7c user: rkeene tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to scripts/common.

116
117
118
119
120
121
122

123
124
125
126
127
128
129

function fix_pkgconfig_file () {
	local file

	file="$1"

	sed 's@^prefix=.*@prefix=/usr@;s@\$(libdir)@${libdir}@g' "${file}" > "${file}.new"

	cat "${file}.new" > "${file}"
	rm -f "${file}.new"

	return 0
}

# Expects:







>







116
117
118
119
120
121
122
123
124
125
126
127
128
129
130

function fix_pkgconfig_file () {
	local file

	file="$1"

	sed 's@^prefix=.*@prefix=/usr@;s@\$(libdir)@${libdir}@g' "${file}" > "${file}.new"
	chmod u+w "${file}"
	cat "${file}.new" > "${file}"
	rm -f "${file}.new"

	return 0
}

# Expects: