blob: 9dbd571aeeed950b4d8848688eb9ac53112bed1f (
plain)
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
|
#!/usr/bin/python
import os
import re
from distutils.core import setup
# look/set what version we have
changelog = "../debian/changelog"
if os.path.exists(changelog):
head = open(changelog).readline()
match = re.compile(".*\((.*)\).*").match(head)
if match:
version = match.group(1)
scripts = [
'dh_xul-ext',
'install-xpi',
'xpi-pack',
'xpi-repack',
'xpi-unpack',
'moz-version',
]
if __name__ == '__main__':
setup(name='mozilla-devscripts',
version=version,
url='https://launchpad.net/mozilla-devscripts',
scripts=scripts,
py_modules=['moz_version'],
)
|