Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (6 sloc) 287 Bytes
#!/bin/bash
# give the last commit time to generated html as modification time
for i in `find . -name "*page" -type f | sed -e 's/^.\///'`; do
MTIME=`git log -1 --pretty=format:%ai $i | awk '{print $1$2}' | sed -e 's/[-]//g' -e 's/[:]//' -e 's/:/\./'`;
touch -m -t $MTIME ./$i
done
You can’t perform that action at this time.