7 if [ "$DEBUG" = "yes" ]; then
20 while [ "$1" != "" ]; do
30 if [ "$FILES" = "" ]; then
40 debug "STARTYEAR= ${STARTYEAR}"
41 debug "FILES= ${FILES}"
49 sed -n '/^\/\*@1@\*\//,$p' $1 >${1}.tmp
50 if [ -f '(c).1' ]; then
51 (sed 's/@@F@@/'${1}'/g
52 s/@@S@@/'${STARTYEAR}'/g
53 s/@@Y@@/'${YEAR}'/g' '(c).1'
58 * Simulator of MCS51 ${1}
60 * Copyright (c) Drotos Daniel, Talker Bt. ${STARTYEAR},${YEAR}
69 for FILE in ${FILES}; do
70 debug "Checking ${FILE}..."
71 if grep '^/\*@1@\*/' $FILE >/dev/null; then
73 debug "/*@1@*/ marker found in ${FILE}"
77 debug "/*@1@*/ marker not found in ${FILE}"