• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision00c36afad2296092106653f2dea4c290ebe37bfc (tree)
Time2014-06-11 01:39:36
Authorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

Keep the file timesamp of commit time

Change Summary

Incremental Difference

--- a/release.sh
+++ b/release.sh
@@ -205,6 +205,15 @@ if [ "$__git" ] ; then
205205 cd $pkg_dir
206206 echo git reset --hard "$tag"
207207 git reset --hard "$tag"
208+
209+ # Set file timestamp
210+ for FILE in $(git ls-files); do
211+ TIME=$(git log --pretty=format:%ci -n1 $FILE)
212+ echo $TIME'\t'$FILE
213+ STAMP=$(date -d "$TIME" +"%y%m%d%H%M.%S")
214+ touch -t $STAMP $FILE
215+ done
216+
208217 cd ..
209218 else
210219 exit