mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-30 03:12:41 +00:00
Renames files into new positions to simplify and make organization clearer.
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#! /bin/bash
|
||||
# This file is run for initial configuration and is not run thereafter.
|
||||
|
||||
# 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.
|
||||
|
||||
if [[ ! -d "./config-include" ]] ; then
|
||||
echo "./config-include directory DOES NOT EXIST in the current directory"
|
||||
echo "NOT DOING ANYTHING"
|
||||
exit 5
|
||||
fi
|
||||
|
||||
TEMPFILE=/tmp/configInclude$$
|
||||
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.
|
||||
EOFFFF
|
||||
|
||||
for iniFile in $(find ./config-include -name \*.ini ) ; do
|
||||
cp "$TEMPFILE" "$iniFile"
|
||||
done
|
||||
|
||||
for exampleFile in $(find ./config-include -name \*.example) ; do
|
||||
cp "$TEMPFILE" "${exampleFile%%.example}"
|
||||
done
|
||||
|
||||
rm -f "$TEMPFILE"
|
||||
Reference in New Issue
Block a user