git.cweiske.de
/
stouyapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Write game data version info to www/game-data-version
[stouyapi.git]
/
bin
/
import-game-data.php
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index 98e0a4cd17be207c174aba6b31223f0943613b70..5d454f4020333e192672a56e45173608010b331a 100755
(executable)
--- 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 = [];
$games = [];
$count = 0;
$developers = [];