[Xfce4-commits] [apps/xfce4-panel-profiles] 01/01: Add distcheck option to Makefile

noreply at xfce.org noreply at xfce.org
Wed Jul 25 12:03:18 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-panel-profiles.

commit 4cd6155217bdcd9e8bb2d74114b04e571d82425e
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed Jul 25 06:03:12 2018 -0400

    Add distcheck option to Makefile
---
 Makefile.in.in | 12 +++++++++++-
 configure      |  2 ++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/Makefile.in.in b/Makefile.in.in
index 910ced9..05cacd9 100644
--- a/Makefile.in.in
+++ b/Makefile.in.in
@@ -1,4 +1,5 @@
-APPNAME=xfce4-panel-profiles
+APPNAME=@appname@
+VERSION=@version@
 PREFIX=@prefix@
 PYTHON=`which @python@`
 LANGUAGE_FILES=$(patsubst po/%.po, locale/%/LC_MESSAGES/$(APPNAME).mo, $(wildcard po/*.po))
@@ -64,6 +65,15 @@ uninstall:
 	# FIXME: Uninstall locales
 	rm -f $(DESTDIR)/$(PREFIX)/bin/$(APPNAME)
 
+distcheck: all
+	mkdir -p $(APPNAME)-$(VERSION)
+	for filename in `git ls-tree -r master --name-only | grep -v git`; do \
+		mkdir -p $(APPNAME)-$(VERSION)/`dirname $$filename`; \
+		cp $$filename $(APPNAME)-$(VERSION)/$$filename; \
+	done;
+	tar -cvjSf $(APPNAME)-$(VERSION).tar.bz2 $(APPNAME)-$(VERSION)
+	rm -rf $(APPNAME)-$(VERSION)
+
 clean:
 	rm -Rf locale
 	rm -f xfce4-panel-profiles/*.pyc
diff --git a/configure b/configure
index fac6a88..f7813a6 100755
--- a/configure
+++ b/configure
@@ -40,5 +40,7 @@ done
 
 echo "Creating Makefile..."
 sed -e s, at prefix@,$PREFIX, Makefile.in.in > Makefile.in
+sed -i -e s, at appname@,$APPNAME, Makefile.in
+sed -i -e s, at version@,$VERSION, Makefile.in
 sed -e s, at python@,$PYTHON, Makefile.in > Makefile
 echo "Installation prefix is $PREFIX"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list