mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
19 lines
666 B
Python
19 lines
666 B
Python
#!/usr/bin/env python
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import subprocess
|
|
|
|
repo = "https://dvcs.w3.org/hg/resources"
|
|
dest = "resources-upstream"
|
|
files = ["testharness.js", "testharness.css", "idlharness.js", "WebIDLParser.js"]
|
|
|
|
subprocess.check_call(["hg", "clone", repo, dest])
|
|
for f in files:
|
|
subprocess.check_call(["cp", "%s/%s" % (dest, f), f])
|
|
subprocess.check_call(["hg", "add", f])
|
|
subprocess.check_call(["rm", "--recursive", "--force", dest])
|