/[packages]/cauldron/mageia-release/current/SOURCES/Makefile
ViewVC logotype

Contents of /cauldron/mageia-release/current/SOURCES/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 203850 - (show annotations) (download)
Wed Feb 1 08:05:14 2012 UTC (12 years, 2 months ago) by ennael
File size: 861 byte(s)
readd Makefile to generate release notes from wiki

1 .PHONY: release-notes.txt release-notes.html
2 VERSION=2
3 RN_URL=https://wiki.mageia.org/en/Mageia$(VERSION)_Release_Notes
4
5 check:
6 iconv -t utf-32 -f utf-8 <CREDITS>/dev/null
7
8 release-notes.txt:
9 LANG=C lynx --dump -nolist $(RN_URL) > release-notes.txt
10 perl -pi -e 'undef $$_ if /#Mandriva/../Jump to:/; s!Image:\S*.png !!; s!\[edit\]!!; $$a ||= m!^ Retrieved from "$(RN_URL)"$$!; undef $$_ if $$a;' release-notes.txt
11
12 release-notes.html:
13 curl $(RN_URL) > release-notes.html
14 perl -pi -e 'undef $$_ if /"siteSub"\>From Mageia Community Wiki/; s/(h1 class="firstHeading"\>)Releases.*\</\1Mageia $(VERSION) Release Notes\</ ; undef $$_ if /id="jump-to-nav">Jump to|id="breadcrumbs"/; s!<span class="editsection">.*?</span>!!; s!<a href="[^#h].*?">(.*?)</a>!\1! if $$a; $$a = 1 if /"mw-headline"/; undef $$_ if /Retrieved from/../<\/body/;' release-notes.html
15

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.30