Last active
August 29, 2015 14:26
-
-
Save zbee/0f5abac6d649d04fc0e2 to your computer and use it in GitHub Desktop.
Fix Error 183 when installing Git 1.9.5 (works on python 2.x, to get 3.x working change .iteritems() to .items() on line 345)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| libs = { | |
| "bin": "", | |
| "etc" : "", | |
| "lib": { | |
| "perl5": { | |
| "5.8.8" : { | |
| "B": "", | |
| "CPAN": "", | |
| "unicore": { | |
| "lib": { | |
| "bc": "", | |
| "ccc": "", | |
| "dt": "", | |
| "ea": "", | |
| "gc_sc": "", | |
| "hst": "", | |
| "jt": "", | |
| "lb": "", | |
| "nt": "" | |
| }, | |
| "To": "" | |
| }, | |
| "auto": { | |
| "POSIX": { | |
| "SigAction": "" | |
| } | |
| }, | |
| "msys": { | |
| "auto": { | |
| "DynaLoader": "", | |
| "POSIX": "", | |
| "Storable": "", | |
| "attrs": "", | |
| "B": { | |
| "C": "" | |
| }, | |
| "ByteLoader": "", | |
| "Cwd": "", | |
| "Data": { | |
| "Dumper": "", | |
| }, | |
| "Devel": { | |
| "DProf": "", | |
| "Peek": "", | |
| "PPPort": "" | |
| }, | |
| "Digest": { | |
| "MD5": "" | |
| }, | |
| "Encode": { | |
| "Byte": "", | |
| "CN": "", | |
| "EBCDIC": "", | |
| "JP": "", | |
| "KR": "", | |
| "Symbol": "", | |
| "TW": "", | |
| "Unicode": "" | |
| }, | |
| "Fcntl": "", | |
| "File": { | |
| "Glob": "" | |
| }, | |
| "Filter": { | |
| "Util": { | |
| "Call": "" | |
| } | |
| }, | |
| "IO": "", | |
| "List": { | |
| "Util": "" | |
| }, | |
| "MIME": { | |
| "Base64": "" | |
| }, | |
| "Opcode": "", | |
| "PerlIO": { | |
| "encoding": "", | |
| "scalar": "", | |
| "via": "" | |
| }, | |
| "re": "", | |
| "SDBM_File": "", | |
| "Socket": "", | |
| "Sys": { | |
| "Hostname": "", | |
| "Syslog": "" | |
| }, | |
| "threads": { | |
| "shared": "" | |
| }, | |
| "Time": { | |
| "HiRes": "" | |
| }, | |
| "Unicode": { | |
| "Normalize": "" | |
| }, | |
| "XS": { | |
| "APItest": "", | |
| "Typemap": "" | |
| }, | |
| "sdbm": "" | |
| }, | |
| "CORE": "", | |
| "B": "", | |
| "Data": "", | |
| "Devel": "", | |
| "Digest": "", | |
| "Encode": "", | |
| "File": "", | |
| "Filter": { | |
| "Util": "" | |
| }, | |
| "IO": "", | |
| "MIME": "", | |
| "PerlIO": "", | |
| "Sys": "", | |
| "threads": "", | |
| "Time": "", | |
| "Unicode": "", | |
| "XS": "" | |
| }, | |
| "Encode": { | |
| "CN": "", | |
| "JP": "", | |
| "KR": "", | |
| "MIME": { | |
| "Header": "" | |
| }, | |
| "Unicode": "" | |
| }, | |
| "Net": { | |
| "FTP": "" | |
| }, | |
| "App": { | |
| "Prove": { | |
| "State": { | |
| "Result": "" | |
| } | |
| } | |
| }, | |
| "Attribute": "", | |
| "Carp": "", | |
| "CGI": "", | |
| "Class": "", | |
| "DBM_Filter": "", | |
| "Devel": "", | |
| "Digest": "", | |
| "Exporter": "", | |
| "ExtUtils": { | |
| "Command": "", | |
| "Liblist": "", | |
| "MakeMaker": "", | |
| }, | |
| "File": { | |
| "Spec": "" | |
| }, | |
| "Filter": "", | |
| "Getopt": "", | |
| "Hash": "", | |
| "I18N": { | |
| "LangTags": "" | |
| }, | |
| "IO": { | |
| "Socket": "" | |
| }, | |
| "IPC": "", | |
| "List": "", | |
| "Locale": { | |
| "Maketext": "" | |
| }, | |
| "Memoize": "", | |
| "PerlIO": { | |
| "via": "" | |
| }, | |
| "Scalar": "", | |
| "Search": "", | |
| "TAP": { | |
| "Formatter": { | |
| "Console": "", | |
| "File": "" | |
| }, | |
| "Parser": { | |
| "Iterator": "", | |
| "Result": "", | |
| "Scheduler": "", | |
| "SourceHandler": "", | |
| "YAMLish": "" | |
| }, | |
| "Harness": "" | |
| }, | |
| "Term": "", | |
| "Test": { | |
| "Builder": { | |
| "Tester": "" | |
| } | |
| }, | |
| "Text": "", | |
| "Thread": "", | |
| "Tie": "", | |
| "Time": "", | |
| "Unicode": { | |
| "Collate": "" | |
| }, | |
| "User": "", | |
| "warnings": "" | |
| }, | |
| "site_perl": { | |
| "5.8.8": { | |
| "msys": { | |
| "auto": { | |
| "SVN": { | |
| "_Client": "", | |
| "_Core": "", | |
| "_Delta": "", | |
| "_Fs": "", | |
| "_Ra": "", | |
| "_Repos": "", | |
| "_Wc": "" | |
| }, | |
| "Term": { | |
| "ReadKey": "" | |
| } | |
| }, | |
| "SVN": "", | |
| "Term": "" | |
| } | |
| }, | |
| "Git": { | |
| "SVN": { | |
| "Memoize": "" | |
| } | |
| } | |
| } | |
| }, | |
| "tcl8.5": { | |
| "tzdata": { | |
| "Africa": "", | |
| "America": { | |
| "Argentina": "", | |
| "Indiana": "", | |
| "Kentucky": "", | |
| "North_Dakota": "" | |
| }, | |
| "Antarctica": "", | |
| "Arctic": "", | |
| "Asia": "", | |
| "Atlantic": "", | |
| "Australia": "", | |
| "Brazil": "", | |
| "Canada": "", | |
| "Chile": "", | |
| "Etc": "", | |
| "Europe": "", | |
| "Indian": "", | |
| "Mexico": "", | |
| "Pacific": "", | |
| "SystemV": "", | |
| "US": "" | |
| }, | |
| "encoding": "", | |
| "msgs": "", | |
| "http1.0": "", | |
| "opt0.4": "" | |
| }, | |
| "tk8.5": { | |
| "demos": { | |
| "images": "" | |
| }, | |
| "images": "", | |
| "msgs": "", | |
| "ttk": "" | |
| }, | |
| "dde1.3": "", | |
| "reg1.2": "", | |
| "engines": "", | |
| "tcl8": { | |
| "8.4": { | |
| "platform": "" | |
| }, | |
| "8.5": "" | |
| } | |
| }, | |
| "libexec": { | |
| "git-core": { | |
| "mergetools": "" | |
| } | |
| }, | |
| "share": { | |
| "antiword": "", | |
| "bison": { | |
| "m4sugar": "", | |
| "xslt": "" | |
| }, | |
| "git-core": { | |
| "templates": { | |
| "info": "", | |
| "hooks": "" | |
| } | |
| }, | |
| "git-gui": { | |
| "lib": { | |
| "msgs": "" | |
| } | |
| }, | |
| "vim": { | |
| "vim74": { | |
| "tutor": "", | |
| "autoload": "", | |
| "plugin": "", | |
| "syntax": "" | |
| } | |
| }, | |
| "gitweb": { | |
| "static": "" | |
| }, | |
| "gitk": { | |
| "lib": { | |
| "msgs": "" | |
| } | |
| } | |
| }, | |
| "ssl": { | |
| "misc": "", | |
| "certs": { | |
| "expired": "", | |
| "demo": "" | |
| } | |
| }, | |
| "cmd": "", | |
| "doc": { | |
| "git": { | |
| "html": { | |
| "howto": "", | |
| "technical": "", | |
| "RelNotes": "" | |
| } | |
| } | |
| } | |
| } | |
| def makeDir (path, dir): | |
| for key, value in dir.items(): | |
| if not os.path.isdir(path + key): | |
| os.makedirs(path + "/" + key) | |
| if type(value) is dict: | |
| makeDir(path + "/" + key, value) | |
| makeDir("./", libs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment