/usr/share/quickly/templates/ubuntu-application/test/extras.sh is in quickly-ubuntu-template 12.08.1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | #!/bin/sh
cd /tmp
rm -rf test-project*
quickly create ubuntu-application test-project
# Creating bzr repository and committing
# Congrats, your new project is setup! cd /tmp/test-project/ to start hacking.
# Creating project directory test-project
cd test-project
(echo "Copyright (C) 2010 Oliver Twist <twist@example.com>" > AUTHORS)
quickly license GPL-3
sed -i 's/Exec=.*/Exec=test-project arg1 arg2/' test-project.desktop.in
quickly package --extras | sed 's/^\.\+//'
# Ubuntu packaging created in debian/
# Ubuntu package has been successfully created in ../test-project_0.1_all.deb
ls ../test-project_0.1.dsc ../test-project_0.1.tar.gz ../test-project_0.1_all.deb
# ../test-project_0.1_all.deb
# ../test-project_0.1.dsc
# ../test-project_0.1.tar.gz
## Now we want to verify that we installed things in the right place
mkdir unpacked
cd unpacked
ar p ../../test-project_0.1_all.deb data.tar.gz | tar xz
ls -F .
# opt/
# usr/
ls -F ./opt
# extras.ubuntu.com/
ls -F ./opt/extras.ubuntu.com
# test-project/
ls -F ./opt/extras.ubuntu.com/test-project
# bin/
# share/
# test_project/
# test_project-0.1.egg-info
# test_project_lib/
ls -F ./opt/extras.ubuntu.com/test-project/bin
# test-project*
ls -F ./opt/extras.ubuntu.com/test-project/share
# glib-2.0/
# gnome/
# test-project/
ls -F ./opt/extras.ubuntu.com/test-project/share/glib-2.0
# schemas/
ls -F ./opt/extras.ubuntu.com/test-project/share/glib-2.0/schemas
# gschemas.compiled
# net.launchpad.test-project.gschema.xml
ls -F ./usr
# share/
ls -F ./usr/share
# applications/
# doc/
# python/
ls -F ./usr/share/applications
# extras-test-project.desktop
## Now confirm the contents of some of these files
cat ./usr/share/applications/extras-test-project.desktop
# [Desktop Entry]
# Name=Test Project
# Comment=TestProject application
# Categories=GNOME;Utility;
# Exec=/opt/extras.ubuntu.com/test-project/bin/test-project arg1 arg2
# Icon=/opt/extras.ubuntu.com/test-project/share/test-project/media/test-project.svg
# Terminal=false
# Type=Application
grep -Rh "__test_project_data_directory__ = " ./opt/extras.ubuntu.com/test-project
# __test_project_data_directory__ = '/opt/extras.ubuntu.com/test-project/share/test-project/'
grep -Rh "locale.bindtextdomain" ./opt/extras.ubuntu.com/test-project/bin/test-project
# locale.bindtextdomain('test-project', '/opt/extras.ubuntu.com/test-project/share/locale')
grep -Rh "^import gettext" ./opt/extras.ubuntu.com/test-project
grep -Rh "XDG_DATA_DIRS" ./opt/extras.ubuntu.com/test-project/bin/test-project
# os.putenv("XDG_DATA_DIRS", "%s:%s" % ("/opt/extras.ubuntu.com/test-project/share/", os.getenv("XDG_DATA_DIRS", "/usr/local/share/:/usr/share/")))
|