.
1 #!/usr/bin/python
2 import os
3 import subprocess
4 from scripts.run import run
5
6 if not os.path.exists ("build/configured"):
7 print ("Project is not configured")
8 exit (1)
9
10 if not os.path.exists ("build/installed"):
11 print ("Project is not installed")
12 exit (1)
13
14 f = open('build/installed')
15 for file in iter(f):
16 print ('Removing ' + file.replace ('\n', ''))
17 run ('rm ' + file)
18
19 f.close()
20