diff --git a/bin/ws_find b/bin/ws_find index 3106efb..0488567 100755 --- a/bin/ws_find +++ b/bin/ws_find @@ -15,6 +15,7 @@ + list expired/moved workspaces (c) Holger Berger 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 + (c) Christoph Niethammer 2024 workspace++ is based on workspace by Holger Berger, Thomas Beisel and Martin Hecht @@ -78,7 +79,7 @@ config = yaml.safe_load(open("/etc/ws.conf")) usage = "Usage: ws_find [options] [workspacename]" # option configuration -parser = OptionParser(usage=usage) +parser = OptionParser(usage=usage, version="workspace version 1.5.0") parser.add_option("-F", "--filesystem", dest="filesystem", help="filesystem to search workspace in") parser.add_option("-l", "--list", action="store_true", dest="list", default=False, help="list valid filesystem names") (options, args) = parser.parse_args() diff --git a/bin/ws_list b/bin/ws_list index f5341e8..85a97dc 100755 --- a/bin/ws_list +++ b/bin/ws_list @@ -17,6 +17,7 @@ + list expired/moved workspaces (c) Holger Berger 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 + (c) Christoph Niethammer 2024 workspace++ is based on workspace by Holger Berger, Thomas Beisel and Martin Hecht @@ -131,7 +132,7 @@ if os.geteuid() == 0 or os.getuid() == 0: admin = True # option configuration -parser = OptionParser(usage="Usage: %prog [options] [pattern]") +parser = OptionParser(usage="Usage: %prog [options] [pattern]", version="workspace version 1.5.0") parser.add_option("-F", "--filesystem", dest="filesystem", help="filesystem to list workspaces from") parser.add_option("-g", action="store_true", dest="groupws", default=False, help="also list group workspaces") parser.add_option("-l", action="store_true", dest="filesystemlist", default=False, help="list available filesystems") diff --git a/bin/ws_register b/bin/ws_register index 8fc023b..b19d566 100755 --- a/bin/ws_register +++ b/bin/ws_register @@ -18,7 +18,7 @@ (c) Holger Berger 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 (c) Bernd Krisckok 2017 - (c) Christoph Niethammer 2021-2022 + (c) Christoph Niethammer 2021-2022,2024 workspace++ is based on workspace by Holger Berger, Thomas Beisel and Martin Hecht @@ -73,6 +73,7 @@ username = pwd.getpwuid(uid).pw_name config = yaml.safe_load(open("/etc/ws.conf")) parser = argparse.ArgumentParser(description="Creates/updates symbolic links to workspaces in a directory") +parser.add_argument("--version", action='version', version='workspace version 1.5.0') parser.add_argument( "directory", metavar="directory", type=pathlib.Path, help="directory in which links shall be created/updated" ) diff --git a/bin/ws_share b/bin/ws_share index a772331..a83ef0d 100755 --- a/bin/ws_share +++ b/bin/ws_share @@ -13,7 +13,7 @@ # A workaround to update permissions is to unshare and re-share the workspace # with the users. # -# Copyright(c) 2021 Christoph Niethammer +# Copyright(c) 2021-2024 Christoph Niethammer # progname=$(basename $0) @@ -27,6 +27,10 @@ if [[ $? -ne 4 ]]; then exit 1 fi +function print_version() { + echo "workspace version 1.5.0" +} + function usage() { cat <