summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2025-02-24 00:03:11 -0600
committerZach van Rijn <me@zv.io>2025-02-24 00:03:47 -0600
commit71cdb1eb44f11df850d13abe4c27f4dd834df498 (patch)
treeab98214ec36fc9d0b4f9ca3c51da397552b41c0f
parentc3845f6faca3eef2f9b1b59cd464033f13a4868e (diff)
downloadbootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.tar.gz
bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.tar.bz2
bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.tar.xz
bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.zip
bootstrap: sub 'glue' directory. fixes #31.
-rwxr-xr-xbootstrap19
1 files changed, 7 insertions, 12 deletions
diff --git a/bootstrap b/bootstrap
index d2344f2..3c3e38b 100755
--- a/bootstrap
+++ b/bootstrap
@@ -5,7 +5,7 @@
# Purpose : Bootstraps Adélie from source for any architecture.
# Authors : Zach van Rijn <me@zv.io>
# License : MIT
-# Revision : 20250223
+# Revision : 20250224
#===============================================================
#===============================================================
@@ -788,19 +788,14 @@ if ! test -f rootfs-${TARGET}-patched.tgz; then
# appears to be sufficient for all other binaries and files.
# Please refer to #26 for more information.
#
- x="${BASE}"/mcmtools-${TARGET}/sys;
- grep -rl "${x}" ${t} | while read k; do
- ./binsub ${k} "${x}" $(printf "%${#x}s" | tr ' ' '/');
+ for d in glue sys; do
+ a="${BASE}"/mcmtools-${TARGET}/${d};
+ b=$(printf "%${#a}s" | tr ' ' '/');
+ grep -rl "${a}" ${t} | while read k; do
+ ./binsub "${k}" "${a}" "${b}";
+ done
done
- ##
- # Create a compatibility symlink so that any tools excepted
- # above can still find the file(s) they need.
- #
- mkdir -p "${t}/${x%/*}";
- ln -s / "${t}/${x}"; # compat symlink for exceptions
-
-
tar -C "${t}" \
-pczf rootfs-${TARGET}-patched.tgz \
. \