diff options
author | Zach van Rijn <me@zv.io> | 2025-02-24 00:03:11 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2025-02-24 00:03:47 -0600 |
commit | 71cdb1eb44f11df850d13abe4c27f4dd834df498 (patch) | |
tree | ab98214ec36fc9d0b4f9ca3c51da397552b41c0f | |
parent | c3845f6faca3eef2f9b1b59cd464033f13a4868e (diff) | |
download | bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.tar.gz bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.tar.bz2 bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.tar.xz bootstrap-71cdb1eb44f11df850d13abe4c27f4dd834df498.zip |
bootstrap: sub 'glue' directory. fixes #31.
-rwxr-xr-x | bootstrap | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -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 \ . \ |