diff options
-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 \ . \ |