Ejemplo n.º 1
0
#!/usr/bin/env python
try:
    from sugar.activity import bundlebuilder
    bundlebuilder.start("LucasActivity")
except ImportError:
    import os
    os.system("find ./ | sed 's,^./,gtktest.activity/,g' > MANIFEST")
    os.system('rm gtktest.xo')
    os.chdir('..')
    os.system('zip -r gtktest.xo gtktest.activity')
    os.system('mv gtktest.xo ./gtktest.activity')
    os.chdir('gtktest.activity')
Ejemplo n.º 2
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
from ConfigParser import ConfigParser
parser = ConfigParser()
parser.read("activity/activity.info")
name = parser.get('Activity', 'name')
bundlebuilder.start(name)
Ejemplo n.º 3
0
#!/usr/bin/python
from sugar.activity import bundlebuilder

bundlebuilder.start("VBA")
Ejemplo n.º 4
0
                if not os.path.isdir(mo_path):
                    os.makedirs(mo_path)

                mo_file = os.path.join(mo_path, 'org.laptop.TurtleArtActivity.mo')
                retcode = subprocess.call(['msgfmt', '--output-file=%s' % mo_file, file_name])
                if retcode:
                    print 'ERROR - msgfmt failed with return code %i.' % retcode

    DATA_FILES = [
        ('activity', glob.glob('activity/*')),
        ('icons', glob.glob('icons/*')),
        ('images', glob.glob('images/*')),
        ('/usr/share/applications', ['turtleblocks.desktop'])
    ]

    setup(name='Turtle Art',
          description="A LOGO-like tool for teaching programming",
          author="Walter Bender",
          author_email="*****@*****.**",
          version='0.9.4',
          packages=['TurtleArt', 'TurtleArt.util'],
          scripts=['turtleblocks'],
          data_files=DATA_FILES,
          cmdclass={"install": post_install}
          )
else:
    from sugar.activity import bundlebuilder

    if __name__ == "__main__":
        bundlebuilder.start()
Ejemplo n.º 5
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("tetrismat")
Ejemplo n.º 6
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("MotionCapture")
Ejemplo n.º 7
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Poll')
Ejemplo n.º 8
0
#!/usr/bin/python

# Make the MANIFEST file.  The contents of the activity folder and the NEWS and MANIFEST
# files are already included in the .xo file which the bundlebuilder creates, so don't
# add them to the manifest file.
import os
##os.system("find ./ -name 'activity' -prune -o -name 'NEWS' \
##                                    -prune -o -name 'MANIFEST' \
##                                    -prune -o -name '.svn' \
##                                    -prune -o -name '*.pyc' \
##                                    -prune -o -name '*.xo' \
##                                    -prune -o -name '*.swp' \
##                                    -prune -o -name '.git*' \
##                                    -prune -o -type f \
##                   -print > MANIFEST") 

from sugar.activity import bundlebuilder
bundlebuilder.start("SocialCalcActivity")
Ejemplo n.º 9
0
#!/usr/bin/env python

# Copyright (C) 2009, Simon Schampijer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

bundlebuilder.start("Kiwix")
Ejemplo n.º 10
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("Lemonade")
Ejemplo n.º 11
0
#!/usr/bin/env python
try:
	from sugar.activity import bundlebuilder
	bundlebuilder.start("ClassroomPresenter")
except ImportError:
	import os
	#os.system("find ./ | sed 's,^./,ClassroomPresenter.activity/,g' > MANIFEST")
	os.system('rm ClassroomPresenter.xo')
	os.chdir('..')
	os.system('zip -r ClassroomPresenter.xo ClassroomPresenter.activity')
	os.system('mv ClassroomPresenter.xo ./ClassroomPresenter.activity')
	os.chdir('ClassroomPresenter.activity')
Ejemplo n.º 12
0
#!/usr/bin/env python

# Make the MANIFEST file.  The contents of the activity folder and the NEWS and MANIFEST
# files are already included in the .xo file which the bundlebuilder creates, so don't
# add them to the manifest file.
import os
os.system("find ./ -name 'activity' -prune -o -name 'NEWS' -prune -o -name 'MANIFEST' -prune \
-o -name '.svn' -prune -o -name '*.pyc' -prune -o -name '*.xo' -prune -o -type f -print > MANIFEST")

from sugar.activity import bundlebuilder
bundlebuilder.start("Geoquiz")
Ejemplo n.º 13
0
#!/usr/bin/python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
bundlebuilder.start('VncLauncher')
Ejemplo n.º 14
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
bundlebuilder.start("mailactivity")
Ejemplo n.º 15
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("icaro")
Ejemplo n.º 16
0
#!/usr/bin/env python
try:
	from sugar.activity import bundlebuilder
	bundlebuilder.start("BundleActivity")
except ImportError:
	import os
	os.system("find ./ | sed 's,^./,gtktest.activity/,g' > MANIFEST")
	os.system('rm gtktest.xo')
	os.chdir('..')
	os.system('zip -r gtktest.xo gtktest.activity')
	os.system('mv gtktest.xo ./gtktest.activity')
	os.chdir('gtktest.activity')
Ejemplo n.º 17
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

try:
  from sugar.activity import bundlebuilder
  bundlebuilder.start("JokeMachine")
