1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 09:21:11 +03:00
systemd-stable/test/simple-build-check.sh
2007-07-24 13:28:18 +02:00

39 lines
853 B
Bash
Executable File

#/bin/sh
EXTRAS="\
extras/path_id \
extras/scsi_id \
extras/ata_id \
extras/volume_id \
extras/usb_id \
extras/cdrom_id \
extras/edd_id \
extras/floppy \
extras/firmware \
extras/path_id \
extras/collect \
extras/rule_generator"
# 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"
# 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