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