SVN: toys/rsget.pl/Makefile

sparky sparky at pld-linux.org
Thu Aug 27 21:07:38 CEST 2009


Author: sparky
Date: Thu Aug 27 21:07:38 2009
New Revision: 10501

Modified:
   toys/rsget.pl/Makefile
Log:
- use correct svn version


Modified: toys/rsget.pl/Makefile
==============================================================================
--- toys/rsget.pl/Makefile	(original)
+++ toys/rsget.pl/Makefile	Thu Aug 27 21:07:38 2009
@@ -1,12 +1,15 @@
 
 DATADIR = /usr/share/rsget.pl
 BINDIR = /usr/bin
-
-VER = $(shell sed '4!d' .svn/entries)
+VER =
 PKGDIR = rsget.pl-$(VER)
 
-all:
+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}/*~
 	install -d $(PKGDIR)/{RSGet,Get,Link,data}
@@ -17,6 +20,7 @@
 	cp Link/* $(PKGDIR)/Link
 	cp data/* $(PKGDIR)/data
 	tar -cjf $(PKGDIR).tar.bz2 $(PKGDIR)
+endif
 
 install:
 	rm -f {RSGet,Get,Link,data}/*~


More information about the pld-cvs-commit mailing list