Refactor install to map, as that's more relevant.

Update docs.
This commit is contained in:
Daniel Ceregatti 2023-11-03 17:13:18 -07:00
parent 6b329db11f
commit 287d60fe1d
6 changed files with 8 additions and 7 deletions

View file

@ -2,11 +2,11 @@
set -eE
if [ -f /files/mods/${1}/install.env ]
if [ -f /files/mods/${1}/map.env ]
then
source /files/mods/${1}/install.env
source /files/mods/${1}/map.env
else
echo "install.env not found for mod id ${1}..."
echo "map.env not found for mod id ${1}..."
exit 1
fi

View file

@ -65,7 +65,8 @@ xmlstarlet ed \
> types.xml
```
Always lint any XML file that is created/merged:
Always lint any XML file that is created/merged (Any output from this command means there is a problem. No output means the XML file is valid):
```shell
xmllint --noout types.xml
```

View file

@ -294,11 +294,11 @@ Mods: "
map(){
# Install map mpmissions for mods that have them. Presumes a map.env was created for the mod, with the required metadata (git URL, etc.)
if [ -f ${FILES}/mods/${1}/install.env ]
if [ -f ${FILES}/mods/${1}/map.env ]
then
echo "Installing mpmissions files for mod id ${1}..."
source ${FILES}/mods/${1}/install.env
${FILES}/bin/install.sh ${1} install
source ${FILES}/mods/${1}/map.env
${FILES}/bin/map.sh ${1} install
fi
}