Compare commits

...

2 Commits

Author SHA1 Message Date
xfnw 807ac85100 Merge branch 'main' of tilde.team:ph/git/dotfiles 2021-05-02 13:12:07 -04:00
xfnw 6bf5d7d503 script to copy shared libraries to your chroot 2021-05-02 13:11:56 -04:00
1 changed files with 10 additions and 0 deletions

10
bin/ldcp Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
mkcp(){
mkdir -p ".$(dirname $1)"
cp "$1" ".$1"
}
export -f mkcp
ldd $(which $1) | awk '{if ($3!="") print $3; else print $1}' | grep '^/' | xargs -I% bash -c 'mkcp %'