scripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback
authorJo-Philipp Wich <jo@mein.io>
Tue, 31 Jan 2017 06:50:29 +0000 (07:50 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Feb 2017 23:13:50 +0000 (00:13 +0100)
commit68bef935d52ae05c23233f2325970f56948a0558
treea9b18f29b1cf9015c6095a70b33234f01c2dea92
parent9525743c076393336cd2129539c974f8a01c7894
scripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback

Add a fallback case to get_source_date_epoch.sh which reports the modification
time of the script itself in case there is no SCM information available, e.g.
when downloading .tar.gz or .zip tarballs produced by Github.

Also fix the mercurial case while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
scripts/get_source_date_epoch.sh