-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·38 lines (24 loc) · 863 Bytes
/
setup.py
File metadata and controls
executable file
·38 lines (24 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
import os
import sys
import shutil
print "compiling documentation..."
os.chdir("src/doc")
os.system("./doc_compile.py >/dev/null")
os.chdir("../../")
if os.path.exists("/usr/share/synapse"):
shutil.rmtree("/usr/share/synapse")
if os.path.exists("/usr/lib/synapse"):
shutil.rmtree("/usr/lib/synapse")
print "creating share directory"
os.mkdir("/usr/share/synapse")
print "copying common files"
shutil.copytree("./src/icons","/usr/share/synapse/icons")
shutil.copytree("./src/images","/usr/share/synapse/images")
shutil.copytree("./src/ui","/usr/share/synapse/ui")
shutil.copytree("./src/doc/en","/usr/share/synapse/doc")
print "copying library files"
shutil.copytree("./src/lib","/usr/lib/synapse")
print "copying main synapse scripts"
shutil.copy("./src/synapse","/usr/bin/")
shutil.copy("./src/synerpreter","/usr/bin/")