blob: 768bc915e1d3f38470cf18199520d05b875d04be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/bin/sh
top_builddir="@top_builddir@"
camlibdir="@camlibdir@"
libdir="@libdir@"
DESTDIR="@DESTDIR@"
MAKE="@MAKE@"
echo "---------------------"
pwd
echo "camlibdir=$camlibdir"
echo "libdir=$libdir"
echo "DESTDIR=$DESTDIR"
echo "top_builddir=$top_builddir"
CAMLIBS="${DESTDIR}${camlibdir}"
pwd="$(pwd)"
if test -d "${CAMLIBS}"; then
echo "Found camlibs in default install dir."
:
else
echo "Going to use our own camlib installation"
DESTDIR="${pwd}/_inst"
CAMLIBS="${DESTDIR}${camlibdir}"
for reldir in \
libgphoto2_port/libgphoto2_port \
libgphoto2 \
camlibs
do
(cd "${top_builddir}/${reldir}" && ${MAKE} DESTDIR="$DESTDIR" install)
done
ln -s "${CAMLIBS}" "_camlibs"
CAMLIBS="${pwd}/_camlibs"
if test -d "${CAMLIBS}"; then
echo "Test installation successful"
else
echo "Test installation failed"
exit 1
fi
fi
#LD_LIBRARY_PATH="$DESTDIR$libdir:$LD_LIBRARY_PATH"
#export LD_LIBRARY_PATH
echo "Using camlib dir: $CAMLIBS"
export CAMLIBS
echo "====================="
pwd
echo "camlibdir=$camlibdir"
echo "libdir=$libdir"
echo "DESTDIR=$DESTDIR"
echo "top_builddir=$top_builddir"
echo "CAMLIBS=$CAMLIBS"
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo "#####################"
./test-camera-list
|