[DRBD-cvs] r1420 - trunk
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Tue, 13 Jul 2004 13:31:14 +0200 (CEST)
Author: lars
Date: 2004-07-13 13:31:14 +0200 (Tue, 13 Jul 2004)
New Revision: 1420
Modified:
trunk/Makefile
Log:
allow make tgz (update.filelist) to work
with the subversion repository we have now
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2004-07-13 10:28:42 UTC (rev 1419)
+++ trunk/Makefile 2004-07-13 11:31:14 UTC (rev 1420)
@@ -86,6 +86,17 @@
$$up2date
update.filelist:
+ find $$(svn st -v | sed '/^?/d;s/^. \+[0-9]\+ \+[0-9]\+ [a-z]\+ *//;') \
+ \! -type d -maxdepth 0 |\
+ sed 's:^:drbd-$(DIST_VERSION)/:' > .filelist
+ [ -s .filelist ] # assert there is something in .filelist now
+ find documentation -name "[^.]*.[58]" -o -name "*.html" | \
+ sed "s/^/drbd-$(DIST_VERSION)\//" >> .filelist ;\
+ echo drbd-$(DIST_VERSION)/drbd_config.h >> .filelist ;\
+ echo drbd-$(DIST_VERSION)/.filelist >> .filelist ;\
+ for d in documentation/{ja,pt_BR}; do test -e $$d/Makefile && echo drbd-$(DIST_VERSION)/$$d/Makefile >> .filelist ; done
+
+update.filelist.cvs:
cvs status | grep -o "/drbd/drbd/[^,]*" | \
sed "s/Attic\///; \
s/\/drbd\/drbd/drbd-$(DIST_VERSION)/;" > .filelist ;\