ogClonningEnginetest-python-scriptsticket-693ticket-700
Last change
on this file since 5b1449d was
7260bdc2,
checked in by Antonio Emmanuel Guerrero Silva <aguerrero@…>, 9 months ago
|
refs #585 Libraries convert to Python3
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Rev | Line | |
---|
[7260bdc2] | 1 | import os |
---|
| 2 | import subprocess |
---|
| 3 | |
---|
| 4 | def install(url): |
---|
| 5 | if not url: |
---|
| 6 | print("Please provide the URL of the tar.gz file") |
---|
| 7 | return |
---|
| 8 | |
---|
| 9 | os.chdir("/tmp") |
---|
| 10 | subprocess.run(["wget", "-O", "download.tgz", url]) |
---|
| 11 | os.mkdir("download") |
---|
| 12 | |
---|
| 13 | subprocess.run(["tar", "xzvf", "download.tgz", "-C", "download"]) |
---|
| 14 | |
---|
| 15 | for i in os.listdir("download"): |
---|
| 16 | os.chdir(f"download/{i}") |
---|
| 17 | if os.path.exists("configure"): |
---|
| 18 | subprocess.run(["./configure"]) |
---|
| 19 | subprocess.run(["make"]) |
---|
| 20 | subprocess.run(["make", "install"]) |
---|
| 21 | os.chdir("-") |
---|
| 22 | subprocess.run(["rm", "-fr", "download*"]) |
---|
| 23 | |
---|
| 24 | def mbuffer(): |
---|
| 25 | if os.path.exists("/opt/git/opengnsys/client/engine/ToolsGNUc.py"): |
---|
| 26 | subprocess.run(["python", "/opt/git/opengnsys/client/engine/ToolsGNUc.py"]) |
---|
| 27 | else: |
---|
| 28 | return |
---|
| 29 | |
---|
| 30 | def ms_sys(): |
---|
| 31 | if os.path.exists("/opt/git/opengnsys/client/engine/ToolsGNUc.py"): |
---|
| 32 | subprocess.run(["python", "/opt/git/opengnsys/client/engine/ToolsGNUc.py"]) |
---|
| 33 | else: |
---|
| 34 | return |
---|
| 35 | |
---|
| 36 | def ctorrent(): |
---|
| 37 | if os.path.exists("/opt/git/opengnsys/client/engine/ToolsGNUc.py"): |
---|
| 38 | subprocess.run(["python", "/opt/git/opengnsys/client/engine/ToolsGNUc.py", "install"]) |
---|
| 39 | else: |
---|
| 40 | return |
---|
| 41 | |
---|
| 42 | def udpcast(): |
---|
| 43 | if len(sys.argv) > 1 and sys.argv[1] == "install": |
---|
| 44 | install("http://udpcast.linux.lu/download/udpcast-20100130.tar.gz") |
---|
| 45 | else: |
---|
| 46 | return |
---|
| 47 | |
---|
| 48 | def ntfs_3g(): |
---|
| 49 | if len(sys.argv) > 1 and sys.argv[1] == "install": |
---|
| 50 | install("http://tuxera.com/opensource/ntfs-3g-2011.1.15.tgz") |
---|
| 51 | else: |
---|
| 52 | return |
---|
| 53 | |
---|
| 54 | def partitionsaving(): |
---|
| 55 | return |
---|
| 56 | |
---|
| 57 | def awk(): |
---|
| 58 | return |
---|
| 59 | |
---|
| 60 | def chntpw(): |
---|
| 61 | return |
---|
| 62 | |
---|
| 63 | def fdisk(): |
---|
| 64 | return |
---|
| 65 | |
---|
| 66 | def fsck(): |
---|
| 67 | return |
---|
| 68 | |
---|
| 69 | def kexec(): |
---|
| 70 | return |
---|
| 71 | |
---|
| 72 | def lshw(): |
---|
| 73 | return |
---|
| 74 | |
---|
| 75 | def mkfs(): |
---|
| 76 | return |
---|
| 77 | |
---|
| 78 | def mount(): |
---|
| 79 | return |
---|
| 80 | |
---|
| 81 | def parted(): |
---|
| 82 | return |
---|
| 83 | |
---|
| 84 | def partimage(): |
---|
| 85 | return |
---|
| 86 | |
---|
| 87 | def partprobe(): |
---|
| 88 | return |
---|
| 89 | |
---|
| 90 | def sfdisk(): |
---|
| 91 | return |
---|
| 92 | |
---|
| 93 | def umount(): |
---|
| 94 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.