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)
commit23fd4e65bafb7856770075522111bcba3cb3b6fb
tree8e4c635cfb307ff46b464bcfe4c499d04e0eb158
parent37b0d547db63132cfd24ec62a1c4e25de63ecce2
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