~qtjambi-community/ubuntu/quantal/qtjambi-snapshot/debian

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
# natty (and before) has extra dependency: gcj-jre-headless
#  so that ca-certificate-java will install, it has an issue that it needs
#  the Java VM to be working during install.

# lucid does not have dependency: libqtwebkit-dev
# sed -e '/^[ ]*libqtwebkit-dev.*/d' -i control

# hardy (and before) oneiric (and after)
#   does not have libqt4-sql-sqlite2 (which is older than libqt4-sql-sqlite)
# sed -e '/^[ ]*libqt4-sql-sqlite2.*/d' -i control

# oneiric (and above) does not need: gcj-jre-headless

# libxml-commons-resolver1.1-java
#  this dep fixes error/warning during Ant XSLT processing before generator.

# ANT 1.7.x retro patch

# TODO
# Symlinks for all foobar.jar => foobar-1.2.3.jar in usr/share/java

sed -e 's/\(propertyHelper.getProperty(\)/\1(String) null, /'    -i src/java/ant-qtjambi/com/trolltech/tools/ant/*.java
sed -e 's/\(propertyHelper.setProperty(\)/\1(String) null, /'    -i src/java/ant-qtjambi/com/trolltech/tools/ant/*.java
sed -e 's/\(propertyHelper.setNewProperty(\)/\1(String) null, /' -i src/java/ant-qtjambi/com/trolltech/tools/ant/*.java

sed -e 's/\(props.getProperty(\)/\1(String) null, /'    -i src/java/ant-qtjambi/com/trolltech/tools/ant/*.java
sed -e 's/\(props.setProperty(\)/\1(String) null, /'    -i src/java/ant-qtjambi/com/trolltech/tools/ant/*.java
sed -e 's/\(props.setNewProperty(\)/\1(String) null, /' -i src/java/ant-qtjambi/com/trolltech/tools/ant/*.java

sed -e 's/\(equals(h.getProperty(\)/\1(String) null, /'       -i src/java/ant-qtjambi/com/trolltech/tools/ant/LibraryEntry.java


# TODO
# run unit tests for all and store reports.
# check over licencing information
# improve documentation (license/changelog/getting started)

# FIX why dist/LICENSE* don't end up packaged.  We edited debian/docs
#  maybe we need debian/<package>.docs ?

# Do QA on packaging, check there is at least one file matches by
#  globs for *.install.

# Update bzr_push.sh script to check we are at current HEAD before it starts
# to do its thing.
# Try and find a way not to commit so many times into main tree ?  We kind
# of want to commit once in the main tree then modify state, then commit
# differences to sub-branch.  Then revert to original.  Then work on next.


# Workflow reminders
#


# Extra packages for Junit tests
apt-get install x11-xserver-utils xnest xserver-xephyr


# To test recipe locally, follow pbuilder setup (wiki GettingStarted)
# $HOME/.pbuilderrc
COMPONENTS="main universe multiverse restricted"
export http_proxy="http://172.16.32.2:3128"
# sudo pbuilder create

$ cat qtjambi-snapshot.recipe
# bzr-builder format 0.3 deb-version 0.0~{time}+bzr{revno}
lp:~qtjambi-community/qtjambi/master
nest debian lp:~qtjambi-community/ubuntu/oneiric/qtjambi-snapshot/debian debian


# At each Ubuntu release in launchpad from https://code.launchpad.net/~qtjambi-community/qtjambi/master
# Click: Create packaging recipe
# Fill in as:
#   name: qtjambi-snapshot-oneiric (change to series name)
#   description: (left blank)
#   owner: qtjambi-community (change it to this)
#   Built Daily: tick
#   Use an existing PPA: Qt Jambi Snapshots (change it to this)
#   Default distribution series: (select one as appropiate)
#   Recipe text (replace "oneiric" with the name) :
#    bzr-builder format 0.3 deb-version 0.0~{time}+bzr{revno}
#    lp:~qtjambi-community/qtjambi/master
#    nest debian lp:~qtjambi-community/ubuntu/oneiric/qtjambi-snapshot/debian debian

#



# bzr dailydeb qtjambi-snapshot.recipe tmpdir
# sudo pbuilder build tmpdir/*.dsc


# Launchpad has master
#  bzr branch lp:~qtjambi-community/qtjambi/master