1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 03:27:10 +01:00
build/util/misc.sh
David Oberhollenzer 525b36aa89 Cleanup deploy/devdeploy split
- Don't duplicate shared objects, use the ones from the deploy
   directory when building dependend packages
 - Add helper function for moving headers, static libraries
   and pkgconfig data to devdeploy directory

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-02-10 19:59:51 +01:00

29 lines
424 B
Bash

apply_patches() {
local PATCH
for PATCH in $SCRIPTDIR/$PKGDIR/$PKGNAME/*.patch; do
patch -p1 < $PATCH
done
}
split_dev_deploy() {
local lib f
if [ -d "$1/include" ]; then
mv "$1/include" "$2"
fi
if [ -d "$1/lib/pkgconfig" ]; then
mkdir -p "$2/lib"
mv "$1/lib/pkgconfig" "$2/lib"
fi
for f in ${1}/lib/*.a; do
if [ -f "$f" ]; then
mkdir -p "$2/lib"
mv ${1}/lib/*.a "$2/lib"
fi
break
done
}