#!/bin/bash ######!/cygwin/bin/bash.exe # Script that adds appropriate markup commands to meet the electronic # submission guidelines given by Dr. Chris Taylor # t a y l o r@msoe.edu, 10-4-1999 # Modified: t a y l o r@msoe.edu, 5-9-2001: rewritten for XML submission procedure # Modified: t a y l o r@msoe.edu, 9-20-2001: changed imakefile to Imakefile # Modified: t a y l o r@msoe.edu, 10-4-2001: changed path for bash executable # Modified: t a y l o r@msoe.edu, 10-17-2002: gutted to only include source code # # Installation: Place this file in the subdirectory containing the # source code you wish to include in a report (call it gensrc) # Make the file executable (type: chmod +x gensrc) # Set appropriate values for the variables below # # Usage: Type "./gensrc" in the directory containing both the gensrc shell # script and the source files and Imakefile # Important note: You will need to modify the list of .cpp and .h files to # be included in your report. Please see the comment labelled # "SOURCE FILES" for details. # Assign variables OUT="sourceCode.xml" DT=`date` echo "
" > $OUT # SOURCE FILES: # Change the following list of .cpp and .h files to include the ones to # be included in your report. Note that they will be included in the # order they are listed here. Please place .h and .cpp pairs together # (as in the example) with the most heavily modified files first. for FILE in \ lab2.cpp \ point.h \ point.cpp \ line.h \ line.cpp \ image.h \ image.cpp \ shape.h \ shape.cpp \ lab2.pro; do echo "
" >> $OUT echo " > $OUT cat $FILE >> $OUT echo " ]]>" >> $OUT echo "
" >> $OUT echo "" >> $OUT done echo "
" >> $OUT