Mercurial > hgrepos > Python > apps > py-cutils
annotate shasum.py @ 350:3fa1b95d9498
treesum: Print also a help if no command is given
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 01 Apr 2025 19:19:07 +0200 |
| parents | 48430941c18c |
| children |
| rev | line source |
|---|---|
|
74
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 # -*- coding: utf-8 -*- |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 # :- |
|
323
48430941c18c
Adopt copyright and license wordings from https://reuse.software/faq/.
Franz Glasner <fzglas.hg@dom66.de>
parents:
122
diff
changeset
|
3 # SPDX-FileCopyrightText: © 2020-2025 Franz Glasner |
|
48430941c18c
Adopt copyright and license wordings from https://reuse.software/faq/.
Franz Glasner <fzglas.hg@dom66.de>
parents:
122
diff
changeset
|
4 # SPDX-License-Identifier: BSD-3-Clause |
|
74
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 # :- |
| 113 | 6 r"""Pure Python implementation of `shasum`. |
|
74
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
7 |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 """ |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 from __future__ import absolute_import |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 import sys |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 import cutils.shasum |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 |
|
6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
17 sys.exit(cutils.shasum.main()) |
