#! /bin/tcsh #cd /disk/www/htdocs/massive_stars/submission/ set year="09" set month="7,8" set month1="3,4" set outputfile="news_all112.tex" ls -1 `echo "20"$year"/"$year"0["$month"]*tex"` ls -1 `echo "../jobs/20"$year"/"$year"0["$month"]*tex"` ls -1 `echo "../conf/20"$year"/"$year"0["$month"]*tex"` ls -1 `echo "../other/20"$year"/"$year"0["$month"]*tex"` ls -1 `echo "20"$year"/"$year"1["$month1"]*tex"` ls -1 `echo "../jobs/20"$year"/"$year"1["$month1"]*tex"` ls -1 `echo "../conf/20"$year"/"$year"1["$month1"]*tex"` ls -1 `echo "../other/20"$year"/"$year"1["$month1"]*tex"` cat news_header.tex >! $outputfile echo "% --------------------------------------------------------" >> $outputfile echo "\\centerline{\lightframe{0.7}{5}{1.5cm}{" >> $outputfile echo "\\centerline{\Large News }}} %" >> $outputfile echo "\\vspace*{4mm}" >> $outputfile echo "% --------------------------------------------------------" >> $outputfile ###cat `echo "../other/2006/"$year"0["$month"]*tex"` >> $outputfile foreach file_read (`ls -1 ../other/20"$year"/$year""0[$month]*tex ../other/20"$year"/$year""1[$month1]*tex`) echo "\\bigskip % ---------------------------------------------------------------------" >> $outputfile echo "" >> $outputfile echo "% Submitted to the Massive Star Newsletter on: "`echo $file_read|cut -c 10-13`"."`echo $file_read|cut -c 17-18`"."`echo $file_read|cut -c 19-20` >> $outputfile echo "" >> $outputfile cat $file_read >> $outputfile end echo "% --------------------------------------------------------" >> $outputfile echo "\\centerline{\lightframe{0.7}{5}{2cm}{" >> $outputfile echo "\\centerline{\Large Papers }}} %" >> $outputfile echo "\\vspace*{4mm}" >> $outputfile echo "% --------------------------------------------------------" >> $outputfile ###cat `echo "2006/"$year"0["$month"]*tex"` >> $outputfile foreach file_read (`ls -1 20"$year"/$year""0[$month]*tex 20"$year"/$year""1[$month1]*tex`) echo "\\bigskip % ---------------------------------------------------------------------" >> $outputfile echo "" >> $outputfile echo "% Submitted to the Massive Star Newsletter on: "`echo $file_read|cut -c 1-4`"."`echo $file_read|cut -c 8-9`"."`echo $file_read|cut -c 10-11` >> $outputfile echo "" >> $outputfile cat $file_read >> $outputfile end echo "% --------------------------------------------------------" >> $outputfile echo "\\centerline{\lightframe{0.7}{5}{1.5cm}{" >> $outputfile echo "\\centerline{\Large Jobs }}} %" >> $outputfile echo "\\vspace*{4mm}" >> $outputfile echo "% --------------------------------------------------------" >> $outputfile ###cat `echo "../jobs/2006/"$year"0["$month"]*tex"` >> $outputfile foreach file_read (`ls -1 ../jobs/20"$year"/$year""0[$month]*tex ../jobs/20"$year"/$year""1[$month1]*tex`) echo "\\bigskip % ---------------------------------------------------------------------" >> $outputfile echo "" >> $outputfile echo "% Submitted to the Massive Star Newsletter on: "`echo $file_read|cut -c 9-12`"."`echo $file_read|cut -c 16-17`"."`echo $file_read|cut -c 18-19` >> $outputfile echo "" >> $outputfile cat $file_read >> $outputfile end echo "% --------------------------------------------------------" >> $outputfile echo "\\centerline{\lightframe{0.7}{5}{2.1cm}{" >> $outputfile echo "\\centerline{\Large Meetings }}} %" >> $outputfile echo "\\vspace*{4mm}" >> $outputfile echo "% --------------------------------------------------------" >> $outputfile ###cat `echo "../conf/2006/"$year"0["$month"]*tex"` >> $outputfile foreach file_read (`ls -1 ../conf/20"$year"/$year""0[$month]*tex ../conf/20"$year"/$year""1[$month1]*tex`) echo "\\bigskip % ---------------------------------------------------------------------" >> $outputfile echo "" >> $outputfile echo "% Submitted to the Massive Star Newsletter on: "`echo $file_read|cut -c 9-12`"."`echo $file_read|cut -c 16-17`"."`echo $file_read|cut -c 18-19` >> $outputfile echo "" >> $outputfile cat $file_read >> $outputfile end cat news_footer.tex >> $outputfile dos2unix $outputfile