1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00
systemd/test/simple-build-check.sh
Kay Sievers a8349b33e5 remove our own copy of klibc
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-09 15:42:07 +01:00

46 lines
1.0 KiB
Bash
Executable File

#/bin/sh
EXTRAS="\
extras/scsi_id \
extras/ata_id \
extras/volume_id \
extras/usb_id \
extras/dasd_id \
extras/cdrom_id \
extras/edd_id \
extras/floppy \
extras/run_directory \
extras/firmware"
# with debug
make clean EXTRAS="$EXTRAS" >/dev/null
make all -j4 $MAKEOPTS DEBUG=true EXTRAS="$EXTRAS" || exit
echo -e "\n\n"
# without any logging
make clean EXTRAS="$EXTRAS" >/dev/null
make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS" || exit
echo -e "\n\n"
# klibc build
[ -z "$KLCC" ] && KLCC=/usr/bin/klcc
if [ -e "$KLCC" ]; then
echo KLCC: "$KLCC"
make clean EXTRAS="$EXTRAS" >/dev/null
make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KLCC="$KLCC" || exit
echo -e "\n\n"
fi
# install in temporary dir and show it
TEMPDIR="`pwd`/.tmp"
rm -rf $TEMPDIR
mkdir $TEMPDIR
make clean EXTRAS="$EXTRAS" >/dev/null
make all $MAKEOPTS DESTDIR="$TEMPDIR" EXTRAS="$EXTRAS" || exit
make install DESTDIR="$TEMPDIR" EXTRAS="$EXTRAS" || exit
echo -e "\nInstalled tree:"
find $TEMPDIR
rm -rf $TEMPDIR
make clean EXTRAS="$EXTRAS" >/dev/null