a/packaging/debian/buildppa.sh b/packaging/debian/buildppa.sh
...
...
2
# Packages needed
2
# Packages needed
3
# sudo apt-get install g++ gnupg dput lintian mini-dinstall yaclc bzr devscripts
3
# sudo apt-get install g++ gnupg dput lintian mini-dinstall yaclc bzr devscripts
4
# For the kio: (and kdesdk?)
4
# For the kio: (and kdesdk?)
5
# sudo apt-get install pkg-kde-tools  cdbs
5
# sudo apt-get install pkg-kde-tools  cdbs
6
6
7
RCLVERS=1.19.5
7
RCLVERS=1.20.0
8
LENSVERS=1.19.2.3328
8
LENSVERS=1.20.0.3519
9
SCOPEVERS=1.20.0.3519
9
PPAVERS=3
10
PPAVERS=2
10
11
11
case $RCLVERS in
12
case $RCLVERS in
12
    [23]*) PPANAME=recollexp-ppa;;
13
    [23]*) PPANAME=recollexp-ppa;;
13
    1.14*) PPANAME=recoll-ppa;;
14
    1.14*) PPANAME=recoll-ppa;;
14
    *)     PPANAME=recoll15-ppa;;
15
    *)     PPANAME=recoll15-ppa;;
15
esac
16
esac
16
#PPANAME=recollexp-ppa
17
PPANAME=recollexp-ppa
17
18
18
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
19
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
19
read rep
20
read rep
20
21
21
####### QT4
22
####### QT4
22
debdir=debianrclqt4
23
debdir=debianrclqt4
23
series4="lucid oneiric precise quantal raring saucy"
24
series="lucid oneiric precise"
24
series4="quantal raring"
25
series=""
26
if test X$series != X ; then
27
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
28
fi
25
29
26
for series in $series4 ; do
30
for series in $series ; do
31
  rm -rf recoll-${RCLVERS}/debian
32
  cp -rp ${debdir}/ recoll-${RCLVERS}/debian || exit 1
33
34
  if test -f $debdir/control-$series ; then
35
      cp -f -p $debdir/control-$series recoll-${RCLVERS}/debian/control
36
  else 
37
      cp -f -p $debdir/control recoll-${RCLVERS}/debian/control
38
  fi
39
40
  sed -e s/SERIES/${series}/g \
41
      -e s/PPAVERS/${PPAVERS}/g \
42
      < ${debdir}/changelog > recoll-${RCLVERS}/debian/changelog
43
44
  (cd recoll-${RCLVERS};debuild -S -sa)  || break
45
46
  dput $PPANAME recoll_${RCLVERS}-1~ppa${PPAVERS}~${series}1_source.changes
47
done
48
49
####### QT4 separate python packages
50
debdir=debian
51
series="quantal raring saucy"
52
series=""
53
54
if test X$series != X ; then
55
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
56
fi
57
58
for series in $series ; do
59
27
  rm -rf recoll-${RCLVERS}/debian
60
  rm -rf recoll-${RCLVERS}/debian
28
  cp -rp ${debdir}/ recoll-${RCLVERS}/debian || exit 1
61
  cp -rp ${debdir}/ recoll-${RCLVERS}/debian || exit 1
29
62
30
  if test -f $debdir/control-$series ; then
63
  if test -f $debdir/control-$series ; then
31
      cp -f -p $debdir/control-$series recoll-${RCLVERS}/debian/control
64
      cp -f -p $debdir/control-$series recoll-${RCLVERS}/debian/control
...
...
41
74
42
  dput $PPANAME recoll_${RCLVERS}-1~ppa${PPAVERS}~${series}1_source.changes
75
  dput $PPANAME recoll_${RCLVERS}-1~ppa${PPAVERS}~${series}1_source.changes
