X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/300801fed03aeee4c89a01b9cad13ba1a2e29f43..b29b50fec73ea9c3e78a058e5c8948a0d0e5f053:/bin/import-game-data.php diff --git a/bin/import-game-data.php b/bin/import-game-data.php index 98e0a4c..5d454f4 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -50,6 +50,13 @@ foreach (file($foldersFile) as $line) { } } +//store git repository version of last folder +$workdir = getcwd(); +chdir($folder); +$gitDate = `git log --max-count=1 --format="%h %cI"`; +chdir($workdir); +file_put_contents($wwwDir . '/game-data-version', $gitDate); + $games = []; $count = 0; $developers = [];