1#!/bin/sh
2
3while [ "$1" != "" ]; do
4  case $1 in
5    --version)
6        /bin/cat <<'OUTPUT'
7gpg (GnuPG) 2.2.4
8libgcrypt 1.8.1
9Copyright (C) 2017 Free Software Foundation, Inc.
10License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
11This is free software: you are free to change and redistribute it.
12There is NO WARRANTY, to the extent permitted by law.
13
14Home: /root/.gnupg
15Supported algorithms:
16Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
17Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
18        CAMELLIA128, CAMELLIA192, CAMELLIA256
19Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
20Compression: Uncompressed, ZIP, ZLIB, BZIP2
21OUTPUT
22      ;;
23    -?*)
24      echo "Unknown option: $1"
25      ;;
26    *)
27      break
28  esac
29  shift
30done
31