Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (24 sloc) 523 Bytes
#!/usr/bin/env python
platforms = [
import os
for r in open("fnames").readlines():
r = r.strip()
l = r.split("/")
if not l[-2] == 'platform':
l = l[:-2] + l[-1:]
for p in platforms:
if l[-1].endswith("" % p):
fname = l[-1][:-len(p)-3]
l[-1] = ("" % (fname, p))
fname = "/".join(l)
os.system("git mv %s %s" % (r, fname))
Jump to Line
Something went wrong with that request. Please try again.