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 Mar 2017 19:37:36 +0000 (20:37 +0100)
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>

No differences found