| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function shell_doTopComment { |
| |
| |
| local TEMPLATE="${TUNEUP_BACKEND_CONFIG}/topcomment.sed" |
| |
| |
| cli_checkFiles $TEMPLATE |
| |
| |
| local INSTANCE=$(cli_getTemporalFile $TEMPLATE) |
| |
| |
| cp $TEMPLATE $INSTANCE |
| |
| |
| |
| cli_checkFiles $INSTANCE |
| |
| |
| cli_expandTMarkers $INSTANCE |
| |
| |
| sed -r -i -f $INSTANCE $FILE |
| |
| |
| if [[ -f ${INSTANCE} ]];then |
| rm ${INSTANCE} |
| fi |
| |
| } |