43
done
76
done
44
77
45
### KIO
78
### KIO
46
seriesk="lucid oneiric precise quantal raring"
79
series="lucid oneiric precise quantal raring"
47
seriesk=
80
series=
48
81
49
debdir=debiankio
82
debdir=debiankio
50
topdir=kio-recoll-${RCLVERS}
83
topdir=kio-recoll-${RCLVERS}
84
if test X$series != X ; then
51
test -d kio-recoll_${RCLVERS}.orig.tar.gz || \
85
    test -d kio-recoll_${RCLVERS}.orig.tar.gz || \
52
    cp -p recoll_${RCLVERS}.orig.tar.gz kio-recoll_${RCLVERS}.orig.tar.gz || \
86
        cp -p recoll_${RCLVERS}.orig.tar.gz \
87
        kio-recoll_${RCLVERS}.orig.tar.gz || \
53
    exit 1
88
        exit 1
54
test -d $topdir || cp -rp recoll-${RCLVERS} $topdir
89
    test -d $topdir || tar xvzf recoll_${RCLVERS}.orig.tar.gz
55
90
fi
56
for series in $seriesk ; do
91
for series in $series ; do
57
92
58
  rm -rf $topdir/debian
93
  rm -rf $topdir/debian
59
  cp -rp ${debdir}/ $topdir/debian || exit 1
94
  cp -rp ${debdir}/ $topdir/debian || exit 1
60
95
61
  sed -e s/SERIES/$series/g \
96
  sed -e s/SERIES/$series/g \
...
...
67
  dput $PPANAME kio-recoll_${RCLVERS}-0~ppa${PPAVERS}~${series}1_source.changes
102
  dput $PPANAME kio-recoll_${RCLVERS}-0~ppa${PPAVERS}~${series}1_source.changes
68
103
69
done
104
done
70
105
71
### Unity Lens
106
### Unity Lens
72
seriesl="oneiric precise quantal raring"
107
series="oneiric precise quantal raring"
73
seriesl=
108
series=
109
74
debdir=debianunitylens
110
debdir=debianunitylens
75
topdir=recoll-lens-${LENSVERS}
111
topdir=recoll-lens-${LENSVERS}
76
112
if test X$series != X ; then
113
    test -d $topdir ||  tar xvzf recoll-lens_${LENSVERS}.orig.tar.gz
114
fi
115
test -d $topdir ||
77
for series in $seriesl ; do
116
for series in $series ; do
78
117
79
   rm -rf $topdir/debian
118
   rm -rf $topdir/debian
80
   cp -rp ${debdir}/ $topdir/debian || exit 1
119
   cp -rp ${debdir}/ $topdir/debian || exit 1
81
120
82
  sed -e s/SERIES/$series/g \
121
  sed -e s/SERIES/$series/g \
83
      -e s/PPAVERS/${PPAVERS}/g \
122
      -e s/PPAVERS/${PPAVERS}/g \
84
          < ${debdir}/changelog > $topdir/debian/changelog ;
123
          < ${debdir}/changelog > $topdir/debian/changelog ;
85
124
86
  (cd $topdir;debuild -S -sa) || break
125
  (cd $topdir;debuild -S -sa) || break
87
126
127
  dput $PPANAME \
88
  dput $PPANAME recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes
128
      recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes
89
129
90
done
130
done
131
132
### Unity Scope
133
series="saucy"
134
#series=
135
136
debdir=debianunityscope
137
topdir=unity-scope-recoll-${SCOPEVERS}
138
if test X$series != X ; then
139
    test -d $topdir ||  tar xvzf unity-scope-recoll_${LENSVERS}.orig.tar.gz
140
fi
141
for series in $series ; do
142
143
   rm -rf $topdir/debian
144
   cp -rp ${debdir}/ $topdir/debian || exit 1
145
146
  sed -e s/SERIES/$series/g \
147
      -e s/PPAVERS/${PPAVERS}/g \
148
          < ${debdir}/changelog > $topdir/debian/changelog ;
149
150
  (cd $topdir;debuild -S -sa) || break
151
152
  dput $PPANAME \
153
      unity-scope-recoll_${SCOPEVERS}-1~ppa${PPAVERS}~${series}1_source.changes
154
155
done