2022-02-12 05:44:32 +00:00
|
|
|
#!/bin/bash
|
2022-06-04 04:50:11 +00:00
|
|
|
if [ -f cells/edits.json ]; then
|
|
|
|
last_update_time=$(date -r cells/edits.json +'%Y-%m-%dT%H:%M:%S')
|
|
|
|
fi
|
2022-02-12 05:44:32 +00:00
|
|
|
mkdir -p logs
|
|
|
|
./target/release/mod-mapper &>> logs/modmapper.log
|
|
|
|
mkdir -p cells
|
|
|
|
mkdir -p mods
|
2022-06-01 04:53:53 +00:00
|
|
|
mkdir -p files
|
2022-03-11 03:32:46 +00:00
|
|
|
mkdir -p plugins_data
|
2022-06-04 04:50:11 +00:00
|
|
|
if [ -n "$last_update_time" ]; then
|
|
|
|
./target/release/mod-mapper -e cells/edits.json
|
2022-06-04 20:48:10 +00:00
|
|
|
./target/release/mod-mapper -c cells
|
2022-06-04 04:50:11 +00:00
|
|
|
./target/release/mod-mapper -s mods/mod_search_index.json
|
|
|
|
./target/release/mod-mapper -M mods/mod_cell_counts.json
|
|
|
|
./target/release/mod-mapper -m mods -u "$last_update_time"
|
2022-06-04 20:48:10 +00:00
|
|
|
./target/release/mod-mapper -P plugins_data -u "$last_update_time"
|
2022-06-04 04:50:11 +00:00
|
|
|
./target/release/mod-mapper -F files -u "$last_update_time"
|
|
|
|
else
|
|
|
|
./target/release/mod-mapper -e cells/edits.json
|
|
|
|
./target/release/mod-mapper -c cells
|
|
|
|
./target/release/mod-mapper -s mods/mod_search_index.json
|
|
|
|
./target/release/mod-mapper -M mods/mod_cell_counts.json
|
|
|
|
./target/release/mod-mapper -m mods
|
|
|
|
./target/release/mod-mapper -P plugins_data
|
|
|
|
./target/release/mod-mapper -F files
|
|
|
|
fi
|