summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheckgit2
-rwxr-xr-xlbmk2
-rw-r--r--resources/git/revisions3
-rwxr-xr-xscript/build/boot/roms2
-rwxr-xr-xscript/build/boot/roms_helper2
-rwxr-xr-xscript/build/release/roms6
-rwxr-xr-xscript/build/release/src6
-rwxr-xr-xscript/handle/make/config8
-rwxr-xr-xscript/misc/versioncheck6
9 files changed, 19 insertions, 18 deletions
diff --git a/checkgit b/checkgit
index eb97dcae..06a5bd7a 100755
--- a/checkgit
+++ b/checkgit
@@ -4,7 +4,7 @@
. "include/err.sh"
-projectname="$(cat projectname)"
+read projectname < projectname
main()
{
diff --git a/lbmk b/lbmk
index 285e109f..0cd4c7a2 100755
--- a/lbmk
+++ b/lbmk
@@ -27,7 +27,7 @@ set -u -e
. "include/err.sh"
. "include/export.sh"
-projectname="$(cat projectname)"
+read projectname < projectname
buildpath=""
mode=""
option=""
diff --git a/resources/git/revisions b/resources/git/revisions
index a0b65597..df73647c 100644
--- a/resources/git/revisions
+++ b/resources/git/revisions
@@ -92,6 +92,7 @@
{rpi-pico-serprog}{
rev: c8c16e9c11fe9e5b7230ff358f79de3f1951e1d9
loc: util-fw/pico-serprog
- url: https://codeberg.org/Riku_V/pico-serprog/
+ url: https://codeberg.org/libreboot/pico-serprog
+ bkup_url: https://notabug.org/libreboot/pico-serprog
depend: rpi-pico-sdk
}
diff --git a/script/build/boot/roms b/script/build/boot/roms
index a19d9445..50b1f460 100755
--- a/script/build/boot/roms
+++ b/script/build/boot/roms
@@ -31,7 +31,7 @@ set -u -e
. "include/err.sh"
-projectname="$(cat projectname)"
+read projectname < projectname
opts=""
boards=
firstoption=""
diff --git a/script/build/boot/roms_helper b/script/build/boot/roms_helper
index 93574d9e..b663dc8e 100755
--- a/script/build/boot/roms_helper
+++ b/script/build/boot/roms_helper
@@ -28,7 +28,7 @@ set -u -e
. "include/err.sh"
-projectname="$(cat projectname)"
+read projectname < projectname
cfgsdir="resources/coreboot"
diff --git a/script/build/release/roms b/script/build/release/roms
index c86fc79f..1d6bcb76 100755
--- a/script/build/release/roms
+++ b/script/build/release/roms
@@ -23,7 +23,7 @@ set -u -e
. "include/err.sh"
-projectname="$(cat projectname)"
+read projectname < projectname
version="version-unknown"
versiondate="version-date-unknown"
tree="default"
@@ -53,9 +53,9 @@ main()
init_check()
{
[ -f version ] && \
- version="$(cat version)"
+ read version < version
[ -f versiondate ] && \
- versiondate="$(cat versiondate)"
+ read versiondate < versiondate
[ ! -d "bin/" ] && \
err "init_check: no ROMs built yet (error)"
[ -d "release/" ] || \
diff --git a/script/build/release/src b/script/build/release/src
index b2d3b535..0a0501a3 100755
--- a/script/build/release/src
+++ b/script/build/release/src
@@ -23,7 +23,7 @@ set -u -e
. "include/err.sh"
-projectname="$(cat projectname)"
+read projectname < projectname
trees_fetch_list="coreboot u-boot seabios"
simple_fetch_list="flashrom grub memtest86plus me_cleaner uefitool"
@@ -46,9 +46,9 @@ printf "Building source code archive, version %s\n" "${version}"
main()
{
[ -f version ] && \
- version="$(cat version)"
+ read version < version
[ -f versiondate ] && \
- versiondate="$(cat versiondate)"
+ read versiondate < versiondate
create_release_directory
download_modules
diff --git a/script/handle/make/config b/script/handle/make/config
index c148ebca..3db91550 100755
--- a/script/handle/make/config
+++ b/script/handle/make/config
@@ -26,8 +26,8 @@ set -u -e
. "include/err.sh"
-projectname="$(cat projectname)"
-our_version="$(cat version)"
+read projectname < projectname
+read our_version < version
export LOCALVERSION="-${projectname}-${our_version}"
@@ -270,11 +270,11 @@ copy_elf()
err "copy_elf: cannot prepare coreboot image"
fi
- for f in $(cat "${listfile}"); do
+ while read f; do
[ ! -f "${codedir}/$f" ] || \
cp "${codedir}/${f}" "${dest_dir}/" || \
fail "copy_elf: cannot copy elf file"
- done
+ done < ${listfile}
./handle make file -c "${codedir}" || \
fail "copy_elf: clean: ${codedir} (${project}/${target})"
diff --git a/script/misc/versioncheck b/script/misc/versioncheck
index 73fbb140..6ee683ee 100755
--- a/script/misc/versioncheck
+++ b/script/misc/versioncheck
@@ -21,10 +21,10 @@ set -u
. "include/err.sh"
-project="$(cat projectname)"
+read project < projectname
version="version-unknown"
-[ -f version ] && version="$(cat version)"
+[ -f version ] && read version < version
version_="${version}"
if [ -e ".git" ]; then
version="$(git describe --tags HEAD 2>&1)" || \
@@ -34,7 +34,7 @@ if [ -e ".git" ]; then
fi
versiondate="version-date-unknown"
-[ -f versiondate ] && versiondate="$(cat versiondate)"
+[ -f versiondate ] && read versiondate < versiondate
versiondate_="${versiondate}"
if [ -e ".git" ]; then
versiondate="$(git show --no-patch --no-notes --pretty='%ct' HEAD)" || \