3
from distutils.core import setup
8
#from DistUtilsExtra.distutils_extra import build_extra, build_l10n, build_icons, build_help
10
from DistUtilsExtra.command import *
13
changelog = "debian/changelog"
14
if os.path.exists(changelog):
15
head=open(changelog).readline()
16
match = re.compile(".*\((.*)\).*").match(head)
18
version = match.group(1)
19
f=open("APTonCD/core/version.py","w")
20
f.write("APP_VERSION=\"%s\"\n" % version)
23
GETTEXT_NAME="aptoncd"
25
for filepath in glob.glob("po/mo/*/LC_MESSAGES/*.mo"):
26
lang = filepath[len("po/mo/"):]
27
targetpath = os.path.dirname(os.path.join("share/locale",lang))
28
I18NFILES.append((targetpath, [filepath]))
30
os.system("intltool-merge -d po data/aptoncd.desktop.in build/aptoncd.desktop")
34
packages=['APTonCD', 'APTonCD.core', 'APTonCD.create', 'APTonCD.restore', 'APTonCD.ui', 'APTonCD.widgets'],
37
('share/aptoncd/glade/', glob.glob('data/glade/*.glade')),
38
('share/applications', ["build/aptoncd.desktop"]),
39
('share/aptoncd', ["data/loading.gif","restorefiles.py","data/burners"])]+I18NFILES,
41
cmdclass = { "build" : build_extra.build_extra,
42
#"build_l10n" : build_l10n.build_extra,
43
"build_help" : build_help.build_help,
44
"build_icons" : build_icons.build_icons }