Switch to unified view

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.20.0
7
RCLVERS=1.19.10
8
LENSVERS=1.20.0.3519
8
LENSVERS=1.19.10.3543
9
SCOPEVERS=1.20.0.3519
9
SCOPEVERS=1.19.10.3543
10
PPAVERS=2
10
PPAVERS=2
11
11
12
case $RCLVERS in
12
case $RCLVERS in
13
    [23]*) PPANAME=recollexp-ppa;;
13
    [23]*) PPANAME=recollexp-ppa;;
14
    1.14*) PPANAME=recoll-ppa;;
14
    1.14*) PPANAME=recoll-ppa;;
...
...
18
18
19
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
19
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
20
read rep
20
read rep
21
21
22
####### QT4
22
####### QT4
23
debdir=debianrclqt4
23
debdir=debian
24
series="lucid oneiric precise"
24
# Note: no new releases for lucid: no webkit. Or use old debianrclqt4 dir.
25
series=""
25
series="precise quantal raring saucy"
26
if test X$series != X ; then
26
series="precise saucy"
27
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
28
fi
29
27
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
28
if test "X$series" != X ; then
55
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
29
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
56
fi
30
fi
57
31
58
for series in $series ; do
32
for series in $series ; do
59
33
...
...
74
48
75
  dput $PPANAME recoll_${RCLVERS}-1~ppa${PPAVERS}~${series}1_source.changes
49
  dput $PPANAME recoll_${RCLVERS}-1~ppa${PPAVERS}~${series}1_source.changes
76
done
50
done
77
51
78
### KIO
52
### KIO
79
series="lucid oneiric precise quantal raring"
53
series="precise quantal raring saucy"
80
series=
54
series="precise saucy"
81
55
82
debdir=debiankio
56
debdir=debiankio
83
topdir=kio-recoll-${RCLVERS}
57
topdir=kio-recoll-${RCLVERS}
84
if test X$series != X ; then
58
if test "X$series" != X ; then
85
    test -d kio-recoll_${RCLVERS}.orig.tar.gz || \
59
    if test ! -d kio-recoll_${RCLVERS}.orig.tar.gz ; then
86
        cp -p recoll_${RCLVERS}.orig.tar.gz \
60
        cp -p recoll_${RCLVERS}.orig.tar.gz \
87
        kio-recoll_${RCLVERS}.orig.tar.gz || \
61
            kio-recoll_${RCLVERS}.orig.tar.gz || exit 1
88
        exit 1
62
    fi
89
    test -d $topdir || tar xvzf recoll_${RCLVERS}.orig.tar.gz
63
    if test ! -d $topdir ; then 
64
        mkdir temp
65
        cd temp
66
        tar xvzf ../recoll_${RCLVERS}.orig.tar.gz || exit 1
67
        mv recoll-${RCLVERS} ../$topdir || exit 1
68
        cd ..
69
    fi
90
fi
70
fi
91
for series in $series ; do
71
for series in $series ; do
92
72
93
  rm -rf $topdir/debian
73
  rm -rf $topdir/debian
94
  cp -rp ${debdir}/ $topdir/debian || exit 1
74
  cp -rp ${debdir}/ $topdir/debian || exit 1
...
...
102
  dput $PPANAME kio-recoll_${RCLVERS}-0~ppa${PPAVERS}~${series}1_source.changes
82
  dput $PPANAME kio-recoll_${RCLVERS}-0~ppa${PPAVERS}~${series}1_source.changes
103
83
104
done
84
done
105
85
106
### Unity Lens
86
### Unity Lens
107
series="oneiric precise quantal raring"
87
series="precise quantal raring"
108
series=
88
series=precise
109
89
110
debdir=debianunitylens
90
debdir=debianunitylens
111
topdir=recoll-lens-${LENSVERS}
91
topdir=recoll-lens-${LENSVERS}
112
if test X$series != X ; then
92
if test "X$series" != X ; then
113
    test -d $topdir ||  tar xvzf recoll-lens_${LENSVERS}.orig.tar.gz
93
    test -d $topdir ||  tar xvzf recoll-lens_${LENSVERS}.orig.tar.gz
114
fi
94
fi
115
test -d $topdir ||
95
116
for series in $series ; do
96
for series in $series ; do
117
97
118
   rm -rf $topdir/debian
98
   rm -rf $topdir/debian
119
   cp -rp ${debdir}/ $topdir/debian || exit 1
99
   cp -rp ${debdir}/ $topdir/debian || exit 1
120
100
...
...
133
series="saucy"
113
series="saucy"
134
#series=
114
#series=
135
115
136
debdir=debianunityscope
116
debdir=debianunityscope
137
topdir=unity-scope-recoll-${SCOPEVERS}
117
topdir=unity-scope-recoll-${SCOPEVERS}
138
if test X$series != X ; then
118
if test "X$series" != X ; then
139
    test -d $topdir ||  tar xvzf unity-scope-recoll_${LENSVERS}.orig.tar.gz
119
    test -d $topdir ||  tar xvzf unity-scope-recoll_${LENSVERS}.orig.tar.gz
140
fi
120
fi
141
for series in $series ; do
121
for series in $series ; do
142
122
143
   rm -rf $topdir/debian
123
   rm -rf $topdir/debian