Skip to content
Snippets Groups Projects
Commit ccf4e4fb authored by dam1n19's avatar dam1n19
Browse files

Added ability to allow forcing of reinitialisation of socinit

parent 34833702
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
# Copyright 2023, SoC Labs (www.soclabs.org)
#-----------------------------------------------------------------------------
#!/bin/bash
OPTIND=1
# Get Root Location of Design Structure
if [ -z $SOCLABS_DESIGN_ROOT ]; then
......@@ -67,8 +68,20 @@ else
export PATH
fi
# Parse Command line options
force=false
while getopts "f" arg; do
case $arg in
f) # Force socinit
force=true
echo "Forcing Reinitialisation of Project"
;;
esac
done
# Check cloned repository has been initialised
if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ] || [ $force = true ]; then
echo "Running First Time Repository Initialisation"
# Source environment variables for all submodules
cd $SOCLABS_DESIGN_ROOT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment