commit-womb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-womb] gnumaint spotlight.mk spotlight/gnubytime.pl sp...


From: Brandon Invergo
Subject: [commit-womb] gnumaint spotlight.mk spotlight/gnubytime.pl sp...
Date: Sun, 22 Mar 2015 22:06:18 +0000

CVSROOT:        /sources/womb
Module name:    gnumaint
Changes by:     Brandon Invergo <brandon>       15/03/22 22:06:18

Added files:
        .              : spotlight.mk 
        spotlight      : gnubytime.pl spotlight.m4 

Log message:
        add more spotlight stuff

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnumaint/spotlight.mk?cvsroot=womb&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnumaint/spotlight/gnubytime.pl?cvsroot=womb&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnumaint/spotlight/spotlight.m4?cvsroot=womb&rev=1.1

Patches:
Index: spotlight.mk
===================================================================
RCS file: spotlight.mk
diff -N spotlight.mk
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ spotlight.mk        22 Mar 2015 22:06:17 -0000      1.1
@@ -0,0 +1,76 @@
+FP = fencepost
+FP_GNU_EXCLUDES = --exclude=*.sig --exclude=video/TIME --exclude=find.txt.gz \
+       --exclude=ls-l*.txt.gz --exclude=gnu-keyring.gpg
+
+SL_DIR = spotlight
+GNUBYTIME = perl $(SL_DIR)/gnubytime.pl
+SL_M4 = $(SL_DIR)/spotlight.m4
+
+SL_TMP = spotlight-tmp
+REL = $(SL_TMP)/releases.gnu
+REL_BY_TIME = $(SL_TMP)/releases-by-time.gnu
+REL_THIS_MONTH = $(SL_TMP)/releases-this-month.gnu
+REL_READY = $(SL_TMP)/releases-ready.gnu
+REL_MD = $(SL_TMP)/releases.md
+SL_MD = $(SL_TMP)/spotlight-$(shell date +%Y-%m-%d).md
+ACTIVITY_REPORT = $(SL_TMP)/activity-report.txt
+
+define HELP
+Procedure:
+       1. make release-list
+       2. [manually edit $(REL_THIS_MONTH), rename to $(REL_THIS_MONTH)-ready]
+       3. make markdown
+endef
+
+release-list: $(REL_THIS_MONTH)
+
+markdown: $(SL_MD)
+
+help:
+       $(info $(HELP))
+
+.PHONY: release-list markdown help
+
+$(REL):
+       mkdir -p $(SL_TMP)
+       rsync --no-h -r $(REL_EXCLUDES) $(FP):/srv/data/ftp-mirror/ftp/ \
+               | egrep -v '^[dl]' >"$@"
+
+$(ACTIVITY_REPORT):
+       scp $(FP):~karl/src/gnumaint/activity-report.txt $@
+
+$(REL_BY_TIME): $(REL)
+       $(GNUBYTIME) "$<" >"$@"
+
+ifdef END_DATE
+$(REL_THIS_MONTH): $(REL_BY_TIME)
+       sed '/$(END_DATE)/,$$d;s|^.*/||' "$<" | sort -u >"$@"
+       @printf "\nNow manually edit $@, rename to address@hidden"
+       @printf "Run '$(MAKE) markdown' to continue.\n"
+else
+$(REL_THIS_MONTH):
+       $(error No end date (end of previous Spotlight) specified (e.g. 
END_DATE=20150222))
+endif
+
+$(REL_THIS_MONTH)-ready:
+       $(error You must create $@ by manually editing $(REL_THIS_MONTH))
+
+$(REL_READY): $(REL_THIS_MONTH)-ready
+       sort "$<" >"$@"
+
+$(REL_MD): $(REL_READY)
+       sed \
+               -e 's,\(.*\)-\([^-]*\),* 
[\1-\2](http://www.gnu.org/software/\1/),' \
+         "$<" >"$@"
+
+$(SL_MD): $(REL_MD) $(ACTIVITY_REPORT)
+       tail $(ACTIVITY_REPORT)
+       @printf '\n"This month, we welcome ..."\n'; \
+       read new_maintainers; \
+       m4 \
+               -DNN="`wc -l <$(REL_MD)`" \
+               -DDD="`date +%d`" \
+               -DYY="`date +%y`" \
+               -DRELEASES="`cat $(REL_MD)`" \
+               -DNEWMAINT="`echo \"$$new_maintainers\" | fold -s -w50`" \
+               $(SL_M4) >"$@"

Index: spotlight/gnubytime.pl
===================================================================
RCS file: spotlight/gnubytime.pl
diff -N spotlight/gnubytime.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ spotlight/gnubytime.pl      22 Mar 2015 22:06:17 -0000      1.1
@@ -0,0 +1,24 @@
+#!/usr/bin/env perl
+# ftp releases by time,via  rsync listing.
+# -rw-r--r--         918 2002/01/14 14:28:56 .message
+
+$ARGV[0] = "/u/karl/sys/ftp/fp.gnu" unless @ARGV;
+
+while (<>) {
+  next if / -> /;
+  next if /\.(diff|xdelta)\./;
+  next if /snapshot\.pkg/;
+  next if /\.darwin/;
+  next if /-latest/;
+  next if /\.sig/;
+  next unless /\.[tj]ar\./;
+  my (undef,undef,$date,undef,$pkg) = split (" "); # rsync
+  # my ($date,undef,$pkg) = split (" "); # ftp
+  $date =~ tr,-/,,d;
+  $pkg{$pkg} = $date;
+}
+
+for my $p (sort { $pkg{$b} <=> $pkg{$a} } keys %pkg) {
+  ($pfile = $p) =~ s/\.tar\..*$//;
+  print "$pkg{$p}\t$pfile\n";
+}

Index: spotlight/spotlight.m4
===================================================================
RCS file: spotlight/spotlight.m4
diff -N spotlight/spotlight.m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ spotlight/spotlight.m4      22 Mar 2015 22:06:18 -0000      1.1
@@ -0,0 +1,27 @@
+NN new GNU releases in the last month (as of Month DD, 20YY):
+
+RELEASES
+
+For announcements of most new GNU releases, subscribe to the info-gnu
+mailing list: <http://lists.gnu.org/mailman/listinfo/info-gnu>.
+
+To download: nearly all GNU software is available from
+<http://ftp.gnu.org/gnu/>, or preferably one of its mirrors from
+<http://www.gnu.org/prep/ftp.html>.  You can use the url
+<http://ftpmirror.gnu.org/> to be automatically redirected to a
+(hopefully) nearby and up-to-date mirror.
+
+This month, we welcome NEWMAINT.
+
+A number of GNU packages, as well as the GNU operating system as a
+whole, are looking for maintainers and other assistance: please see
+<http://www.gnu.org/server/takeaction.html#unmaint> if you'd like to
+help.  The general page on how to help GNU is at
+<http://www.gnu.org/help/help.html>.
+
+If you have a working or partly working program that you'd like
+to offer to the GNU project as a GNU package, see
+<http://www.gnu.org/help/evaluation.html>.
+
+As always, please feel free to write to us, <address@hidden>,
+with any GNUish questions or suggestions for future installments.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]