#!/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')
#!/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)
#!/usr/bin/python from sugar.activity import bundlebuilder bundlebuilder.start("VBA")
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()
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("tetrismat")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("MotionCapture")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start('Poll')
#!/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")
#!/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")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("Lemonade")
#!/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')
#!/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")
#!/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')
#!/usr/bin/env python from sugar.activity import bundlebuilder bundlebuilder.start("mailactivity")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("icaro")
#!/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')
#!/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'
#!/usr/bin/env python from sugar.activity import bundlebuilder bundlebuilder.start("Bridge")
#!/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')
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("PyEyes")
#!/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")
#!/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')
#!/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')
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("Landmine")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("%(name)s")
#!/usr/bin/python from sugar.activity import bundlebuilder bundlebuilder.start("OnePageWikiActivity")
#!/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')
#!/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")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("conozco-paraguay")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("Parachute")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("KittyCount")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("SpaceMath")
#!/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')
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("StarChart")
#!/usr/bin/env python from sugar.activity import bundlebuilder bundlebuilder.start('Gambiarra')
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("TurtleMachine")
#!/usr/bin/python from sugar.activity import bundlebuilder bundlebuilder.start('Frotz')
#!/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')
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("Blocku")
#!/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')
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("mathquwi")
from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("ajedrezactivity")
#!/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')
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()
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("Valorar")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("TatetiMesh")
#!/usr/bin/env python from sugar.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("FoodForce2")
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')
#!/usr/bin/python from sugar.activity import bundlebuilder bundlebuilder.start("LeerPendrive")