[freeplane] 07/11: compute icons in debian/rules, move some cleanup to debian/clean

Felix Natter fnatter-guest at moszumanska.debian.org
Mon Jun 30 18:30:31 UTC 2014


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

fnatter-guest pushed a commit to branch master
in repository freeplane.

commit f031be2d9cf5514236d6000394f888545757bf59
Author: Felix Natter <fnatter at gmx.net>
Date:   Mon Jun 30 20:18:19 2014 +0200

    compute icons in debian/rules, move some cleanup to debian/clean
---
 debian/clean |  6 ++++++
 debian/rules | 17 ++++++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..80abd4e
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,6 @@
+freeplane_plugin_script/src-jsyntaxpane/jsyntaxpane/lexers/LaTeXLexer.java
+freeplane.1
+freeplane.xpm
+48x48/freeplane.png
+64x64/freeplane.png
+128x128/freeplane.png
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index dfe001f..e805048 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,19 +24,22 @@ build:
         debian/freeplane.1.xml
 
 	convert freeplane_framework/script/freeplane.png freeplane.xpm
+	mkdir 48x48
+	convert -background none -geometry !48x48 freeplane_framework/script/freeplane.svg 48x48/freeplane.png
+	mkdir 64x64
+	convert -background none -geometry !64x64 freeplane_framework/script/freeplane.svg 64x64/freeplane.png
+	mkdir 128x128
+	convert -background none -geometry !128x128 freeplane_framework/script/freeplane.svg 128x128/freeplane.png
 
 clean:: 
-	-rm -f freeplane.xpm
-	-rm -f freeplane.1
+# directories cannot be removed via debian/clean
+	if [ -d 48x48 ]; then rmdir 48x48; fi
+	if [ -d 64x64 ]; then rmdir 64x64; fi
+	if [ -d 128x128 ]; then rmdir 128x128; fi
 
 #buildxml-clean::
 #	-$(DEB_ANT_INVOKE) $(DEB_ANT_CLEAN_TARGET)
 
 # Get original sources directly using uscan
 get-orig-source:
-  # this will remove some upstream files, see debian/copyright
 	uscan --force-download --rename --repack
-  # hack for 1.2.23+dfsg1-1
-	if [ -e ../freeplane_1.2.23+dfsg.orig.tar.gz ]; then \
-	  mv ../freeplane_1.2.23+dfsg.orig.tar.gz ../freeplane_1.2.23+dfsg1.orig.tar.gz; \
-	fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/freeplane.git



More information about the pkg-java-commits mailing list