修正时间戳错误的工具
由于时差的影响,每次新版本的 eva 时间戳都太超前了,导致编译报错,我写了一个小脚本 tchdir 解决这个问题。先要赋予可执行权限:
[code:1]chmod a+x tchdir[/code:1]
然后把这个 tchdir 放到 /bin 就能用了
[code:1]
#!/bin/bash
# tchdir----touch dir(s) and files(s) recursively, you can modify the
# time stamps of all the files in the target dir(s).
# USAGE: tchdir <dir1 dir2... file3 file4...>
for F in $* ; do
touch $F
if [ -d $F ] ; then
cd $F
$0 *
cd ..
fi
done
[/code:1]