Rework and simplify configuration.

Add NCG build (image-ncg)
This commit is contained in:
Robert Adams
2024-08-07 01:06:30 +00:00
parent 62fda19d00
commit 662aaec706
36 changed files with 1988 additions and 68 deletions
+7 -1
View File
@@ -4,6 +4,11 @@
# Script that walks ./config-include and over-writes all INI files with empty contents.
# This also creates empty INI files for all the *.example files.
OPENSIMDIR=${OPENSIMDIR:-/home/opensim/opensim}
OPENSIMBIN=${OPENSIMBIN:-$OPENSIMDIR/bin}
cd "$OPENSIMBIN"
if [[ ! -d "./config-include" ]] ; then
echo "./config-include directory DOES NOT EXIST in the current directory"
echo "NOT DOING ANYTHING"
@@ -15,13 +20,14 @@ rm -f "$TEMPFILE"
cat > "$TEMPFILE" << EOFFFF
; This file exists because this file is the default architecture include
; in OpenSim.ini.
; Look for the real configuration in bin/config which overlays settings.
; Look for the real configuration in the mounted config directory.
EOFFFF
for iniFile in $(find ./config-include -name \*.ini ) ; do
cp "$TEMPFILE" "$iniFile"
done
# this finds all .example files and creates an empty .ini file from that name
for exampleFile in $(find ./config-include -name \*.example) ; do
cp "$TEMPFILE" "${exampleFile%%.example}"
done