2007-06-24 14:43:48 +02:00
|
|
|
# Copyright (C) 2006-2007 Red Hat, Inc.
|
2006-11-27 17:43:44 +01:00
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the
|
|
|
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
# Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
import zipfile
|
|
|
|
import shutil
|
2007-03-23 15:26:37 +01:00
|
|
|
import subprocess
|
|
|
|
import re
|
2007-08-18 12:48:40 +02:00
|
|
|
import gettext
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-02-03 11:10:49 +01:00
|
|
|
from sugar import env
|
2007-09-20 18:20:21 +02:00
|
|
|
from sugar.bundle.activitybundle import ActivityBundle
|
2006-11-27 17:43:44 +01:00
|
|
|
|
|
|
|
class _SvnFileList(list):
|
2006-12-04 20:12:24 +01:00
|
|
|
def __init__(self):
|
|
|
|
f = os.popen('svn list -R')
|
|
|
|
for line in f.readlines():
|
|
|
|
filename = line.strip()
|
|
|
|
if os.path.isfile(filename):
|
|
|
|
self.append(filename)
|
|
|
|
f.close()
|
2006-11-27 17:43:44 +01:00
|
|
|
|
|
|
|
class _GitFileList(list):
|
2006-12-04 20:12:24 +01:00
|
|
|
def __init__(self):
|
|
|
|
f = os.popen('git-ls-files')
|
|
|
|
for line in f.readlines():
|
|
|
|
filename = line.strip()
|
|
|
|
if not filename.startswith('.'):
|
|
|
|
self.append(filename)
|
|
|
|
f.close()
|
2007-02-07 11:33:24 +01:00
|
|
|
|
|
|
|
class _DefaultFileList(list):
|
|
|
|
def __init__(self):
|
|
|
|
for name in os.listdir('activity'):
|
|
|
|
if name.endswith('.svg'):
|
2007-02-08 22:27:03 +01:00
|
|
|
self.append(os.path.join('activity', name))
|
2007-02-07 11:33:24 +01:00
|
|
|
|
|
|
|
self.append('activity/activity.info')
|
|
|
|
|
2007-07-02 17:31:39 +02:00
|
|
|
if os.path.isfile(_get_source_path('NEWS')):
|
|
|
|
self.append('NEWS')
|
2007-06-29 22:52:25 +02:00
|
|
|
|
2007-07-10 17:06:03 +02:00
|
|
|
class _ManifestFileList(_DefaultFileList):
|
2007-07-10 14:43:56 +02:00
|
|
|
def __init__(self, manifest):
|
2007-07-10 17:06:03 +02:00
|
|
|
_DefaultFileList.__init__(self)
|
2007-02-08 22:27:03 +01:00
|
|
|
self.append(manifest)
|
2007-02-07 16:55:22 +01:00
|
|
|
|
2007-02-08 22:27:03 +01:00
|
|
|
f = open(manifest,'r')
|
2006-12-04 21:44:15 +01:00
|
|
|
for line in f.readlines():
|
2007-03-26 12:38:34 +02:00
|
|
|
stripped_line = line.strip()
|
2007-07-10 17:06:03 +02:00
|
|
|
if stripped_line and not stripped_line in self:
|
2007-03-26 12:38:34 +02:00
|
|
|
self.append(stripped_line)
|
2007-02-07 11:33:24 +01:00
|
|
|
f.close()
|
|
|
|
|
2006-11-27 17:43:44 +01:00
|
|
|
def _extract_bundle(source_file, dest_dir):
|
2006-12-04 20:12:24 +01:00
|
|
|
if not os.path.exists(dest_dir):
|
|
|
|
os.mkdir(dest_dir)
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2006-12-04 20:12:24 +01:00
|
|
|
zf = zipfile.ZipFile(source_file)
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2006-12-04 20:12:24 +01:00
|
|
|
for i, name in enumerate(zf.namelist()):
|
|
|
|
path = os.path.join(dest_dir, name)
|
|
|
|
|
|
|
|
if not os.path.exists(os.path.dirname(path)):
|
|
|
|
os.makedirs(os.path.dirname(path))
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2006-12-04 20:12:24 +01:00
|
|
|
outfile = open(path, 'wb')
|
|
|
|
outfile.write(zf.read(name))
|
|
|
|
outfile.flush()
|
|
|
|
outfile.close()
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-07-02 17:31:39 +02:00
|
|
|
def _get_source_path(path=None):
|
|
|
|
if path:
|
|
|
|
return os.path.join(os.getcwd(), path)
|
|
|
|
else:
|
|
|
|
return os.getcwd()
|
2006-11-27 17:43:44 +01:00
|
|
|
|
|
|
|
def _get_bundle_dir():
|
2006-12-04 20:12:24 +01:00
|
|
|
bundle_name = os.path.basename(_get_source_path())
|
|
|
|
return bundle_name + '.activity'
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-06-21 14:54:09 +02:00
|
|
|
def _get_package_name(bundle_name):
|
2007-09-20 18:20:21 +02:00
|
|
|
bundle = ActivityBundle(_get_source_path())
|
2007-06-21 14:54:09 +02:00
|
|
|
zipname = '%s-%d.xo' % (bundle_name, bundle.get_activity_version())
|
2006-12-04 20:12:24 +01:00
|
|
|
return zipname
|
2006-11-27 17:43:44 +01:00
|
|
|
|
|
|
|
def _delete_backups(arg, dirname, names):
|
2006-12-04 20:12:24 +01:00
|
|
|
for name in names:
|
|
|
|
if name.endswith('~') or name.endswith('pyc'):
|
|
|
|
os.remove(os.path.join(dirname, name))
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-10-09 13:15:06 +02:00
|
|
|
def _get_bundle_id():
|
2007-09-20 18:20:21 +02:00
|
|
|
bundle = ActivityBundle(_get_source_path())
|
2007-10-09 13:15:06 +02:00
|
|
|
return bundle.get_bundle_id()
|
2007-07-29 12:20:45 +02:00
|
|
|
|
2006-11-27 17:43:44 +01:00
|
|
|
def cmd_help():
|
2006-12-04 20:12:24 +01:00
|
|
|
print 'Usage: \n\
|
2006-12-21 14:21:58 +01:00
|
|
|
setup.py dev - setup for development \n\
|
|
|
|
setup.py dist - create a bundle package \n\
|
|
|
|
setup.py install [dirname] - install the bundle \n\
|
|
|
|
setup.py uninstall [dirname] - uninstall the bundle \n\
|
2007-03-23 15:26:37 +01:00
|
|
|
setup.py genpot - generate the gettext pot file \n\
|
2007-08-18 12:48:40 +02:00
|
|
|
setup.py genl10n - generate localization files \n\
|
2006-12-21 14:21:58 +01:00
|
|
|
setup.py clean - clean the directory \n\
|
2007-06-29 01:53:57 +02:00
|
|
|
setup.py release - do a new release of the bundle \n\
|
2006-12-21 14:21:58 +01:00
|
|
|
setup.py help - print this message \n\
|
2006-11-27 17:43:44 +01:00
|
|
|
'
|
|
|
|
|
|
|
|
def cmd_dev():
|
2007-03-18 13:48:34 +01:00
|
|
|
bundle_path = env.get_user_activities_path()
|
|
|
|
if not os.path.isdir(bundle_path):
|
|
|
|
os.mkdir(bundle_path)
|
|
|
|
bundle_path = os.path.join(bundle_path, _get_bundle_dir())
|
2006-12-04 20:12:24 +01:00
|
|
|
try:
|
|
|
|
os.symlink(_get_source_path(), bundle_path)
|
|
|
|
except OSError:
|
|
|
|
if os.path.islink(bundle_path):
|
|
|
|
print 'ERROR - The bundle has been already setup for development.'
|
|
|
|
else:
|
|
|
|
print 'ERROR - A bundle with the same name is already installed.'
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-03-23 15:26:37 +01:00
|
|
|
def _get_file_list(manifest):
|
2007-02-08 22:27:03 +01:00
|
|
|
if os.path.isfile(manifest):
|
2007-03-23 15:26:37 +01:00
|
|
|
return _ManifestFileList(manifest)
|
2007-02-07 11:33:24 +01:00
|
|
|
elif os.path.isdir('.git'):
|
2007-03-23 15:26:37 +01:00
|
|
|
return _GitFileList()
|
2007-02-07 11:33:24 +01:00
|
|
|
elif os.path.isdir('.svn'):
|
2007-03-23 15:26:37 +01:00
|
|
|
return _SvnFileList()
|
2007-02-07 11:33:24 +01:00
|
|
|
else:
|
2007-03-23 15:26:37 +01:00
|
|
|
return _DefaultFileList()
|
|
|
|
|
2007-07-29 15:20:19 +02:00
|
|
|
def _get_po_list(manifest):
|
|
|
|
file_list = {}
|
|
|
|
|
|
|
|
po_regex = re.compile("po/(.*)\.po$")
|
|
|
|
for file_name in _get_file_list(manifest):
|
|
|
|
match = po_regex.match(file_name)
|
|
|
|
if match:
|
|
|
|
file_list[match.group(1)] = file_name
|
|
|
|
|
|
|
|
return file_list
|
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
def _get_l10n_list(manifest):
|
|
|
|
l10n_list = []
|
2007-07-29 15:20:19 +02:00
|
|
|
|
|
|
|
for lang in _get_po_list(manifest).keys():
|
2007-10-09 13:15:06 +02:00
|
|
|
filename = _get_bundle_id() + '.mo'
|
2007-08-18 12:48:40 +02:00
|
|
|
l10n_list.append(os.path.join('locale', lang, 'LC_MESSAGES', filename))
|
|
|
|
l10n_list.append(os.path.join('locale', lang, 'activity.linfo'))
|
2007-07-29 15:20:19 +02:00
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
return l10n_list
|
|
|
|
|
|
|
|
def _get_activity_name():
|
|
|
|
info_path = os.path.join(_get_source_path(), 'activity', 'activity.info')
|
|
|
|
f = open(info_path,'r')
|
|
|
|
info = f.read()
|
|
|
|
f.close()
|
|
|
|
match = re.search('^name\s*=\s*(.*)$', info, flags = re.MULTILINE)
|
|
|
|
return match.group(1)
|
2007-03-25 11:42:26 +02:00
|
|
|
|
2007-06-21 14:54:09 +02:00
|
|
|
def cmd_dist(bundle_name, manifest):
|
2007-08-18 12:48:40 +02:00
|
|
|
cmd_genl10n(bundle_name, manifest)
|
2007-03-23 15:26:37 +01:00
|
|
|
file_list = _get_file_list(manifest)
|
2006-12-04 20:12:24 +01:00
|
|
|
|
2007-06-21 14:54:09 +02:00
|
|
|
zipname = _get_package_name(bundle_name)
|
2006-12-04 20:12:24 +01:00
|
|
|
bundle_zip = zipfile.ZipFile(zipname, 'w', zipfile.ZIP_DEFLATED)
|
2007-07-29 15:20:19 +02:00
|
|
|
base_dir = bundle_name + '.activity'
|
2006-12-04 20:12:24 +01:00
|
|
|
|
|
|
|
for filename in file_list:
|
2007-07-29 15:20:19 +02:00
|
|
|
bundle_zip.write(filename, os.path.join(base_dir, filename))
|
2006-12-04 20:12:24 +01:00
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
for filename in _get_l10n_list(manifest):
|
2007-07-29 15:20:19 +02:00
|
|
|
bundle_zip.write(filename, os.path.join(base_dir, filename))
|
2007-03-23 20:13:41 +01:00
|
|
|
|
2006-12-04 20:12:24 +01:00
|
|
|
bundle_zip.close()
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2008-03-30 23:03:39 +02:00
|
|
|
def cmd_install(bundle_name, manifest, path):
|
2007-06-25 11:29:46 +02:00
|
|
|
cmd_dist(bundle_name, manifest)
|
2008-03-30 23:03:39 +02:00
|
|
|
cmd_uninstall(path)
|
2007-06-21 14:54:09 +02:00
|
|
|
|
2008-03-30 23:03:39 +02:00
|
|
|
_extract_bundle(_get_package_name(bundle_name), path)
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2008-03-30 23:03:39 +02:00
|
|
|
def cmd_uninstall(path):
|
|
|
|
path = os.path.join(path, _get_bundle_dir())
|
2006-12-04 20:12:24 +01:00
|
|
|
if os.path.isdir(path):
|
|
|
|
shutil.rmtree(path)
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-06-21 17:23:32 +02:00
|
|
|
def cmd_genpot(bundle_name, manifest):
|
|
|
|
po_path = os.path.join(_get_source_path(), 'po')
|
|
|
|
if not os.path.isdir(po_path):
|
|
|
|
os.mkdir(po_path)
|
2007-06-18 10:05:11 +02:00
|
|
|
|
2007-03-23 15:26:37 +01:00
|
|
|
python_files = []
|
|
|
|
file_list = _get_file_list(manifest)
|
|
|
|
for file_name in file_list:
|
|
|
|
if file_name.endswith('.py'):
|
|
|
|
python_files.append(file_name)
|
2007-06-26 10:43:49 +02:00
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
# First write out a stub .pot file containing just the translated
|
|
|
|
# activity name, then have xgettext merge the rest of the
|
|
|
|
# translations into that. (We can't just append the activity name
|
|
|
|
# to the end of the .pot file afterwards, because that might
|
|
|
|
# create a duplicate msgid.)
|
2007-06-26 10:43:49 +02:00
|
|
|
pot_file = os.path.join('po', '%s.pot' % bundle_name)
|
2007-08-18 12:48:40 +02:00
|
|
|
activity_name = _get_activity_name()
|
|
|
|
escaped_name = re.sub('([\\\\"])', '\\\\\\1', activity_name)
|
|
|
|
f = open(pot_file, 'w')
|
|
|
|
f.write('#: activity/activity.info:2\n')
|
|
|
|
f.write('msgid "%s"\n' % escaped_name)
|
|
|
|
f.write('msgstr ""\n')
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
args = [ 'xgettext', '--join-existing', '--language=Python',
|
2007-09-08 19:40:22 +02:00
|
|
|
'--keyword=_', '--add-comments=TRANS:', '--output=%s' % pot_file ]
|
2007-06-26 10:43:49 +02:00
|
|
|
|
2007-03-23 15:26:37 +01:00
|
|
|
args += python_files
|
|
|
|
retcode = subprocess.call(args)
|
|
|
|
if retcode:
|
|
|
|
print 'ERROR - xgettext failed with return code %i.' % retcode
|
|
|
|
|
2007-06-26 10:43:49 +02:00
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
def cmd_genl10n(bundle_name, manifest):
|
2007-06-21 17:23:32 +02:00
|
|
|
source_path = _get_source_path()
|
2007-08-18 12:48:40 +02:00
|
|
|
activity_name = _get_activity_name()
|
2007-06-21 17:23:32 +02:00
|
|
|
|
2007-07-29 15:20:19 +02:00
|
|
|
po_list = _get_po_list(manifest)
|
|
|
|
for lang in po_list.keys():
|
|
|
|
file_name = po_list[lang]
|
2007-06-21 17:23:32 +02:00
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
localedir = os.path.join(source_path, 'locale', lang)
|
|
|
|
mo_path = os.path.join(localedir, 'LC_MESSAGES')
|
2007-07-29 15:20:19 +02:00
|
|
|
if not os.path.isdir(mo_path):
|
|
|
|
os.makedirs(mo_path)
|
2007-06-21 17:23:32 +02:00
|
|
|
|
2007-10-09 13:15:06 +02:00
|
|
|
mo_file = os.path.join(mo_path, "%s.mo" % _get_bundle_id())
|
2007-07-29 15:20:19 +02:00
|
|
|
args = ["msgfmt", "--output-file=%s" % mo_file, file_name]
|
|
|
|
retcode = subprocess.call(args)
|
|
|
|
if retcode:
|
|
|
|
print 'ERROR - msgfmt failed with return code %i.' % retcode
|
2007-03-23 15:26:37 +01:00
|
|
|
|
2007-08-18 12:48:40 +02:00
|
|
|
cat = gettext.GNUTranslations(open(mo_file, 'r'))
|
|
|
|
translated_name = cat.gettext(activity_name)
|
|
|
|
linfo_file = os.path.join(localedir, 'activity.linfo')
|
|
|
|
f = open(linfo_file, 'w')
|
|
|
|
f.write('[Activity]\nname = %s\n' % translated_name)
|
|
|
|
f.close()
|
|
|
|
|
2007-06-29 01:53:57 +02:00
|
|
|
def cmd_release(bundle_name, manifest):
|
|
|
|
if not os.path.isdir('.git'):
|
|
|
|
print 'ERROR - this command works only for git repositories'
|
|
|
|
|
2007-07-17 22:28:40 +02:00
|
|
|
retcode = subprocess.call(['git', 'pull'])
|
|
|
|
if retcode:
|
|
|
|
print 'ERROR - cannot pull from git'
|
|
|
|
|
2007-06-29 01:53:57 +02:00
|
|
|
print 'Bumping activity version...'
|
|
|
|
|
|
|
|
info_path = os.path.join(_get_source_path(), 'activity', 'activity.info')
|
|
|
|
f = open(info_path,'r')
|
|
|
|
info = f.read()
|
|
|
|
f.close()
|
|
|
|
|
2007-07-16 00:57:14 +02:00
|
|
|
exp = re.compile('activity_version\s?=\s?([0-9]*)')
|
2007-06-29 01:53:57 +02:00
|
|
|
match = re.search(exp, info)
|
|
|
|
version = int(match.group(1)) + 1
|
|
|
|
info = re.sub(exp, 'activity_version = %d' % version, info)
|
|
|
|
|
|
|
|
f = open(info_path, 'w')
|
|
|
|
f.write(info)
|
|
|
|
f.close()
|
|
|
|
|
2007-07-08 15:49:30 +02:00
|
|
|
news_path = os.path.join(_get_source_path(), 'NEWS')
|
|
|
|
|
|
|
|
if os.environ.has_key('SUGAR_NEWS'):
|
2007-07-08 16:04:21 +02:00
|
|
|
print 'Update NEWS.sugar...'
|
2007-07-08 15:49:30 +02:00
|
|
|
|
|
|
|
sugar_news_path = os.environ['SUGAR_NEWS']
|
|
|
|
if os.path.isfile(sugar_news_path):
|
|
|
|
f = open(sugar_news_path,'r')
|
|
|
|
sugar_news = f.read()
|
|
|
|
f.close()
|
|
|
|
else:
|
|
|
|
sugar_news = ''
|
|
|
|
|
|
|
|
sugar_news += '%s - %d\n\n' % (bundle_name, version)
|
|
|
|
|
|
|
|
f = open(news_path,'r')
|
2007-07-09 19:55:06 +02:00
|
|
|
for line in f.readlines():
|
|
|
|
if len(line.strip()) > 0:
|
2007-07-08 15:49:30 +02:00
|
|
|
sugar_news += line
|
|
|
|
else:
|
|
|
|
break
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
sugar_news += '\n'
|
|
|
|
|
|
|
|
f = open(sugar_news_path, 'w')
|
|
|
|
f.write(sugar_news)
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
print 'Update NEWS...'
|
|
|
|
|
|
|
|
f = open(news_path,'r')
|
|
|
|
news = f.read()
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
news = '%d\n\n' % version + news
|
|
|
|
|
|
|
|
f = open(news_path, 'w')
|
|
|
|
f.write(news)
|
|
|
|
f.close()
|
|
|
|
|
2007-06-29 01:53:57 +02:00
|
|
|
print 'Committing to git...'
|
|
|
|
|
|
|
|
changelog = 'Release version %d.' % version
|
|
|
|
retcode = subprocess.call(['git', 'commit', '-a', '-m % s' % changelog])
|
|
|
|
if retcode:
|
|
|
|
print 'ERROR - cannot commit to git'
|
|
|
|
|
|
|
|
retcode = subprocess.call(['git', 'push'])
|
|
|
|
if retcode:
|
|
|
|
print 'ERROR - cannot push to git'
|
|
|
|
|
|
|
|
print 'Creating the bundle...'
|
|
|
|
cmd_dist(bundle_name, manifest)
|
|
|
|
|
|
|
|
print 'Done.'
|
|
|
|
|
2006-11-27 17:43:44 +01:00
|
|
|
def cmd_clean():
|
2006-12-21 14:17:44 +01:00
|
|
|
os.path.walk('.', _delete_backups, None)
|
2006-11-27 17:43:44 +01:00
|
|
|
|
2007-07-02 17:31:39 +02:00
|
|
|
def sanity_check():
|
|
|
|
if not os.path.isfile(_get_source_path('NEWS')):
|
|
|
|
print 'WARNING: NEWS file is missing.'
|
|
|
|
|
2007-07-13 23:31:03 +02:00
|
|
|
def start(bundle_name, manifest='MANIFEST'):
|
2007-07-02 17:31:39 +02:00
|
|
|
sanity_check()
|
|
|
|
|
2006-12-04 20:12:24 +01:00
|
|
|
if len(sys.argv) < 2:
|
|
|
|
cmd_help()
|
|
|
|
elif sys.argv[1] == 'build':
|
|
|
|
pass
|
|
|
|
elif sys.argv[1] == 'dev':
|
|
|
|
cmd_dev()
|
|
|
|
elif sys.argv[1] == 'dist':
|
2007-06-21 14:54:09 +02:00
|
|
|
cmd_dist(bundle_name, manifest)
|
2006-12-04 20:12:24 +01:00
|
|
|
elif sys.argv[1] == 'install' and len(sys.argv) == 3:
|
2007-06-21 14:54:09 +02:00
|
|
|
cmd_install(bundle_name, manifest, sys.argv[2])
|
2006-12-04 20:12:24 +01:00
|
|
|
elif sys.argv[1] == 'uninstall' and len(sys.argv) == 3:
|
|
|
|
cmd_uninstall(sys.argv[2])
|
2007-03-23 15:26:37 +01:00
|
|
|
elif sys.argv[1] == 'genpot':
|
2007-06-21 17:23:32 +02:00
|
|
|
cmd_genpot(bundle_name, manifest)
|
2007-08-18 12:48:40 +02:00
|
|
|
elif sys.argv[1] == 'genl10n':
|
|
|
|
cmd_genl10n(bundle_name, manifest)
|
2006-12-04 20:12:24 +01:00
|
|
|
elif sys.argv[1] == 'clean':
|
|
|
|
cmd_clean()
|
2007-06-29 01:53:57 +02:00
|
|
|
elif sys.argv[1] == 'release':
|
|
|
|
cmd_release(bundle_name, manifest)
|
2006-12-04 20:12:24 +01:00
|
|
|
else:
|
|
|
|
cmd_help()
|
2006-12-04 21:44:15 +01:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
start()
|