#!/bin/sh
exe="testProject" #需要发布的程序名称
pwd="." #创建文件夹的位置
files=$(ldd $exe | awk '{if (match($3,"/")){ printf("%s "),$3 } }')
cp $files $pwd
#!/bin/sh
exe="testProject" #需要发布的程序名称
pwd="." #创建文件夹的位置
files=$(ldd $exe | awk '{if (match($3,"/")){ printf("%s "),$3 } }')
cp $files $pwd