imported some svn repositories to git, improved html
This commit is contained in:
@ -3,6 +3,14 @@
|
||||
"http://repo.or.cz/openal-soft.git",
|
||||
"https://anongit.freedesktop.org/git/pkg-config.git",
|
||||
"https://anongit.kde.org/katomic.git",
|
||||
"https://git.code.sf.net/p/arianne/marauroa",
|
||||
"https://git.code.sf.net/p/autorealm/code",
|
||||
"https://git.code.sf.net/p/autorealm/delphi",
|
||||
"https://git.code.sf.net/p/autorealm/http",
|
||||
"https://git.code.sf.net/p/battlefieldjava/git",
|
||||
"https://git.code.sf.net/p/dangerdeep/git",
|
||||
"https://git.code.sf.net/p/dropshock/code",
|
||||
"https://git.code.sf.net/p/rmoffice/code",
|
||||
"https://git.octaforge.org/engine/octaforge.git",
|
||||
"https://git.savannah.gnu.org/git/adonthell/adonthell-wastesedge.git",
|
||||
"https://git.savannah.gnu.org/git/freedink.git",
|
||||
@ -12,6 +20,7 @@
|
||||
"https://git.savannah.nongnu.org/git/lordsawar.git",
|
||||
"https://git.tukaani.org/xz.git",
|
||||
"https://git.tuxfamily.org/fanwor/fanwor.git",
|
||||
"https://github.com/0ad/0ad.git",
|
||||
"https://github.com/AdamAtomic/flixel.git",
|
||||
"https://github.com/Ancurio/mkxp.git",
|
||||
"https://github.com/AndO3131/lgeneral.git",
|
||||
@ -65,6 +74,10 @@
|
||||
"https://github.com/Scorched-Moon/server.git",
|
||||
"https://github.com/TVTower/TVTower.git",
|
||||
"https://github.com/TobiasBielefeld/Simple-Solitaire.git",
|
||||
"https://github.com/Trilarion/deity.git",
|
||||
"https://github.com/Trilarion/dungeonmap.git",
|
||||
"https://github.com/Trilarion/freetrain.git",
|
||||
"https://github.com/Trilarion/rpdungeon.git",
|
||||
"https://github.com/Trilarion/sge2d.git",
|
||||
"https://github.com/Tuxemon/Tuxemon.git",
|
||||
"https://github.com/Vakarias/farcolony.git",
|
||||
|
@ -6,12 +6,13 @@
|
||||
Warning: This may take a long time on the first run and may need a lot of storage space!
|
||||
|
||||
TODO are really all existing branches cloned and pulled? (see https://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-in-git)
|
||||
TODO detect unused folders?
|
||||
TODO Sourceforge git clone may not work all the time (restart the script helps..)
|
||||
"""
|
||||
|
||||
import os
|
||||
import json
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
|
||||
def read_text(file):
|
||||
@ -22,6 +23,7 @@ def read_text(file):
|
||||
text = f.read()
|
||||
return text
|
||||
|
||||
|
||||
def derive_folder_name(url):
|
||||
replaces = {
|
||||
'https://github.com': 'github',
|
||||
@ -42,6 +44,7 @@ def derive_folder_name(url):
|
||||
url = url[len(generic):]
|
||||
return sanitize(url)
|
||||
|
||||
|
||||
def clone(url, folder):
|
||||
result = subprocess.run(["git", "clone", url, folder])
|
||||
if result.returncode:
|
||||
@ -84,12 +87,14 @@ if __name__ == '__main__':
|
||||
for folder, archive in zip(folders, archives):
|
||||
if not os.path.isdir(folder):
|
||||
clone(archive, folder)
|
||||
time.sleep(0.1) # not sure if this is necessary, but there were some issues with too many git operations
|
||||
|
||||
# at the end update them all
|
||||
for folder in folders:
|
||||
# pull all
|
||||
os.chdir(folder)
|
||||
pull()
|
||||
time.sleep(0.1) # not sure if this is necessary, but there were some issues with too many git operations
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user