#! /bin/tcsh #cd /disk/www/htdocs/massive_stars/submission/ set issue_nb=115 set year="10" set month="1,2" set month1="3,4" #set month="0" #set month1="1,2" set outputfile="news_all115.htm" echo "Newsletter "$issue_nb" of Working Group on Massive Star" >! $outputfile cat news_header.html >> $outputfile ls -1 `echo "20"$year"/"$year"0["$month"]*htm"` ls -1 `echo "../jobs/20"$year"/"$year"0["$month"]*htm"` ls -1 `echo "../conf/20"$year"/"$year"0["$month"]*htm"` ls -1 `echo "../other/20"$year"/"$year"0["$month"]*htm"` ls -1 `echo "20"$year"/"$year"1["$month1"]*htm"` ls -1 `echo "../jobs/20"$year"/"$year"1["$month1"]*htm"` ls -1 `echo "../conf/20"$year"/"$year"1["$month1"]*htm"` ls -1 `echo "../other/20"$year"/"$year"1["$month1"]*htm"` # prepare paper abstracts first echo "" > papers_prep foreach file_read (`ls -1 20"$year"/$year""0[$month]*htm 20"$year"/$year""1[$month1]*htm`) echo "" >> papers_prep cat $file_read >> papers_prep echo "" >> papers_prep end #echo "
" >> $outputfile echo "

CONTENTS OF THIS NEWSLETTER:

" >> $outputfile echo "

News

" >> $outputfile if ( -f "20"$year"/"$year"1["$month1"]*htm" || -f "20"$year"/"$year"0["$month"]*htm" ) then echo "

Abstracts

" >> $outputfile endif echo "

Abstracts of "`egrep "Status: Manuscript has been accepted" papers_prep |wc -l`" accepted papers

" >> $outputfile echo "

Abstracts of "`egrep "Status: Manuscript has been submitted" papers_prep |wc -l`" submitted papers

" >> $outputfile echo "

Abstracts of "`egrep "Status: Conference proceedings" papers_prep |wc -l`" conference proceedings

" >> $outputfile echo "

Abstracts of "`egrep "Status: Other" papers_prep |wc -l`" other types of papers

" >> $outputfile echo "

Jobs

" >> $outputfile echo "

Meetings

" >> $outputfile echo "
" >> $outputfile echo "
" >> $outputfile echo "

News

" >> $outputfile ###cat `echo "../other/2006/"$year"0["$month"]*htm"` >> $outputfile foreach file_read (`ls -1 ../other/20"$year"/$year""0[$month]*htm ../other/20"$year"/$year""1[$month1]*htm`) echo "" >> $outputfile cat $file_read >> $outputfile echo "" >> $outputfile end echo "Back to contents" >> $outputfile echo "
" >> $outputfile echo "

PAPERS

" >> $outputfile echo "

Abstracts of "`egrep "Status: Manuscript has been accepted" papers_prep |wc -l`" accepted papers

" >> $outputfile egrep "Status: Manuscript has been accepted" papers_prep >> $outputfile echo "Back to contents" >> $outputfile echo "

Abstracts of "`egrep "Status: Manuscript has been submitted" papers_prep |wc -l`" submitted papers

" >> $outputfile egrep "Status: Manuscript has been submitted" papers_prep >> $outputfile echo "Back to contents" >> $outputfile echo "

Abstracts of "`egrep "Status: Conference proceedings" papers_prep |wc -l`" conference proceedings

" >> $outputfile egrep "Status: Conference proceedings" papers_prep >> $outputfile echo "Back to contents" >> $outputfile echo "

Abstracts of "`egrep "Status: Other" papers_prep |wc -l`" other publications

" >> $outputfile egrep "Status: Other" papers_prep >> $outputfile echo "Back to contents" >> $outputfile echo "
" >> $outputfile echo "

JOBS

" >> $outputfile ###cat `echo "../jobs/2006/"$year"0["$month"]*htm"` >> $outputfile foreach file_read (`ls -1 ../jobs/20"$year"/$year""0[$month]*htm ../jobs/20"$year"/$year""1[$month1]*htm`) echo "" >> $outputfile cat $file_read >> $outputfile echo "" >> $outputfile end echo "Back to contents" >> $outputfile echo "
" >> $outputfile echo "

MEETINGS

" >> $outputfile ###cat `echo "../conf/2006/"$year"0["$month"]*htm"` >> $outputfile foreach file_read (`ls -1 ../conf/20"$year"/$year""0[$month]*htm ../conf/20"$year"/$year""1[$month1]*htm`) echo "" >> $outputfile cat $file_read >> $outputfile echo "" >> $outputfile end echo "Back to contents" >> $outputfile echo "Newsletter "$issue_nb" of Working Group on Massive Star" >> $outputfile #cat news_footer.html >> $outputfile #dos2unix $outputfile