Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (15 sloc) 567 Bytes
#!/bin/sh
# this explicitely builds with LIBNSS into a different OBJDIR.
# it used by tests/build/b02-libnss/, but also by developers to
# validate libnss builds.
if [ -z "${DESTDIR}" ]; then
DESTDIR=`pwd`/OBJ.libnss.${BUILDENV}.${ARCH}/root
mkdir -p $DESTDIR
fi
if [ -z "${BUILDENV}" ]; then
BUILDENV=$(uname -s | tr 'A-Z' 'a-z' | sed -e 's/\(.*\)-.*/\1/')
fi
if [ -z "${ARCH}" ]; then
ARCH=$(uname -m)
fi
${MAKE-make} --no-print-directory USE_LIBNSS=true DESTDIR=${DESTDIR} OBJDIR=OBJ.libnss.${BUILDENV}.${ARCH} USE_LIBNSS=true programs install