Merge lp:~osomon/ubuntu-wallpapers/readme into lp:ubuntu-wallpapers

Proposed by Olivier Tilloy
Status: Merged
Merged at revision: 789
Proposed branch: lp:~osomon/ubuntu-wallpapers/readme
Merge into: lp:ubuntu-wallpapers
Diff against target: 89 lines (+85/-0)
1 file modified
README.md (+85/-0)
To merge this branch: bzr merge lp:~osomon/ubuntu-wallpapers/readme
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Iain Lane Needs Fixing
Review via email: mp+405118@code.launchpad.net

Commit message

Add detailed instructions on how to add wallpapers for a new Ubuntu release.

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote :

Thanks Olivier. Just one suggestion inline, then please merge. This is great ♥

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for working on that Olivier, the instructions are clear to me, +1 also for merging once the comment from Laney is resolved

review: Approve
lp:~osomon/ubuntu-wallpapers/readme updated
786. By Olivier Tilloy

Clarify the changes to debian/control.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'README' => 'README.md'
--- README 2007-09-19 14:48:45 +0000
+++ README.md 2021-07-06 16:14:27 +0000
@@ -0,0 +1,85 @@
1# How to add wallpapers for a new Ubuntu release
2
3## Before starting
4
5It is good practice to file a bug in Launchpad to track the addition of the wallpapers for a new Ubuntu release, against the ubuntu-wallpapers source package.
6This bug will be referenced in the changelog entry as well as in the VCS revision history.
7See e.g. https://bugs.launchpad.net/ubuntu/+source/ubuntu-wallpapers/+bug/1921139.
8
9## Sources
10
11Wallpapers typically come from two sources:
12 * the Canonical design team will provide the official wallpaper (and a greyscale variant)
13 * a selection of community-provided pictures (see https://wiki.ubuntu.com/UbuntuFreeCultureShowcase for details)
14
15## Scripts and pre-requisites
16
17There are scripts in the `scripts/` directory that partially automate the task of adding wallpapers for a new Ubuntu release. Some of these scripts assume they are being run on the target release (they call `lsb_release`), so make sure you fulfill that requirement, or you will need to hand-edit generated files (alternatively export `$LSB_OS_RELEASE` to point to a file that overwrites your host system's `/usr/lib/os-release` with the values corresponding to the new release that wallpapers are being generated for − that file is installed by the `base-files` package).
18
19Some of these scripts assume that the community-provided wallpapers are named following this convention:
20
21 SUBJECT_by_AUTHOR.EXTENSION
22
23where SUBJECT and AUTHOR may be made up several words, either dash (-) or underscore (_) separated, and EXTENSION may either be "jpg" or "png".
24
25## Disclaimer
26
27At the time of writing, this is still largely a manual (and as such, error-prone) process. A good goal would be to automate it as much as possible.
28
29## Step-by-step instructions
30
31 0) `export CODENAME=$(lsb_release -cs)`
32
331a) get the new official wallpaper and replace the existing `warty-final-ubuntu.png` with it
341b) get the new greyscale official wallpaper and copy it at the root of this branch
351c) get the community wallpapers for the upcoming Ubuntu release (codenamed `$CODENAME`) and unpack them in a staging subfolder (e.g. named `staging/`) inside this branch
36
37 2) create `$CODENAME-wallpapers.xml.in` (which references only the community wallpapers):
38
39 cd staging
40 ../scripts/generate-xml.sh > ../$CODENAME-wallpapers.xml.in
41 cd ..
42
43 3) now copy the greyscale official wallpaper to the `staging/` directory
44
45 4) create `contest/$CODENAME.xml` (which references both the community wallpapers and the greyscale official one):
46
47 cd staging
48 ../scripts/update-background.py > ../contest/$CODENAME.xml
49 cd ..
50
51 5) create `debian/ubuntu-wallpapers-$CODENAME.install` listing all relevant files:
52
53 INSTALL_FILE=debian/ubuntu-wallpapers-$CODENAME.install
54 for i in $(ls staging); do echo usr/share/backgrounds/$i >> $INSTALL_FILE; done
55 echo usr/share/gnome-background-properties/$CODENAME-wallpapers.xml >> $INSTALL_FILE
56 echo usr/share/backgrounds/contest/$CODENAME.xml >> $INSTALL_FILE
57
58 6) move all the files from the staging folder to the root of the branch, and delete the empty folder:
59
60 mv staging/* ./
61 rmdir staging
62
63 7) update `po/POTFILES.in`:
64
65 echo $CODENAME-wallpapers.xml.in | sort -m po/POTFILES.in - > po/POTFILES.in.new
66 mv po/POTFILES.in.new po/POTFILES.in
67
68 8) update the translation template (`po/ubuntu-wallpapers.pot`):
69
70 cd po
71 intltool-update -p -g ubuntu-wallpapers
72 cd ..
73
74 9) update `debian/ubuntu-wallpapers.links` to change the target of the ubuntu-default-greyscale-wallpaper.png symlink
75
7610) update `debian/control`:
77 * add a new package at the end of the file named `ubuntu-wallpapers-$CODENAME`
78 * make `ubuntu-wallpapers` depend on `ubuntu-wallpapers-$CODENAME` (and remove the dependency on the previous version)
79 * add the previous version to the `Suggests` section
80
8111) update `debian/copyright` to add all the new wallpapers (community and greyscale official background) and their authors under the corresponding `License` block
82
8312) add a new `debian/changelog` entry referencing the Launchpad bug number by running `dch -v $(lsb_release -sr).1-0ubuntu1`
84
85Once this is done, don't forget to add new files to the VCS and commit using the `debian/changelog` entry and linking to the Launchpad bug (use `bzr commit --fixes="lp:NNNNNN"`).