mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
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:
5
Makefile
5
Makefile
@@ -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 $@
|
||||
|
||||
|
Reference in New Issue
Block a user