comparison sbin/fzfs @ 386:84d2735fe7f6

Simplified version tagging a lot: it is also faster now. While being there: adjusting copyright year to end in 2023 now.
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 23 Feb 2023 01:08:31 +0100
parents 6be930eb7490
children bb0a0384b5da
comparison
equal deleted inserted replaced
385:d058f55fffea 386:84d2735fe7f6
2 # -*- indent-tabs-mode: nil; -*- 2 # -*- indent-tabs-mode: nil; -*-
3 #: 3 #:
4 #: A ZFS management helper tool. 4 #: A ZFS management helper tool.
5 #: 5 #:
6 #: :Author: Franz Glasner 6 #: :Author: Franz Glasner
7 #: :Copyright: (c) 2022 Franz Glasner. 7 #: :Copyright: (c) 2022-2023 Franz Glasner.
8 #: All rights reserved. 8 #: All rights reserved.
9 #: :License: BSD 3-Clause "New" or "Revised" License. 9 #: :License: BSD 3-Clause "New" or "Revised" License.
10 #: See LICENSE for details. 10 #: See LICENSE for details.
11 #: If you cannot find LICENSE see 11 #: If you cannot find LICENSE see
12 #: <https://opensource.org/licenses/BSD-3-Clause> 12 #: <https://opensource.org/licenses/BSD-3-Clause>
13 #: :ID: @(#)@@PKGORIGIN@@ $HGid$ 13 #: :ID: @(#)@@SIMPLEVERSIONTAG@@
14 #: 14 #:
15 15
16 set -eu 16 set -eu
17 17
18 VERSION="@@VERSION@@" 18 VERSION="@@VERSION@@"
374 # Global option handling 374 # Global option handling
375 # 375 #
376 while getopts "Vh" _opt ; do 376 while getopts "Vh" _opt ; do
377 case ${_opt} in 377 case ${_opt} in
378 V) 378 V)
379 printf 'ftjail v%s (rv:%s)\n' "${VERSION}" '@@HGREVISION@@' 379 printf 'ftjail %s\n' '@@SIMPLEVERSIONSTR@@'
380 exit 0 380 exit 0
381 ;; 381 ;;
382 h) 382 h)
383 echo "${USAGE}" 383 echo "${USAGE}"
384 exit 0 384 exit 0