/[MITgcm]/manual/tools/make_mail_subjects.awk
ViewVC logotype

Contents of /manual/tools/make_mail_subjects.awk

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jan 15 10:41:49 2002 UTC (22 years, 3 months ago) by cnh
Branch: MAIN
Added a couple of scripts for building manual

 o generate_latest_manual.sh

   This script runs on twain under cron every few hours
   and creates http://mitgcm.org/sealion-manual-latest,
   which can be used to see what has or hasn't been done yet.

 o make_mail_subjects.sh and make_mail_subjects.awk

   These change the mailto:support@mitgcm.org links at the bottom each
   manual web page, so that the section number and title appears in
   the subject line automatically.

1 BEGIN{nop=0}
2 /.*TITLE.*/{split($0,pt,">"); split(pt[2],ptt,"<")}
3 /<a href=mailto:.*/{
4 printf("<a href=\"mailto:support@mitgcm.org");
5 nf=split($0,ma,">");
6 printf("?subject=[MITgcm Manual] %s",ptt[1]);
7 printf("&body=Feedback on section - %s",ptt[1]);
8 printf("\">");
9 for(i=2;i<=nf;i++) {printf("%s",ma[i])};
10 printf(">");
11 printf("\n");
12 nop=1}
13 {if ( nop ==0 ) print}
14 {if ( nop ==1 ) nop=0}
15 END{}

  ViewVC Help
Powered by ViewVC 1.1.22