-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsteam2backloggery.sh
More file actions
executable file
·31 lines (25 loc) · 989 Bytes
/
steam2backloggery.sh
File metadata and controls
executable file
·31 lines (25 loc) · 989 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
27
28
29
30
31
#!/bin/bash
#######################
# USER SETTINGS GO HERE
#######################
STEAM_NAME="steamcommunity ID"
BL_NAME="backloggery username"
BL_PASS="backloggery password"
EDITOR="nano -w"
###########################################
# NO USER SERVICEABLE PARTS BELOW THIS LINE
###########################################
function bltool() {
# Unlike windows we can usually assume that 'java' is in $PATH already and does the right thing
java -jar bltool.jar --steam-name "$STEAM_NAME" --bl-name "$BL_NAME" --bl-pass "$BL_PASS" "$@"
}
# Initialize the filter file, if needed
[[ -f filter.txt ]] || {
bltool --from backloggery --to text --output filter.txt
}
# Get initial games list from Steam.
bltool --from steam --to text --output games.txt --filter-from text --filter-input filter.txt
# Assume everything we've gotten will either be added or should be ignored forever.
cat games.txt >> filter.txt
$EDITOR games.txt
bltool --from text --to backloggery --input games.txt