git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7922 67ed7778-7388-44ab-90cf-0a291f65f57c
33 lines
676 B
Bash
33 lines
676 B
Bash
#!/bin/sh
|
|
|
|
top_builddir="@top_builddir@"
|
|
camlibdir="@camlibdir@"
|
|
DESTDIR="@DESTDIR@"
|
|
MAKE="@MAKE@"
|
|
|
|
CAMLIBS="${DESTDIR}${camlibdir}"
|
|
|
|
if test -d "${CAMLIBS}"; then
|
|
:
|
|
elif test -d "$(pwd)/_inst/${camlibdir}"; then
|
|
DESTDIR="$(pwd)/_inst"
|
|
CAMLIBS="${DESTDIR}${camlibdir}"
|
|
:
|
|
else
|
|
DESTDIR="$(pwd)/_inst"
|
|
CAMLIBS="${DESTDIR}${camlibdir}"
|
|
(cd "${top_builddir}" && ${MAKE} DESTDIR="$DESTDIR" install)
|
|
if test -d "${CAMLIBS}"; then
|
|
echo "Test installation successful"
|
|
else
|
|
echo "Test installation failed"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "Using camlib dir: $CAMLIBS"
|
|
export CAMLIBS
|
|
|
|
#echo "FIXME: Actually list all cameras."
|
|
./test-camera-list
|