2012-04-10 23:17:43 +02:00
|
|
|
#! @shell@
|
2014-12-27 21:43:04 +01:00
|
|
|
|
|
|
|
case "$1" in
|
2016-07-13 09:11:32 +02:00
|
|
|
-h|--help)
|
2016-07-12 16:29:13 +02:00
|
|
|
exec man nixos-version
|
|
|
|
exit 1
|
2016-07-13 09:11:32 +02:00
|
|
|
;;
|
2014-12-27 21:43:04 +01:00
|
|
|
--hash|--revision)
|
2017-04-01 02:00:00 +02:00
|
|
|
echo "@revision@"
|
2014-12-27 21:43:04 +01:00
|
|
|
;;
|
|
|
|
*)
|
2017-04-01 02:00:00 +02:00
|
|
|
echo "@version@ (@codeName@)"
|
2014-12-27 21:43:04 +01:00
|
|
|
;;
|
|
|
|
esac
|