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.19.10
7
RCLVERS=1.19.11p1
8
LENSVERS=1.19.10.3543
8
LENSVERS=1.19.10.3543
9
SCOPEVERS=1.19.10.3543
9
SCOPEVERS=1.19.10.3543
10
PPAVERS=4
10
PPAVERS=5
11
12
# For the unity-scope debian directory
13
RCLSRC=/home/dockes/projets/fulltext/recoll/src
11
14
12
case $RCLVERS in
15
case $RCLVERS in
13
    [23]*) PPANAME=recollexp-ppa;;
16
    [23]*) PPANAME=recollexp-ppa;;
14
    1.14*) PPANAME=recoll-ppa;;
17
    1.14*) PPANAME=recoll-ppa;;
15
    *)     PPANAME=recoll15-ppa;;
18
    *)     PPANAME=recoll15-ppa;;
16
esac
19
esac
17
#PPANAME=recollexp-ppa
20
#PPANAME=recollexp-ppa
18
19
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
21
echo "PPA: $PPANAME. Type CR if Ok, else ^C"
20
read rep
22
read rep
23
24
fatal()
25
{
26
    echo $*; exit 1
27
}
28
29
check_recoll_orig()
30
{
31
    if test ! -f recoll_${RCLVERS}.orig.tar.gz ; then 
32
        if test -f recoll-${RCLVERS}.tar.gz ; then
33
            mv recoll-${RCLVERS}.tar.gz recoll_${RCLVERS}.orig.tar.gz
34
        else
35
            fatal "Can find neither recoll_${RCLVERS}.orig.tar.gz nor " \
36
                "recoll-${RCLVERS}.tar.gz"
37
        fi
38
    fi
39
}
21
40
22
####### QT4
41
####### QT4
23
debdir=debian
42
debdir=debian
24
# Note: no new releases for lucid: no webkit. Or use old debianrclqt4 dir.
43
# Note: no new releases for lucid: no webkit. Or use old debianrclqt4 dir.
25
series="precise quantal raring saucy"
44
series="precise quantal raring saucy"
26
#series="precise saucy"
45
series="trusty"
27
46
28
if test "X$series" != X ; then
47
if test "X$series" != X ; then
48
    check_recoll_orig
29
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
49
    test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
30
fi
50
fi
31
51
32
for series in $series ; do
52
for series in $series ; do
33
53
...
...
54
series=
74
series=
55
75
56
debdir=debiankio
76
debdir=debiankio
57
topdir=kio-recoll-${RCLVERS}
77
topdir=kio-recoll-${RCLVERS}
58
if test "X$series" != X ; then
78
if test "X$series" != X ; then
79
    check_recoll_orig
59
    if test ! -d kio-recoll_${RCLVERS}.orig.tar.gz ; then
80
    if test ! -d kio-recoll_${RCLVERS}.orig.tar.gz ; then
60
        cp -p recoll_${RCLVERS}.orig.tar.gz \
81
        cp -p recoll_${RCLVERS}.orig.tar.gz \
61
            kio-recoll_${RCLVERS}.orig.tar.gz || exit 1
82
            kio-recoll_${RCLVERS}.orig.tar.gz || exit 1
62
    fi
83
    fi
63
    if test ! -d $topdir ; then 
84
    if test ! -d $topdir ; then 
...
...
88
series=
109
series=
89
110
90
debdir=debianunitylens
111
debdir=debianunitylens
91
topdir=recoll-lens-${LENSVERS}
112
topdir=recoll-lens-${LENSVERS}
92
if test "X$series" != X ; then
113
if test "X$series" != X ; then
114
    if test ! -f recoll-lens_${LENSVERS}.orig.tar.gz ; then 
115
        if test -f recoll-lens-${LENSVERS}.tar.gz ; then
116
            mv recoll-lens-${LENSVERS}.tar.gz \
117
                recoll-lens_${LENSVERS}.orig.tar.gz
118
        else
119
            fatal "Can find neither recoll-lens_${LENSVERS}.orig.tar.gz nor " \
120
                "recoll-lens-${LENSVERS}.tar.gz"
121
        fi
122
    fi
93
    test -d $topdir ||  tar xvzf recoll-lens_${LENSVERS}.orig.tar.gz
123
    test -d $topdir ||  tar xvzf recoll-lens_${LENSVERS}.orig.tar.gz || exit 1
94
fi
124
fi
95
125
96
for series in $series ; do
126
for series in $series ; do
97
127
98
   rm -rf $topdir/debian
128
   rm -rf $topdir/debian
...
...
108
      recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes
138
      recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes
109
139
110
done
140
done
111
141
112
### Unity Scope
142
### Unity Scope
113
series="saucy"
143
series="saucy trusty"
114
series=
144
series=
115
145
116
debdir=debianunityscope
146
debdir=debianunityscope
147
if test ! -d ${debdir}/ ; then
148
    ln -s ${RCLSRC}/desktop/unity-scope-recoll/debian $debdir
149
fi
117
topdir=unity-scope-recoll-${SCOPEVERS}
150
topdir=unity-scope-recoll-${SCOPEVERS}
118
if test "X$series" != X ; then
151
if test "X$series" != X ; then
152
    if test ! -f unity-scope-recoll_${SCOPEVERS}.orig.tar.gz ; then 
153
        if test -f unity-scope-recoll-${SCOPEVERS}.tar.gz ; then
154
            mv unity-scope-recoll-${SCOPEVERS}.tar.gz \
155
                unity-scope-recoll_${SCOPEVERS}.orig.tar.gz
156
        else
157
            fatal "Can find neither " \
158
                "unity-scope-recoll_${SCOPEVERS}.orig.tar.gz nor " \
159
                "unity-scope-recoll-${SCOPEVERS}.tar.gz"
160
        fi
161
    fi
119
    test -d $topdir ||  tar xvzf unity-scope-recoll_${LENSVERS}.orig.tar.gz
162
    test -d $topdir ||  tar xvzf unity-scope-recoll_${SCOPEVERS}.orig.tar.gz \
163
        || exit 1
120
fi
164
fi
121
for series in $series ; do
165
for series in $series ; do
122
166
123
   rm -rf $topdir/debian
167
   rm -rf $topdir/debian
124
   cp -rp ${debdir}/ $topdir/debian || exit 1
168
   cp -rp ${debdir}/ $topdir/debian || exit 1