Fixed Filters to work with generated code.
[gfxprim.git] / install.sh
blobee5403f1e7328db5e46cde595dc9e489525c76f0
1 #!/bin/sh
3 INSTALL_PREFIX="$1"
5 HEADER_LOC="$INSTALL_PREFIX/usr/include/"
6 LIB_LOC="$INSTALL_PREFIX/usr/lib/"
8 # Headers
9 echo "INSTALL headers"
10 install -m 775 -d "${HEADER_LOC}GP"
11 for i in `ls include/`; do
12 if [ -d "include/$i" ]; then
13 echo " $i"
14 install -m 775 -d "${HEADER_LOC}GP/$i"
15 install -m 664 "include/$i/"*.h "${HEADER_LOC}GP/$i"
16 else
17 install -m 664 "include/$i" "${HEADER_LOC}GP/$i"
19 done
21 # Library
22 echo "INSTALL libraries"
23 install -m 775 -d "$LIB_LOC"
24 install -m 664 build/*.so build/*.so.0 build/*.a "$LIB_LOC"