view tools/touch_suffixes.sh @ 523:9ac53695a44d tip

Update mktplinkfw to handle more boards
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 08 Jan 2016 23:53:34 +0200
parents dbf0b2cff3af
children
line wrap: on
line source
#!/bin/sh

TARGET=$1
echo ${TARGET}

DIRNAME=`dirname ${TARGET}`
FILENAME=`basename ${TARGET}`
SUFFIXES=`echo ${FILENAME} | sed 's/\\./ /g'`

FILE=""
for p in ${SUFFIXES} ; do
	if [ -z "${FILE}" ]; then
		FILE="${p}"
		continue;
	fi
	FILE="${FILE}.${p}"
	if [ ! -f ${DIRNAME}/${FILE} ]; then
		# Make it very old
		touch -t 197000000000 ${DIRNAME}/${FILE}
	fi
done


exit 0