[Libreoffice-commits] online.git: loolwsd/configure.ac loolwsd/debian loolwsd/.gitignore loolwsd/maketarballfordeb.sh.in

Andras Timar andras.timar at collabora.com
Tue May 10 13:00:48 UTC 2016


 loolwsd/.gitignore              |    1 +
 loolwsd/configure.ac            |    3 ++-
 loolwsd/debian/rules            |    4 ++++
 loolwsd/maketarballfordeb.sh.in |   13 +++++++++++++
 4 files changed, 20 insertions(+), 1 deletion(-)

New commits:
commit 35c90fbba6acfbd0b39da97f6e7d86ce47b0d0b6
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue May 10 15:00:20 2016 +0200

    loolwsd: deb package making hack

diff --git a/loolwsd/.gitignore b/loolwsd/.gitignore
index c7c7797..52e0067 100644
--- a/loolwsd/.gitignore
+++ b/loolwsd/.gitignore
@@ -22,6 +22,7 @@ depcomp
 install-sh
 libtool
 ltmain.sh
+maketarballfordeb.sh
 missing
 stamp-h1
 m4
diff --git a/loolwsd/configure.ac b/loolwsd/configure.ac
index 935316b..e7f903c 100644
--- a/loolwsd/configure.ac
+++ b/loolwsd/configure.ac
@@ -243,7 +243,8 @@ AC_SUBST(LOOLWSD_DATADIR)
 AC_CONFIG_FILES([Makefile
                  test/Makefile
                  loolwsd.spec
-                 loolwsd.xml])
+                 loolwsd.xml
+                 maketarballfordeb.sh])
 AC_CONFIG_FILES([test/run_unit.sh],[chmod +x test/run_unit.sh])
 
 AC_OUTPUT
diff --git a/loolwsd/debian/rules b/loolwsd/debian/rules
index c477524..519ac1a 100755
--- a/loolwsd/debian/rules
+++ b/loolwsd/debian/rules
@@ -20,3 +20,7 @@ override_dh_auto_configure:
 
 override_dh_auto_test:
 	# do not test
+
+override_dh_auto_install:
+	make install DESTDIR=`pwd`/debian/loolwsd/
+	cp -ar `pwd`/loleaflet  `pwd`/debian/loolwsd/usr/share/loolwsd
diff --git a/loolwsd/maketarballfordeb.sh.in b/loolwsd/maketarballfordeb.sh.in
new file mode 100755
index 0000000..2ecd183
--- /dev/null
+++ b/loolwsd/maketarballfordeb.sh.in
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+TEMPDIR=`mktemp -d`
+SRCDIR=`pwd`
+cd $TEMPDIR
+tar xzvf $SRCDIR/loolwsd- at PACKAGE_VERSION@.tar.gz
+mkdir loolwsd- at PACKAGE_VERSION@/loleaflet
+cd loolwsd- at PACKAGE_VERSION@/loleaflet
+tar xzvf $SRCDIR/../loleaflet/loleaflet- at PACKAGE_VERSION@.tar.gz --strip-components=1
+cd $TEMPDIR
+tar czvf $SRCDIR/loolwsd_ at PACKAGE_VERSION@.orig.tar.gz loolwsd- at PACKAGE_VERSION@
+cd $SRCDIR
+rm -rf $TEMPDIR


More information about the Libreoffice-commits mailing list