Browse Source

make clean, copying starting script and lib files as links

Paul Klumpp 10 years ago
parent
commit
43783a931a
1 changed files with 7 additions and 4 deletions
  1. 7 4
      install.sh

+ 7 - 4
install.sh

@@ -15,7 +15,7 @@ cd ${SRCPATH_QWBOT}
 
 BIN_QWBOT="cimsqwbot"
 CFG_QWBOT="cimsqwbot.cfg"
-STARTER="startcimsqwbot.sh"
+STARTER="start_cmp_qwbot.sh"
 
 
 
@@ -80,22 +80,25 @@ git submodule update --init --recursive
 # we always make them both...
 cd "$SRCPATH_LIBQWCL"
 qmake
+make clean
 make
 
 cd "${SRCPATH_QWBOT}"
 qmake
+make clean
 make
 
 
 
 if [ -d "${INST_LOCATION}" ]; then
   #copy assets over
-  echo "Copying qwbot binary..."
+  echo "Copying qwbot binary and starting script..."
   cp "${BIN_QWBOT}" "${INST_LOCATION}"
+  cp "${STARTER}" "${INST_LOCATION}"
 
   echo "Copying qwclient library..."
   mkdir -p "${INST_LOCATION}/libqwclient"
-  cp "${SRCPATH_LIBQWCL}/*.so.*" "${INST_LOCATION}/libqwclient/"
+  cp -d ${SRCPATH_LIBQWCL}/*.so.* "${INST_LOCATION}/libqwclient/"
   
   # change into that target directory
   cd ${INST_LOCATION}
@@ -146,7 +149,7 @@ if [ -d "${INST_LOCATION}" ]; then
   echo
 else
   #missing
-  echo "For some reason I can't create or access the target directory ${INST_LOCATION} ..."
+  echo "For some reason I can't create or access the target directory ${INST_LOCATION} ...is it alive?"
   exit
 fi