Debian Codegraph @

android/project/jni/libfwknop/get_libfko_files.sh

raw
1 #!/bin/sh
2 #
3 # get_libfko_files.sh
4 #
5 # Copy each of the libfko source files in the fwknop source tree into this
6 # directory.
7 #
8 # Usage: ./get_libfko_files.sh [libfko-dir]
9 #
10 # Note: You should run this script only from this directory (libfwknop).
11 #
12 # If the libfko-dir argument is not given, this script will assume
13 # ../../../../lib (which will work if this directory is still part
14 # of the original fwknop source distribution.
15 #
16 ###############################################################################
17 #
18 LIBFKO_DIR=${1:-"../../../../lib"} # Default relative path to libfko files.
19
20 # Simple sanity checks. See if the LIBFKO_DIR directory exists and see if
21 # thi "fko_context.h" is found there as well.
22 #
23 if [ ! -d "$LIBFKO_DIR" ] ; then
24 echo "Libfko directory: '$LIBFKO_DIR' was not found! Aborting."
25 exit 1
26 fi
27
28 if [ ! -e "${LIBFKO_DIR}/fko_context.h" ] ; then
29 echo "'$LIBFKO_DIR' does not seem to contain the required files! Aborting."
30 exit 1
31 fi
32
33 # Copy the files.
34 #
35 /bin/cp ${LIBFKO_DIR}/*.[ch] .
36
37 ###EOF###