Switch to side-by-side view

--- a/packaging/debian/buildppa.sh
+++ b/packaging/debian/buildppa.sh
@@ -5,22 +5,28 @@
 # sudo apt-get install pkg-kde-tools  cdbs
 
 RCLVERS=1.17.0
-PPAVERS=0
+LENSVERS=1.17.0.2644
+PPAVERS=1
 
 case $RCLVERS in
     [23]*) PPANAME=recollexp-ppa;;
     1.14*) PPANAME=recoll-ppa;;
     *)     PPANAME=recoll15-ppa;;
 esac
+PPANAME=recollexp-ppa
+
+echo "PPA: $PPANAME. Type CR if Ok, else ^C"
+read rep
 
 ####### QT4
 debdir=debianrclqt4
 series4="lucid maverick natty oneiric precise"
-
-rm -rf recoll-${RCLVERS}/debian
-cp -rp ${debdir}/ recoll-${RCLVERS}/debian
+series4=""
 
 for series in $series4 ; do
+  rm -rf recoll-${RCLVERS}/debian
+  cp -rp ${debdir}/ recoll-${RCLVERS}/debian
+
   if test -f $debdir/control-$series ; then
       cp -f -p $debdir/control-$series recoll-${RCLVERS}/debian/control
   else 
@@ -41,11 +47,39 @@
 seriesk=""
 
 debdir=debiankio
-rm -rf recoll-${RCLVERS}/debian
-cp -rp ${debdir}/ recoll-${RCLVERS}/debian
+
 for series in $seriesk ; do
-  sed -e s/SERIES/$series/g < ${debdir}/changelog > \
-    recoll-${RCLVERS}/debian/changelog ;
+
+  rm -rf recoll-${RCLVERS}/debian
+  cp -rp ${debdir}/ recoll-${RCLVERS}/debian
+
+  sed -e s/SERIES/$series/g \
+      -e s/PPAVERS/${PPAVERS}/g \
+          < ${debdir}/changelog > recoll-${RCLVERS}/debian/changelog ;
+
   (cd recoll-${RCLVERS};debuild -S -sa) || break
+
   dput $PPANAME kio-recoll_${RCLVERS}-0~ppa${PPAVERS}~${series}1_source.changes
+
 done
+
+### Unity Lens
+seriesl="natty oneiric precise"
+seriesl="oneiric"
+
+debdir=debianunitylens
+
+for series in $seriesl ; do
+
+   rm -rf recoll-lens-${LENSVERS}/debian
+   cp -rp ${debdir}/ recoll-lens-${LENSVERS}/debian
+
+  sed -e s/SERIES/$series/g \
+      -e s/PPAVERS/${PPAVERS}/g \
+          < ${debdir}/changelog > recoll-lens-${LENSVERS}/debian/changelog ;
+
+  (cd recoll-lens-${LENSVERS};debuild -S -sa) || break
+
+  dput $PPANAME recoll-lens_${LENSVERS}-0~ppa${PPAVERS}~${series}1_source.changes
+
+done