Usage: code-for-philly.bash
https://code-for-philly.gitbook.io/chime/ をダウンロードし, 過去のダウンロード分があれば Gitbook JSON の変更有無を比較します. もしも変更があった場合は日付ディレクトリに保存され,変更差分を確認するための diff コマンドラインを stdout に出力します.
stdout に出力された内容は code-for-philly.bash.log にも保存されます.
注意: ログや日付ディレクトリはカレントディレクトリ下に作成されます!
code-for-philly.bash.log の出力例
2020-04-05_18:04:58 First download.
2020-04-05_18:09:56 は 2020-04-05_17:57:32 から変更されています. 下記コマンドでファイル毎の差分を確認できます.
diff -r 2020-04-05_17:57:32/json/chime/what-is-chime/dashboard-outputs-descriptions 2020-04-05_18:09:56/json/chime/what-is-chime/dashboard-outputs-descriptions
diff -r 2020-04-05_17:57:32/json/chime/app-partners 2020-04-05_18:09:56/json/chime/app-partners
diff -r 2020-04-05_17:57:32/json/chime/open-source/making-your-own-chime-app/building-the-app-locally 2020-04-05_18:09:56/json/chime/open-source/making-your-own-chime-app/building-the-app-locally
2020-04-05_18:11:27 は 2020-04-05_18:09:56 から変更されています. 下記コマンドでファイル毎の差分を確認できます.
diff -r 2020-04-05_18:09:56/json/chime/what-is-chime/dashboard-outputs-descriptions 2020-04-05_18:11:27/json/chime/what-is-chime/dashboard-outputs-descriptions
2020-04-05_18:13:53 は 2020-04-05_18:11:27 から変更がありません.
2020-04-05_18:14:11 は 2020-04-05_18:11:27 から変更がありません.