openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

hg-set-mtime.sh (291B)


      1 #!/bin/bash
      2 
      3 if [ ! -d .hg ]; then
      4     echo no .hg directory found. Is this a mercurial controlled directory?
      5     exit 4
      6 fi
      7 
      8 for sf in `find -type f -not -path "./.hg*"`; do
      9     d=`hg log $sf -l1 --template '{date|isodate}'`
     10     echo setze Datum $d für Datei $sf
     11     touch $sf -d "$d"
     12 done