mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-22 18:14:20 -05:00
21 lines
542 B
Bash
Executable File
21 lines
542 B
Bash
Executable File
#!/bin/bash
|
|
cd $BUILDDIR
|
|
|
|
for archive in $hostarchives
|
|
do
|
|
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
|
cd $BUILDDIR/$dir
|
|
if [ ! -f configured ]; then
|
|
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=$prefix $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
|
touch configured
|
|
fi
|
|
if [ ! -f built ]; then
|
|
$MAKE || { echo "error building $dir"; exit 1; }
|
|
touch built
|
|
fi
|
|
if [ ! -f installed ]; then
|
|
$MAKE install || { echo "error installing $dir"; exit 1; }
|
|
touch installed
|
|
fi
|
|
done
|