updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gsas-expgui-svn / bootstrap.patch
blob4ce26087f453473ca04cc2691e921403c649fde2
1 --- bootstrap.py 2011-10-18 12:20:42.084632296 -0500
2 +++ bootstrap.py 2011-10-18 12:21:52.198363940 -0500
3 @@ -1,4 +1,4 @@
4 -#!/usr/bin/env python
5 +#!/usr/bin/env python2
6 import os, stat, sys, platform, subprocess
7 home = 'https://subversion.xor.aps.anl.gov/EXPGUI/'
9 @@ -49,31 +49,3 @@
10 print ""
11 p = subprocess.call(cmd)
13 -if sys.platform.startswith('linux'):
14 - os.chmod(gsaspath + "/expgui/expgui",
15 - stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH)
16 - if os.path.exists(os.path.expanduser('~/Desktop/')):
17 - open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write('''
18 -[Desktop Entry]
19 -Encoding=UTF-8
20 -Version=1.0
21 -Type=Application
22 -Terminal=false
23 -Exec=%s/expgui/expgui
24 -Name=EXPGUI
25 -Icon=%s/EXPGUI.png
26 -''' % (gsaspath,gsaspath))
27 - os.chmod(os.path.expanduser('~/Desktop/EXPGUI.desktop'),
28 - stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH)
29 - open(os.path.expanduser('~/Desktop/GSAS.desktop'),'w').write('''
30 -[Desktop Entry]
31 -Encoding=UTF-8
32 -Version=1.0
33 -Type=Application
34 -Terminal=true
35 -Exec=%s/GSAS
36 -Name=GSAS
37 -Icon=%s/GSAS.png
38 -''' % (gsaspath,gsaspath))
39 - os.chmod(os.path.expanduser('~/Desktop/GSAS.desktop'),
40 - stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH)