Skip to content

Commit

Permalink
Print commands in scripts and their arguments as exexuted
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed May 16, 2024
1 parent 4f464dc commit 1f8235d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash

# exit on errors
set -e
cd tmp/
set -ex
export JAVA_HOME="/opt/jdk"
export TOMCAT_HOME="/opt/tomcat"
echo "JAVA HOME is ${JAVA_HOME}"
ls ${JAVA_HOME}/include/

cd /home/cc/src/cc/geosrv
gcc -c -std=c11 -fPIC -Wall -I "${JAVA_HOME}/include/" -I "${JAVA_HOME}/include/linux/" -I /tmp/proj/src/ cs2cswrapper.c
gcc -shared cs2cswrapper.o -lproj -o /usr/local/lib/libcs2cswrapper.so
Expand All @@ -29,6 +27,4 @@ touch ${TOMCAT_HOME}/webapps/carmacloud/event.csv
mkdir -p ${TOMCAT_HOME}/work/carmacloud/xodr
mkdir -p ${TOMCAT_HOME}/work/carmacloud/validate/xodr
/opt/jdk/bin/java -cp ${TOMCAT_HOME}/webapps/carmacloud/ROOT/WEB-INF/classes/:${TOMCAT_HOME}/lib/servlet-api.jar cc.ws.UserMgr ccadmin admin_testpw > ${TOMCAT_HOME}/webapps/carmacloud/user.csv
echo 'JAVA_HOME=/opt/jdk' > ${TOMCAT_HOME}/bin/setenv.sh
# sed -i 's/<param-value>ambassador-address<\/param-value>/<param-value>127.0.0.1<\/param-value>/g' ${TOMCAT_HOME}/webapps/carmacloud/ROOT/WEB-INF/web.xml
# sed -i 's/<param-value>simulation-url<\/param-value>/<param-value>http:\/\/127.0.0.1:8080\/carmacloud\/simulation<\/param-value>/g' ${TOMCAT_HOME}/webapps/carmacloud/ROOT/WEB-INF/web.xml
echo "JAVA_HOME=${JAVA_HOME}" > ${TOMCAT_HOME}/bin/setenv.sh
2 changes: 1 addition & 1 deletion scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# exit on errors
set -e
set -ex
apt-get update -y
apt-get install -y build-essential cmake git wget pkg-config sqlite3 libcurl4-openssl-dev libsqlite3-dev libtiff5-dev openjdk-21-jdk
# download geodesy projection library source and build
Expand Down

0 comments on commit 1f8235d

Please sign in to comment.