mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
Remove "-dev" prefix for development files
Instead of adding a prefix, move development files to a different deploy directory. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
93ade05725
commit
2147fbb3b2
4 changed files with 9 additions and 7 deletions
3
mk.sh
3
mk.sh
|
@ -19,12 +19,13 @@ TCDIR="$BUILDROOT/$BOARD/toolchain"
|
|||
PKGBUILDDIR="$BUILDROOT/$BOARD/build"
|
||||
PKGSRCDIR="$BUILDROOT/src"
|
||||
PKGDEPLOYDIR="$BUILDROOT/$BOARD/deploy"
|
||||
PKGDEVDEPLOYDIR="$BUILDROOT/$BOARD/deploy-dev"
|
||||
PKGLOGDIR="$BUILDROOT/$BOARD/log"
|
||||
PKGDOWNLOADDIR="$BUILDROOT/download"
|
||||
PACKAGELIST="$BUILDROOT/$BOARD/pkglist"
|
||||
|
||||
mkdir -p "$PKGDOWNLOADDIR" "$PKGSRCDIR" "$PKGLOGDIR"
|
||||
mkdir -p "$PKGDEPLOYDIR" "$TCDIR/bin"
|
||||
mkdir -p "$PKGDEPLOYDIR" "$PKGDEVDEPLOYDIR" "$TCDIR/bin"
|
||||
|
||||
export PATH="$TCDIR/bin:$PATH"
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ deploy() {
|
|||
|
||||
for f in $(ls ${TCDIR}/${TARGET}/include); do
|
||||
for dep in $DEPENDS; do
|
||||
if [ -e ${PKGDEPLOYDIR}/${dep}-dev/include/$f ]; then
|
||||
if [ -e ${PKGDEVDEPLOYDIR}/${dep}/include/$f ]; then
|
||||
rm -rf "$TCDIR/$TARGET/include/$f"
|
||||
fi
|
||||
done
|
||||
|
@ -36,7 +36,7 @@ deploy() {
|
|||
|
||||
for f in $(ls ${TCDIR}/${TARGET}/lib); do
|
||||
for dep in $DEPENDS; do
|
||||
if [ -e ${PKGDEPLOYDIR}/${dep}-dev/lib/$f ]; then
|
||||
if [ -e ${PKGDEVDEPLOYDIR}/${dep}/lib/$f ]; then
|
||||
rm -rf "$TCDIR/$TARGET/lib/$f"
|
||||
continue
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
run_pkg_command() {
|
||||
local FUNCTION="$1"
|
||||
local DEPLOYDIR="$PKGDEPLOYDIR/$PKGNAME"
|
||||
local DEVDEPLOYDIR="$PKGDEVDEPLOYDIR/$PKGNAME"
|
||||
local CHECKFILE="$PKGLOGDIR/.${PKGNAME}-${FUNCTION}"
|
||||
|
||||
echo "$PKGNAME - $FUNCTION"
|
||||
|
@ -12,14 +13,14 @@ run_pkg_command() {
|
|||
local LOGFILE="$PKGLOGDIR/${PKGNAME}-${FUNCTION}.log"
|
||||
local SRC="$PKGSRCDIR/$SRCDIR"
|
||||
|
||||
mkdir -p "$DEPLOYDIR" "$PKGBUILDDIR" "${DEPLOYDIR}-dev"
|
||||
mkdir -p "$PKGBUILDDIR" "$DEPLOYDIR" "$DEVDEPLOYDIR"
|
||||
|
||||
pushd "$PKGBUILDDIR" > /dev/null
|
||||
$FUNCTION "$SRC" "$DEPLOYDIR" "${DEPLOYDIR}-dev" &>> "$LOGFILE" < /dev/null
|
||||
$FUNCTION "$SRC" "$DEPLOYDIR" "$DEVDEPLOYDIR" &>> "$LOGFILE" < /dev/null
|
||||
popd > /dev/null
|
||||
|
||||
(rmdir "$DEPLOYDIR" || true) 2> /dev/null ;
|
||||
(rmdir "${DEPLOYDIR}-dev" || true) 2> /dev/null ;
|
||||
(rmdir "$DEVDEPLOYDIR" || true) 2> /dev/null ;
|
||||
|
||||
touch "$CHECKFILE"
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ install_build_deps() {
|
|||
fi
|
||||
|
||||
for deppkg in $DEPENDS; do
|
||||
local devdir="$PKGDEPLOYDIR/${deppkg}-dev"
|
||||
local devdir="$PKGDEVDEPLOYDIR/$deppkg"
|
||||
|
||||
if [ -d "$devdir/include" ]; then
|
||||
cp -R "$devdir/include" "$TCDIR/$TARGET"
|
||||
|
|
Loading…
Reference in a new issue