-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
26 lines (21 loc) · 998 Bytes
/
Copy pathpackage.sh
File metadata and controls
26 lines (21 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
set -eu
set -o pipefail
# Set the Spetz List Base inputs and shared script paths.
REPO_DIRECTORY="/g/skyrim-anniversary-edition/wabbajack-compiled/spetz-list-base/git"
MO2_PROFILE="spetz-list"
COMPILED_MODLISTS_DIRECTORY="/g/skyrim-anniversary-edition/wabbajack-compiled/spetz-list-base"
PREPARE_SCRIPT="/g/skyrim-anniversary-edition/spetz-list/scripts/prepare-compiled-modlist.sh"
PACKAGE_SCRIPT="/g/skyrim-anniversary-edition/spetz-list/scripts/package-compiled-modlist.sh"
# Derive the compiled version directory from the repository version.
VERSION=$(<"${REPO_DIRECTORY}/VERSION")
VERSION=${VERSION%$'\r'}
COMPILED_MODLIST_DIRECTORY="${COMPILED_MODLISTS_DIRECTORY}/${VERSION}"
# Prepare the compiled modlist.
"${PREPARE_SCRIPT}" \
--repo-dir "${REPO_DIRECTORY}" \
--mo2-profile "${MO2_PROFILE}" \
--compiled-modlist-dir "${COMPILED_MODLIST_DIRECTORY}"
# Package the compiled modlist.
"${PACKAGE_SCRIPT}" \
--compiled-modlist-dir "${COMPILED_MODLIST_DIRECTORY}"