except ImportError:
  print 'Cannot find a working sugar environment'

Ejemplo n.º 18
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder

bundlebuilder.start("Bridge")
Ejemplo n.º 19
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
bundlebuilder.start('JigsawPuzzle')
Ejemplo n.º 20
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("PyEyes")
Ejemplo n.º 21
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
bundlebuilder.start("SliderPuzzle")
Ejemplo n.º 22
0
#!/usr/bin/env python
try:
    from sugar.activity import bundlebuilder
    bundlebuilder.start("x2o")
except ImportError:
    import os
    os.system("find ./ | sed 's,^./,x2o.activity/,g' > MANIFEST")
    os.chdir('..')
    os.system('zip -r x2o.xo x2o.activity')
    os.system('mv x2o.xo ./x2o.activity')
    os.chdir('x2o.activity')

Ejemplo n.º 23
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
bundlebuilder.start("Bridge")

Ejemplo n.º 24
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

bundlebuilder.start('Karma')
Ejemplo n.º 25
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
	bundlebuilder.start("Landmine")
Ejemplo n.º 26
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("%(name)s")
Ejemplo n.º 27
0
#!/usr/bin/python
from sugar.activity import bundlebuilder
bundlebuilder.start("OnePageWikiActivity")
Ejemplo n.º 28
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

if __name__ == "__main__":
	bundlebuilder.start('ceibalchess')
Ejemplo n.º 29
0
#!/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

import os

os.system("make")

bundlebuilder.start("map")
Ejemplo n.º 30
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("conozco-paraguay")
Ejemplo n.º 31
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder

if __name__ == "__main__":
    bundlebuilder.start("Parachute")
Ejemplo n.º 32
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("KittyCount")
Ejemplo n.º 33
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("SpaceMath")
Ejemplo n.º 34
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Paint')
Ejemplo n.º 35
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("StarChart")
Ejemplo n.º 36
0
#!/usr/bin/env python

from sugar.activity import bundlebuilder

bundlebuilder.start('Gambiarra')
Ejemplo n.º 37
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

bundlebuilder.start('Karma')
Ejemplo n.º 38
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("TurtleMachine")
Ejemplo n.º 39
0
#!/usr/bin/python
from sugar.activity import bundlebuilder
bundlebuilder.start('Frotz')

Ejemplo n.º 40
0
#!/usr/bin/env python

from sugar.activity import bundlebuilder
bundlebuilder.start('Gambiarra')
Ejemplo n.º 41
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

bundlebuilder.start('ViewSlides')

Ejemplo n.º 42
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("Blocku")
Ejemplo n.º 43
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Tuxmath')
Ejemplo n.º 44
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("mathquwi")
Ejemplo n.º 45
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

try:
    from sugar.activity import bundlebuilder
    bundlebuilder.start("JokeMachine")
except ImportError:
    print 'Cannot find a working sugar environment'
Ejemplo n.º 46
0
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("ajedrezactivity")
Ejemplo n.º 47
0
#!/usr/bin/python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
bundlebuilder.start('VncServer')



Ejemplo n.º 48
0
    for name, func in globals().items():
        if name.startswith('cmd_'):
            print "%-20s %s" % (name.replace('cmd_', ''), func.__doc__)

    print '\n(Type "./setup.py <command> --help" for help about a ' \
          'particular command\'s options.'


def start(bundle_name=None):
    if bundle_name:
        logging.warn("bundle_name deprecated, now comes from activity.info")

    parser = OptionParser(usage='[action] [options]')
    parser.disable_interspersed_args()
    (options_, args) = parser.parse_args()

    # config = Config()

    try:
        globals()['cmd_' + args[0]](args[1:])
    except (KeyError, IndexError):
        print_commands()


if __name__ == "__main__":
    try:
        from sugar.activity import bundlebuilder
        bundlebuilder.start()
    except ImportError:
        start()
Ejemplo n.º 49
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("Valorar")
Ejemplo n.º 50
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("TatetiMesh")
Ejemplo n.º 51
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("FoodForce2")
Ejemplo n.º 52
0
            flag_file.write(last_version)
            flag_file.close()

            # Copy activity.info file
            print "Create activity.info for", language
            shutil.copyfile('activity/activity.info.' + language,
                            'activity/activity.info')

            # Create MANIFEST
            print "Create MANIFEST"
            list_git_files = subprocess.check_output(['git', 'ls-files'])
            manifest_file = codecs.open('MANIFEST', 'w', encoding='utf-8')
            manifest_file.write('activity/activity.info\n')
            for name_file in list_git_files:
                manifest_file.write(name_file)
            for name_file in list_data_files:
                if not os.path.isdir(name_file):
                    manifest_file.write(name_file + '\n')
            manifest_file.close()

            prepare_ok = True
        else:
            print "MD5 check error"

if sys.argv[1] == 'fix_manifest':
    print "Don't use fix_manifest. The MANIFEST is build in prepare stage"
    prepare_ok = False

if prepare_ok:
    bundlebuilder.start('Wikipedia')
Ejemplo n.º 53
0
#!/usr/bin/python
from sugar.activity import bundlebuilder

bundlebuilder.start("LeerPendrive")