simple-build-check.sh revision a8349b33e564f7faa83341cb1fa58466b0589ae9
d657c51f14601d0235434ffb78cf6ac0f27cc83cLennart Poettering#/bin/sh
220a21d38f675eb835f5758e3d23e896573aa5eaLennart Poettering
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart PoetteringEXTRAS="\
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/scsi_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/ata_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/volume_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/usb_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/dasd_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/cdrom_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/edd_id \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/floppy \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/run_directory \
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering extras/firmware"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering# with debug
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake clean EXTRAS="$EXTRAS" >/dev/null
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake all -j4 $MAKEOPTS DEBUG=true EXTRAS="$EXTRAS" || exit
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringecho -e "\n\n"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering# without any logging
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake clean EXTRAS="$EXTRAS" >/dev/null
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS" || exit
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringecho -e "\n\n"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering# klibc build
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering[ -z "$KLCC" ] && KLCC=/usr/bin/klcc
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringif [ -e "$KLCC" ]; then
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering echo KLCC: "$KLCC"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering make clean EXTRAS="$EXTRAS" >/dev/null
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KLCC="$KLCC" || exit
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering echo -e "\n\n"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringfi
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering# install in temporary dir and show it
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart PoetteringTEMPDIR="`pwd`/.tmp"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringrm -rf $TEMPDIR
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmkdir $TEMPDIR
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake clean EXTRAS="$EXTRAS" >/dev/null
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake all $MAKEOPTS DESTDIR="$TEMPDIR" EXTRAS="$EXTRAS" || exit
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake install DESTDIR="$TEMPDIR" EXTRAS="$EXTRAS" || exit
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringecho -e "\nInstalled tree:"
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringfind $TEMPDIR
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringrm -rf $TEMPDIR
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poetteringmake clean EXTRAS="$EXTRAS" >/dev/null
0c11f949db8d6d9899e0c473bf1f8cca0614493eLennart Poettering