Backup the config file to a timestamped name to keep from possibly

overwriting user-modified configs.

Add read/write instructions for all memory types for ATMEGA103,
ATMEGA128, ATMEGA16, and ATMEGA8.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@132 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bsd
2002-04-07 16:03:58 +00:00
parent 9924a6d545
commit 7a55ebe6f8
2 changed files with 181 additions and 21 deletions

View File

@@ -80,8 +80,9 @@ ${CONFIGDIR}/avrprog.conf.sample : avrprog.conf.sample
${CONFIGDIR}/avrprog.conf : avrprog.conf.sample
@if [ -f ${CONFIGDIR}/avrprog.conf ]; then \
echo "NOTE: backing up ${CONFIGDIR}/avrprog.conf to ${CONFIGDIR}/avrprog.conf.old"; \
cp -p ${CONFIGDIR}/avrprog.conf ${CONFIGDIR}/avrprog.conf.old; \
export TS=`date '+%Y%m%d%H%M%S'`; \
echo "NOTE: backing up ${CONFIGDIR}/avrprog.conf to ${CONFIGDIR}/avrprog.conf.$${TS}"; \
cp -p ${CONFIGDIR}/avrprog.conf ${CONFIGDIR}/avrprog.conf.$${TS}; \
fi
${INSTALL_DATA} avrprog.conf.sample $@