generate-version.sh: fix script inside of a tarball
When configuring accountsservice from inside of a tarball where the .git
directory doesn't exist it will fail.
Running command: /var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-23.13.9/./generate-version.sh
--- stdout ---
--- stderr ---
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
date: invalid date ‘@’
meson.build:3:11: ERROR: Command `/var/tmp/portage/sys-apps/accountsservice-23.13.9/work/accountsservice-23.13.9/./generate-version.sh` failed with status 1.
This is because it fails to detect it is not a working git repo and errors on the date(1)
command.