Commit 1632fc38 authored by Yann Garcia's avatar Yann Garcia
Browse files

Merge request: Change Request on update_its_project.bash

parent 3d9dfa82
......@@ -12,22 +12,27 @@ OLDPWD=`pwd`
# Execution path
RUN_PATH="${0%/*}"
if [ "${VALIDATION_DIR}" == "" ]
then
VALIDATION_DIR=${HOME}
fi
CHOWN_USER_GROUP=${USER}:${USER}
SRC_ITS_PATH=${HOME}/dev/STF525_Its
if [ "${PATH_DEV_ITS}" == "" ]
if [ -d ${PATH_DEV_ITS} ]
then
PATH_DEV_ITS=`pwd`/../etsi_its
fi
if [ -d ${PATH_DEV_ITS} ]
then
if [ -f ${HOME}/tmp/etsi_its.tar.bz2 ]
if [ -f ${VALIDATION_DIR}/tmp/etsi_its.tar.bz2 ]
then
mv ${HOME}/tmp/etsi_its.tar.bz2 ${HOME}/tmp/etsi_its.tar.`date +'%Y%m%d'`.bz2
mv ${VALIDATION_DIR}/tmp/etsi_its.tar.bz2 ${HOME}/tmp/etsi_its.tar.`date +'%Y%m%d'`.bz2
fi
find ${PATH_DEV_ITS} -name "*.o" -exec rm {} \;
tar jhcvf ${HOME}/tmp/etsi_its.tar.bz2 ${PATH_DEV_ITS}
tar jhcvf ${VALIDATION_DIR}/tmp/etsi_its.tar.bz2 ${PATH_DEV_ITS}
rm -fr ${PATH_DEV_ITS}
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment