Skip to Content.
Sympa Menu

sm-grimoire - [SM-Grimoire] HISTORY conversion to ChangeLog format

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: "Sergey A. Lipnevich" <sergey AT optimaltec.com>
  • To: Grimoire <sm-grimoire AT lists.ibiblio.org>, Eric Sandall <eric AT sandall.us>
  • Cc:
  • Subject: [SM-Grimoire] HISTORY conversion to ChangeLog format
  • Date: Mon, 29 Sep 2003 18:50:36 -0400

This program does the job:
gawk 'BEGIN { print "-*- mode: change-log -*-" }; { gsub(/[[:blank:]]+/, " "); gsub(/* /, "") }; /^[[:blank:]][^a-z]/ { print "\t*" $0 }; /^[[:blank:]][a-z]/ { print "\t " $0 }; /^[^[:blank:]]/ { print "\n" $0 };' HISTORY
Please try and let me know if you like what you see. The first instruction, mode: ..., is in order not to rename HISTORY to ChangeLog but make Emacs recognize the format of existing file.

Sergey.





Archive powered by MHonArc 2.6.24.

Top of Page