Author: sparky
Date: Tue Oct  6 17:40:29 2009
New Revision: 10702

Modified:
   toys/rsget.pl/Makefile
Log:
- updated, now includes Video


Modified: toys/rsget.pl/Makefile
==============================================================================
--- toys/rsget.pl/Makefile      (original)
+++ toys/rsget.pl/Makefile      Tue Oct  6 17:40:29 2009
@@ -4,33 +4,40 @@
 VER =
 PKGDIR = rsget.pl-$(VER)
 
+DIRS = RSGet,Get,Link,Video,data
+
 all: rsget.pl
 
 ifeq ($(VER),)
 pkg:
        make VER="$$(svn up | sed '/At revision /!d; s/At revision //; 
s/\.//')" pkg
 else
-pkg:
-       rm -f {RSGet,Get,Link,data}/*~
+pkg: clean
        rm -rf $(PKGDIR)
-       install -d $(PKGDIR)/{RSGet,Get,Link,data}
+       install -d $(PKGDIR)/{$(DIRS)}
        install rsget.pl $(PKGDIR)
        cp Makefile README README.config $(PKGDIR)
        cp RSGet/*.pm $(PKGDIR)/RSGet
        cp Get/* $(PKGDIR)/Get
        cp Link/* $(PKGDIR)/Link
+       cp Video/* $(PKGDIR)/Video
        cp data/* $(PKGDIR)/data
        tar -cjf $(PKGDIR).tar.bz2 $(PKGDIR)
 endif
 
-install:
-       rm -f {RSGet,Get,Link,data}/*~
-       install -d $(DESTDIR)$(DATADIR)/{RSGet,Get,Link,data} 
$(DESTDIR)$(BINDIR)
+install: clean
+       install -d $(DESTDIR)$(DATADIR)/{$(DIRS)} $(DESTDIR)$(BINDIR)
        sed 's#\($$install_path\) =.*;#\1 = "$(DATADIR)";#' < rsget.pl > 
rsget.pl.datadir
        install rsget.pl.datadir $(DESTDIR)$(BINDIR)/rsget.pl
        cp RSGet/*.pm $(DESTDIR)$(DATADIR)/RSGet
        cp data/* $(DESTDIR)$(DATADIR)/data
        cp Get/* $(DESTDIR)$(DATADIR)/Get
        cp Link/* $(DESTDIR)$(DATADIR)/Link
-       grep "status:\s*BROKEN" $(DESTDIR)$(DATADIR)/{Get,Link}/* | sed 
's/:.*//' | xargs -r rm -v
+       cp Video/* $(DESTDIR)$(DATADIR)/Video
+       grep -l "status:\s*BROKEN" $(DESTDIR)$(DATADIR)/{Get,Link,Video}/* | 
xargs -r rm -v
 
+.PHONY: clean
+clean:
+       rm -f {$(DIRS)}/*~
+       rm -f {$(DIRS)}/svn-commit.tmp*
+       rm -f rsget.pl.datadir
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to