mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-22 06:02:04 +02:00
Why am I so messy
This commit is contained in:
parent
97690182a8
commit
6600bcc0ce
2 changed files with 0 additions and 37 deletions
|
@ -1,36 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# Author : Hemanth.HM
|
|
||||||
# Email : hemanth[dot]hm[at]gmail[dot]com
|
|
||||||
# License : GNU GPLv3
|
|
||||||
#
|
|
||||||
|
|
||||||
function useage()
|
|
||||||
{
|
|
||||||
cat << EOU
|
|
||||||
Useage: bash $0 <path to the binary> <path to copy the dependencies>
|
|
||||||
EOU
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
#Validate the inputs
|
|
||||||
[[ $# < 2 ]] && useage
|
|
||||||
|
|
||||||
#Check if the paths are vaild
|
|
||||||
[[ ! -e $1 ]] && echo "Not a vaild input $1" && exit 1
|
|
||||||
[[ -d $2 ]] || echo "No such directory $2 creating..."&& mkdir -p "$2"
|
|
||||||
|
|
||||||
#Get the library dependencies
|
|
||||||
echo "Collecting the shared library dependencies for $1..."
|
|
||||||
deps=$(ldd $1 | awk 'BEGIN{ORS=" "}$1\
|
|
||||||
~/^\//{print $1}$3~/^\//{print $3}'\
|
|
||||||
| sed 's/,$/\n/')
|
|
||||||
echo "Copying the dependencies to $2"
|
|
||||||
|
|
||||||
#Copy the deps
|
|
||||||
for dep in $deps
|
|
||||||
do
|
|
||||||
echo "Copying $dep to $2"
|
|
||||||
cp "$dep" "$2"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Done!"
|
|
|
@ -35,7 +35,6 @@ do
|
||||||
cp "$dep" "$INSTALLDIR"
|
cp "$dep" "$INSTALLDIR"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo $PWD
|
|
||||||
cp ${MESON_INSTALL_PREFIX}/share/mkxp-z/* ${MESON_INSTALL_PREFIX}
|
cp ${MESON_INSTALL_PREFIX}/share/mkxp-z/* ${MESON_INSTALL_PREFIX}
|
||||||
rm -rf ${MESON_INSTALL_PREFIX}/share
|
rm -rf ${MESON_INSTALL_PREFIX}/share
|
||||||
$2 ${MESON_INSTALL_PREFIX}
|
$2 ${MESON_INSTALL_PREFIX}
|
||||||
|
|
Loading…
Add table
Reference in a new issue