cleanup of template leftovers
This commit is contained in:
parent
d76de8e9ab
commit
8f275f5fe8
@ -5,7 +5,6 @@ _A simple slice-of-life Visual Novel from the point of a view of a computer-savv
|
||||
- Home: https://web.archive.org/web/20140523011334/http://pigux.com:80/cameliagirls/
|
||||
- Download: https://web.archive.org/web/20140107152141/http://pigux.com:80/cameliagirls/download.html
|
||||
- Keywords: visual novel
|
||||
- Code: primary repository (type if not git), other repositories (type if not git)
|
||||
- Language(s): Ren'py
|
||||
- License: CC-BY-SA
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
- Home: http://nyaatrap.blog.fc2.com/blog-entry-20.html
|
||||
- Download: http://www.mediafire.com/file/jog3fcfxgsyd03f/Astraea_Rio-1.05-all.zip
|
||||
- Keywords: visual novel, rating 18
|
||||
- Code: primary repository (type if not git), other repositories (type if not git)
|
||||
- Language: Ren'py
|
||||
- License: CC-BY-NC
|
||||
|
||||
|
@ -4,7 +4,7 @@ _Software framework and platform for the creation of multi-platform applications
|
||||
|
||||
- Home: http://www.openfl.org/
|
||||
- Media: https://en.wikipedia.org/wiki/OpenFL
|
||||
- Download: {URL}
|
||||
- Download: http://www.openfl.org/learn/docs/getting-started/
|
||||
- State: mature
|
||||
- Code: https://github.com/openfl
|
||||
- Language(s): Haxe
|
||||
|
@ -6,7 +6,7 @@ _Cross-platform library mainly aimed at video game and multimedia programming._
|
||||
- Media: https://en.wikipedia.org/wiki/Allegro_(software)
|
||||
- Download: http://liballeg.org/download.html
|
||||
- State: mature
|
||||
- Code: primary repository (type if not git), other repositories (type if not git)
|
||||
- Code: https://github.com/liballeg/allegro5
|
||||
- Language(s): C
|
||||
- License: zlib
|
||||
|
||||
|
@ -254,7 +254,6 @@ def regular_replacements():
|
||||
"""
|
||||
Replacing some stuff by shortcuts. Can be run regularly
|
||||
"""
|
||||
|
||||
# get category paths
|
||||
category_paths = get_category_paths()
|
||||
|
||||
@ -277,6 +276,29 @@ def regular_replacements():
|
||||
with open(entry_path, "w") as f:
|
||||
f.write(content)
|
||||
|
||||
def check_template_leftovers():
|
||||
"""
|
||||
Checks for template leftovers.
|
||||
"""
|
||||
check_strings = ['# {NAME}', '_{One line description}_', '- Home: {URL}', '- Media: {URL}', '- Download: {URL}', '- State: beta, mature (inactive since)', '- Keywords: SP, MP, RTS, TBS (if none, remove the line)', '- Code: primary repository (type if not git), other repositories (type if not git)', '- Language(s): {XX}', '- License: {XX} (if special, include link)', '{XXX}']
|
||||
|
||||
# get category paths
|
||||
category_paths = get_category_paths()
|
||||
|
||||
# for each category
|
||||
for category_path in category_paths:
|
||||
# get paths of all entries in this category
|
||||
entry_paths = get_entry_paths(category_path)
|
||||
|
||||
for entry_path in entry_paths:
|
||||
# read it line by line
|
||||
with open(entry_path) as f:
|
||||
content = f.read()
|
||||
|
||||
for check_string in check_strings:
|
||||
if content.find(check_string) >= 0:
|
||||
print('{}: found {}'.format(os.path.basename(entry_path), check_string))
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
# paths
|
||||
@ -289,11 +311,14 @@ if __name__ == "__main__":
|
||||
# generate list in toc files
|
||||
#update_category_tocs()
|
||||
|
||||
# check for unfilled template lines
|
||||
check_template_leftovers()
|
||||
|
||||
# check external links (only rarely)
|
||||
# check_validity_external_links()
|
||||
#check_validity_external_links()
|
||||
|
||||
# special, only run when needed
|
||||
fix_notation()
|
||||
#fix_notation()
|
||||
|
||||
# regular replacements
|
||||
# regular_replacements()
|
||||
#regular_replacements()
|
@ -1,10 +1,9 @@
|
||||
# Blades of Exile
|
||||
|
||||
_{One line description}_
|
||||
_Eole-playing video games created by Jeff Vogel of Spiderweb Software._
|
||||
|
||||
- Home: http://www.spiderwebsoftware.com/blades/opensource.html
|
||||
- Media: <https://en.wikipedia.org/wiki/Exile_(1995_video_game_series)#Blades_of_Exile>
|
||||
- Download: {URL}
|
||||
- State: mature
|
||||
- Keywords: SP, MP, RTS, TBS
|
||||
- Code: https://github.com/calref/cboe
|
||||
|
@ -1,4 +1,4 @@
|
||||
# {NAME}
|
||||
# Goblin Hack
|
||||
|
||||
_A roguelike opengl-based smooth-scrolling ASCII graphics game._
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
_A massive multiplayer online roleplaying game._
|
||||
|
||||
- Home: http://www.sourceoftales.org/
|
||||
- Download: {URL}
|
||||
- Keywords: MMO
|
||||
- Code: https://github.com/tales/sourceoftales
|
||||
- Language(s): Lua
|
||||
|
@ -3,8 +3,6 @@
|
||||
_A 2D real time strategy Mega-Lo-Mania-like god game._
|
||||
|
||||
- Home: http://gigalomania.sourceforge.net/
|
||||
- State: beta, mature (inactive since)
|
||||
- Keywords: SP, MP, RTS, TBS (if none, remove the line)
|
||||
- Code: https://sourceforge.net/p/gigalomania/code/ci/master/tree/
|
||||
- Language(s): C++
|
||||
- License: GPL-2.0
|
||||
|
@ -4,7 +4,7 @@ _One-button real-time strategy game._
|
||||
|
||||
- Home: http://paxbritannica.henk.ca/
|
||||
- State: mature
|
||||
- Keywords: SP, MP, RTS, TBS (if none, remove the line)
|
||||
- Keywords: MP, RTS
|
||||
- Code: https://github.com/henkboom/pax-britannica
|
||||
- Language(s): Lua, C
|
||||
- License: MIT
|
||||
|
@ -5,7 +5,7 @@ _A 2D realtime strategy simulation with an emphasis on economy and city building
|
||||
- Home: http://unknown-horizons.org/
|
||||
- Media: https://en.wikipedia.org/wiki/Unknown_Horizons
|
||||
- Download: http://unknown-horizons.org/downloads/
|
||||
- State: beta, mature (inactive since)
|
||||
- State: beta
|
||||
- Keywords: SP, TBS
|
||||
- Code: https://github.com/unknown-horizons/unknown-horizons
|
||||
- Language(s): Python
|
||||
|
Loading…
x
Reference in New Issue
Block a user