git @ Cat's Eye Technologies The-Dossier / 64c5332
Compare old and new games refdexes, no longer generate one here. Chris Pressey 2 years ago
2 changed file(s) with 28 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh -x
11
22 ARTICLES=../The-Dossier/article
3
4 (cd $ARTICLES && feedmark --output-refdex --output-refdex-single-filename \
5 "Apple II Games of Note.md" \
6 "Atari 2600 Games of Note.md" \
7 "Commodore 64 Games of Note.md" \
8 "Computer Games of Note.md" \
9 "Computer Sports Games of Note.md" \
10 "Licensed-Character Video Games of Note.md" \
11 "Role-Playing Games of Note.md" \
12 "Text Adventures of Note.md" \
13 "Video Games of Note.md" \
14 "Recollected Games.md" \
15 "Some Modern Retrogames.md" \
16 "Classic Computer Games.md" \
17 "Classic Text Adventures.md" \
18 >../old-dossier-games-refdex.json) || exit 1
193
204 (cd $ARTICLES && feedmark --output-refdex --output-refdex-single-filename \
215 "20th-Century Visual Artists of Note.md" \
0 #!/usr/bin/env python3
1
2 import json
3
4
5 def read_refdex(filename):
6 with open(filename, 'r') as f:
7 data = json.loads(f.read())
8 return data
9
10
11 def compare():
12 old_refdex = read_refdex('old-dossier-games-refdex.json')
13 new_refdex = read_refdex('../Chrysoberyl/misc-refdex/sgon-refdex.json')
14
15 # # new not in old
16 # for k, v in new_refdex.items():
17 # if k not in old_refdex:
18 # print(k)
19
20 # old not in new
21 for k, v in old_refdex.items():
22 if k not in new_refdex:
23 print(k)
24
25
26 if __name__ == '__main__':
27 compare()