Skip to content
Snippets Groups Projects
Commit ff5bfbea authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Merge branch 'enable_script' into 'master'

Enable script upgrades

See merge request !612
parents 20460439 749789df
No related branches found
No related tags found
1 merge request!612Enable script upgrades
#!/usr/bin/env bash
if [[ "$(basename -- "$0")" == "enable_sdk.sh" ]]; then
>&2 echo "ERROR: Don't run $0, source it. Ex 'source $0'"
>&2 echo "ERROR: Don't run $0, source it, to enable the repo it resides in. Ex 'source $0'"
exit 1
fi
SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
export RCG_SRC=${SCRIPT_DIR}
echo "RCG_SRC=${SCRIPT_DIR}"
export RTS_VERSION=local
echo "RTS_VERSION=local"
VERSION_HASH=$( echo ${SCRIPT_DIR} | md5sum )
export RTS_VERSION=${VERSION_HASH:0:10}
echo "RTS_VERSION=${VERSION_HASH:0:10}"
export CDS_SRC=${SCRIPT_DIR}/src/include/
echo "CDS_SRC=${SCRIPT_DIR}/src/include/"
echo ${VERSION_HASH:0:10} > ${SCRIPT_DIR}/rcg-version
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment