annotate tools/touch_suffixes.sh @ 421:c685b3c5f40b

Update MPD's Makefile.
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 14 Sep 2012 02:20:50 +0300
parents dbf0b2cff3af
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
232
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
1 #!/bin/sh
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
2
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
3 TARGET=$1
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
4 echo ${TARGET}
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
5
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
6 DIRNAME=`dirname ${TARGET}`
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
7 FILENAME=`basename ${TARGET}`
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
8 SUFFIXES=`echo ${FILENAME} | sed 's/\\./ /g'`
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
9
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
10 FILE=""
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
11 for p in ${SUFFIXES} ; do
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
12 if [ -z "${FILE}" ]; then
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
13 FILE="${p}"
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
14 continue;
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
15 fi
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
16 FILE="${FILE}.${p}"
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
17 if [ ! -f ${DIRNAME}/${FILE} ]; then
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
18 # Make it very old
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
19 touch -t 197000000000 ${DIRNAME}/${FILE}
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
20 fi
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
21 done
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
22
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
23
dbf0b2cff3af save suffix based build work
ray@terran.dlink.ua
parents:
diff changeset
24 exit 0