libk  Check-in [34059b4bf6]

Overview
Comment:replace `.` with `source` in shell scripts for compatibility; change `sh` shebangs to use bash instead
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 34059b4bf6223b386ae36e2f6a4f19c313bcaa16d2f775108477d15df88f5ff4
User & Date: lexi on 2019-08-21 23:35:09
Other Links: manifest | tags
Context
2019-08-22
00:03
insert explicit cast to hopefully silence compiler warnings on some systems check-in: 7c202a8b17 user: lexi tags: trunk
2019-08-21
23:35
replace `.` with `source` in shell scripts for compatibility; change `sh` shebangs to use bash instead check-in: 34059b4bf6 user: lexi tags: trunk
06:43
create dist folder for OS-specific supporting build files check-in: 49b6e9c7f6 user: lexi tags: trunk
Changes

Modified build.sh from [9bf8bf8013] to [e2a59a38b7].

1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
export to=${to:-out}
. global/common.sh

if test "$os$arch$bits" = ""; then
	say "set the following environment variables to the appropriate atoms describing your system. for help determining the appropriate atoms, see libk.md"
	say ' - $os={lin|fbsd|hai|osx…}'
	say ' - $arch={x86|arm|ia64|mips…}'
	say ' - $bits={|32|64…}'
	exit 1


|







1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
export to=${to:-out}
source global/common.sh

if test "$os$arch$bits" = ""; then
	say "set the following environment variables to the appropriate atoms describing your system. for help determining the appropriate atoms, see libk.md"
	say ' - $os={lin|fbsd|hai|osx…}'
	say ' - $arch={x86|arm|ia64|mips…}'
	say ' - $bits={|32|64…}'
	exit 1

Modified clean.sh from [da20a1a7ee] to [92c5183668].

1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
to=${to:-out}
gen=${gen:-gen}
. global/common.sh

say "cleaning libk build artifacts"

report rm -r $to
report rm -r $gen



|





1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
to=${to:-out}
gen=${gen:-gen}
source global/common.sh

say "cleaning libk build artifacts"

report rm -r $to
report rm -r $gen

Modified global/build-id.sh from [a95857b352] to [45c1076b3a].

1
2
3
4
5
6
7
8
9
#!/usr/bin/env sh
. global/common.sh

origin=1566169297
now=$(date +%s)
delta=$(expr $now - $origin)


if test "$id_mode" = "private"; then
|
|







1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
source global/common.sh

origin=1566169297
now=$(date +%s)
delta=$(expr $now - $origin)


if test "$id_mode" = "private"; then

Modified global/build-manpage.sh from [ea0b6d880a] to [d03c3443d7].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh
(test -d global && test -f build.sh) || {
	echo >&2 "($0) run $me from root of libk source directory"
	exit 1
}

. global/common.sh
reqpack cmark "generate documentation"
check gen "a directory for generated build dependencies"

file="$1"
filename="$(basename "$file")"
stem=${filename%%.md}

|





|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
(test -d global && test -f build.sh) || {
	echo >&2 "($0) run $me from root of libk source directory"
	exit 1
}

source global/common.sh
reqpack cmark "generate documentation"
check gen "a directory for generated build dependencies"

file="$1"
filename="$(basename "$file")"
stem=${filename%%.md}

Modified install.sh from [3dc81017e7] to [b7dc8d033f].

1
2
3
4
#!/usr/bin/env bash
. global/common.sh

say "this component of the build system does not yet exist"

|


1
2
3
4
#!/usr/bin/env bash
source global/common.sh

say "this component of the build system does not yet exist"