The following commit has been merged in the master branch:
commit 547d8e684e7c6282a0f820a71feb047cf94f94c7
Author: Niels Thykier <[email protected]>
Date:   Mon Jun 18 10:08:37 2012 +0200

    d/Makefile: Use grep + xargs
    
    Its faster and shorter - whats not to love?
    
    Signed-off-by: Niels Thykier <[email protected]>

diff --git a/debian/Makefile b/debian/Makefile
index aea45d7..fa662ee 100644
--- a/debian/Makefile
+++ b/debian/Makefile
@@ -22,17 +22,8 @@ swt-gtk-$(RELEASE).files:
 
 %-stamp: %.files
        mkdir -p $*
-       for i in `cat $<`; do \
-               if [ "$${i##*.}" = "properties" ]; then \
-                       echo cp $$i $*/$$i; \
-                       cp $$i $*/$$i; \
-               elif [ -e $*/$${i%java}class ]; then \
-                       echo SKIPPING $$i; \
-               else \
-                       echo $(JAVAC) -d $* $$i; \
-                       $(JAVAC) -d $* $$i || exit $$?; \
-               fi \
-       done
+       grep \.java $< | xargs -r $(JAVAC) -d $*
+       grep \.properties $< | xargs -r cp --parents -t $*
        touch $@
 
 %.jar: %-stamp

-- 
Debian packaging for swt-gtk.

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to