← Back to branch summary
~ubuntu-branches/ubuntu/oneiric/ejecter/oneiric-201109090806
Changes
Files
~ubuntu-branches/ubuntu/oneiric/ejecter/oneiric-201109090806
» Revision
7
:
waf
« back to all changes in this revision
Viewing changes to
waf
browse files at revision 7
compare with another revision
download diff
download tarball
view history from revision 7
Committer:
Bazaar Package Importer
Author(s):
Devid Antonio Filoni
Date:
2009-09-27 13:34:45 UTC
mfrom:
(1.1.3 upstream)
Revision ID:
james.westby@ubuntu.com-20090927133445-glbrkyl2ciclafpl
Tags: 0.2.1+karmic-gdu-bzr68-0ubuntu1
https://launchpad.net/bugs/427312
https://launchpad.net/bugs/424256
* New upstream bzr revision 68 from karmic-gdu branch (LP: #427312, #424256,
#403143).
* Drop quilt support.
* debian/control: remove libhal-dev from Build-Depends field.
* debian/control: add libgdu-dev to Build-Depends field.
* Remove debian/patches/fix_vala_compatibility.diff patch, merged upstream.
* Bump Standards-Version to 3.8.3.
files added:
po/fi.po
po/lt.po
po/pt.po
tools/prepare_pos.sh
vapi/gdu.vapi
files removed:
debian/patches
debian/patches/fix_vala_compatibility.diff
debian/patches/series
src/alternatives-gtk-2.12.vala
src/alternatives-gtk-2.14.vala
tools/fix_translators_mails.sh
vapi/gtk+-2.0.deps
vapi/gtk+-2.0.vapi
files modified:
debian/changelog
debian/control
debian/rules
po/LINGUAS
po/ar.po
po/ca.po
po/cs.po
po/da.po
po/de.po
po/el.po
po/en_AU.po
po/en_GB.po
po/es.po
po/fa.po
po/fr.po
po/gl.po
po/he.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/ko.po
po/mk.po
po/nb.po
po/nl.po
po/pl.po
po/pt_BR.po
po/ro.po
po/ru.po
po/sk.po
po/sv.po
po/tr.po
po/uk.po
po/zh_CN.po
src/about.vala
src/conf.vala
src/device.vala
src/ejecter.vala
src/wscript_build
tools/clean.sh *
tools/make_po.sh *
tools/run.sh
waf
wscript
Show diffs side-by-side
added
removed
Lines of Context:
waf
1
1
#!/usr/bin/env python
2
2
# encoding: utf-8
3
# Thomas Nagy, 2005-2008
3
# Thomas Nagy, 2005-2009
4
4
5
5
"""
6
6
Redistribution and use in source and binary forms, with or without
31
31
"""
32
32
33
33
import os, sys
34
if sys.hexversion<0x203000f: raise "Waf requires Python >= 2.3"
34
if sys.hexversion<0x203000f: raise ImportError("Waf requires Python >= 2.3")
35
35
36
36
if 'PSYCOWAF' in os.environ:
37
37
try:import psyco;psyco.full()
38
38
except:pass
39
39
40
VERSION="1.5.2"
41
REVISION="9bdedb7508a3a68a9e2e89a73bed6d5b"
42
INSTALL=sys.platform=='win32' and 'c:/temp' or '/usr/local'
43
C1='#+'
44
C2='#)'
40
VERSION="1.5.9"
41
REVISION="92e9dcf84354592025d5265e05eb8bc4"
42
INSTALL=''
43
C1='#*'
44
C2='#&'
45
45
cwd = os.getcwd()
46
46
join = os.path.join
47
47
48
WAF='waf'
49
def b(x):
50
return x
51
52
if sys.hexversion>0x300000f:
53
WAF='waf3'
54
def b(x):
55
return x.encode()
56
48
57
def err(m):
49
print ('\033[91mError: %s\033[0m' % m)
58
print(('\033[91mError: %s\033[0m' % m))
50
59
sys.exit(1)
51
60
52
61
def unpack_wafdir(dir):
55
64
while 1:
56
65
line = f.readline()
57
66
if not line: err("run waf-light from a folder containing wafadmin")
58
if line == '#==>\n':
67
if line == b('#==>\n'):
59
68
txt = f.readline()
60
69
if not txt: err(c % 1)
61
if f.readline()!='#<==\n': err(c % 2)
70
if f.readline()!=b('#<==\n'): err(c % 2)
62
71
break
63
72
if not txt: err(c % 3)
64
txt = txt[1:-1].replace(C1, '\n').replace(C2, '\r')
73
txt = txt[1:-1].replace(b(C1), b('\n')).replace(b(C2), b('\r'))
65
74
66
75
import shutil, tarfile
67
76
try: shutil.rmtree(dir)
75
84
t.write(txt)
76
85
t.close()
77
86
78
t = tarfile.open(tmp)
79
for x in t: t.extract(x)
80
t.close()
87
try:
88
t = tarfile.open(tmp)
89
for x in t: t.extract(x)
90
t.close()
91
except:
92
os.chdir(cwd)
93
try: shutil.rmtree(dir)
94
except OSError: pass
95
err("Waf cannot be unpacked, check that bzip2 support is present")
81
96
82
97
os.chmod(join('wafadmin','Tools'), 493)
83
98
84
99
os.unlink(tmp)
100
101
if sys.hexversion>0x300000f:
102
sys.path = [join(dir, 'wafadmin')] + sys.path
103
import py3kfixes
104
py3kfixes.fixdir(dir)
105
85
106
os.chdir(cwd)
86
107
87
108
def test(dir):
102
123
if w: return w
103
124
err("waf-light requires wafadmin -> export WAFDIR=/folder")
104
125
105
dir = "/lib/waf-%s-%s/" % (VERSION, REVISION)
126
dir = "/lib/%s-%s-%s/" % (WAF, VERSION, REVISION)
106
127
for i in [INSTALL,'/usr','/usr/local','/opt']:
107
128
w = test(i+dir)
108
129
if w: return w
109
130
110
131
#waf-local
111
s = '.waf-%s-%s'
132
s = '.%s-%s-%s'
112
133
if sys.platform == 'win32': s = s[1:]
113
dir = join(base, s % (VERSION, REVISION))
134
dir = join(base, s % (WAF, VERSION, REVISION))
114
135
w = test(dir)
115
136
if w: return w
116
137
125
146
126
147
import Scripting
127
148
Scripting.prepare(t, cwd, VERSION, wafdir)
149
sys.exit(0)
128
150
129
151
#==>
130
#BZh91AY&SY����J���1�B������������$ B� P� 8a~ܭ� �[hz蹍Q�l�ZKmRE��*���4n��®SS����)-kC��s������v4�j���=u�z���}�z�۶e�-`�|R���S�ݚ�=�`�4 \�P���w}�v[}�]�7�� ^���Ə�+J� }(n �"