From 1a02f7db30e79762fdd5475494941ae286a8ebc1 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Sat, 20 Jan 2018 18:34:17 +0000 Subject: [PATCH] Update debian contrib files to match Dogecoin (#1449) --- contrib/debian/README.md | 14 ++++---- contrib/debian/bitcoin-qt.desktop | 13 -------- contrib/debian/bitcoin-qt.manpages | 1 - contrib/debian/bitcoin-tx.bash-completion | 1 - contrib/debian/bitcoin-tx.install | 1 - contrib/debian/bitcoin-tx.manpages | 1 - contrib/debian/bitcoind.bash-completion | 2 -- contrib/debian/bitcoind.examples | 1 - contrib/debian/bitcoind.install | 2 -- contrib/debian/bitcoind.manpages | 2 -- contrib/debian/control | 33 ++++++++++--------- contrib/debian/dogecoin-qt.desktop | 13 ++++++++ ...bitcoin-qt.install => dogecoin-qt.install} | 6 ++-- ...verrides => dogecoin-qt.lintian-overrides} | 2 +- contrib/debian/dogecoin-qt.manpages | 1 + ...tcoin-qt.protocol => dogecoin-qt.protocol} | 4 +-- contrib/debian/dogecoin-tx.bash-completion | 1 + contrib/debian/dogecoin-tx.install | 1 + contrib/debian/dogecoin-tx.manpages | 1 + contrib/debian/dogecoind.bash-completion | 2 ++ contrib/debian/dogecoind.examples | 1 + contrib/debian/dogecoind.install | 2 ++ ...-overrides => dogecoind.lintian-overrides} | 2 +- contrib/debian/dogecoind.manpages | 2 ++ .../examples/{bitcoin.conf => dogecoin.conf} | 30 ++++++++--------- contrib/debian/rules | 7 ++-- contrib/debian/watch | 2 +- ...h-completion => dogecoind.bash-completion} | 14 ++++---- 28 files changed, 83 insertions(+), 79 deletions(-) delete mode 100644 contrib/debian/bitcoin-qt.desktop delete mode 100644 contrib/debian/bitcoin-qt.manpages delete mode 100644 contrib/debian/bitcoin-tx.bash-completion delete mode 100644 contrib/debian/bitcoin-tx.install delete mode 100644 contrib/debian/bitcoin-tx.manpages delete mode 100644 contrib/debian/bitcoind.bash-completion delete mode 100644 contrib/debian/bitcoind.examples delete mode 100644 contrib/debian/bitcoind.install delete mode 100644 contrib/debian/bitcoind.manpages create mode 100644 contrib/debian/dogecoin-qt.desktop rename contrib/debian/{bitcoin-qt.install => dogecoin-qt.install} (50%) rename contrib/debian/{bitcoin-qt.lintian-overrides => dogecoin-qt.lintian-overrides} (52%) create mode 100644 contrib/debian/dogecoin-qt.manpages rename contrib/debian/{bitcoin-qt.protocol => dogecoin-qt.protocol} (73%) create mode 100644 contrib/debian/dogecoin-tx.bash-completion create mode 100644 contrib/debian/dogecoin-tx.install create mode 100644 contrib/debian/dogecoin-tx.manpages create mode 100644 contrib/debian/dogecoind.bash-completion create mode 100644 contrib/debian/dogecoind.examples create mode 100644 contrib/debian/dogecoind.install rename contrib/debian/{bitcoind.lintian-overrides => dogecoind.lintian-overrides} (53%) create mode 100644 contrib/debian/dogecoind.manpages rename contrib/debian/examples/{bitcoin.conf => dogecoin.conf} (84%) rename contrib/{bitcoind.bash-completion => dogecoind.bash-completion} (79%) diff --git a/contrib/debian/README.md b/contrib/debian/README.md index fab9cc238..3366ed5d4 100644 --- a/contrib/debian/README.md +++ b/contrib/debian/README.md @@ -1,21 +1,21 @@ Debian ==================== -This directory contains files used to package bitcoind/bitcoin-qt -for Debian-based Linux systems. If you compile bitcoind/bitcoin-qt yourself, there are some useful files here. +This directory contains files used to package dogecoind/dogecoin-qt +for Debian-based Linux systems. If you compile dogecoind/dogecoin-qt yourself, there are some useful files here. -## bitcoin: URI support ## +## dogecoin: URI support ## -bitcoin-qt.desktop (Gnome / Open Desktop) +dogecoin-qt.desktop (Gnome / Open Desktop) To install: - sudo desktop-file-install bitcoin-qt.desktop + sudo desktop-file-install dogecoin-qt.desktop sudo update-desktop-database If you build yourself, you will either need to modify the paths in -the .desktop file or copy or symlink your bitcoin-qt binary to `/usr/bin` +the .desktop file or copy or symlink your dogecoin-qt binary to `/usr/bin` and the `../../share/pixmaps/bitcoin128.png` to `/usr/share/pixmaps` -bitcoin-qt.protocol (KDE) +dogecoin-qt.protocol (KDE) diff --git a/contrib/debian/bitcoin-qt.desktop b/contrib/debian/bitcoin-qt.desktop deleted file mode 100644 index 593d7584a..000000000 --- a/contrib/debian/bitcoin-qt.desktop +++ /dev/null @@ -1,13 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=Bitcoin Core -Comment=Connect to the Bitcoin P2P Network -Comment[de]=Verbinde mit dem Bitcoin peer-to-peer Netzwerk -Comment[fr]=Bitcoin, monnaie virtuelle cryptographique pair à pair -Comment[tr]=Bitcoin, eşten eşe kriptografik sanal para birimi -Exec=bitcoin-qt %u -Terminal=false -Type=Application -Icon=bitcoin128 -MimeType=x-scheme-handler/bitcoin; -Categories=Office;Finance; diff --git a/contrib/debian/bitcoin-qt.manpages b/contrib/debian/bitcoin-qt.manpages deleted file mode 100644 index 9a3cc31c0..000000000 --- a/contrib/debian/bitcoin-qt.manpages +++ /dev/null @@ -1 +0,0 @@ -doc/man/bitcoin-qt.1 diff --git a/contrib/debian/bitcoin-tx.bash-completion b/contrib/debian/bitcoin-tx.bash-completion deleted file mode 100644 index 7acb0b0ae..000000000 --- a/contrib/debian/bitcoin-tx.bash-completion +++ /dev/null @@ -1 +0,0 @@ -contrib/bitcoin-tx.bash-completion bitcoin-tx diff --git a/contrib/debian/bitcoin-tx.install b/contrib/debian/bitcoin-tx.install deleted file mode 100644 index 2c21052a6..000000000 --- a/contrib/debian/bitcoin-tx.install +++ /dev/null @@ -1 +0,0 @@ -usr/local/bin/bitcoin-tx usr/bin diff --git a/contrib/debian/bitcoin-tx.manpages b/contrib/debian/bitcoin-tx.manpages deleted file mode 100644 index 861d49d07..000000000 --- a/contrib/debian/bitcoin-tx.manpages +++ /dev/null @@ -1 +0,0 @@ -doc/man/bitcoin-tx.1 diff --git a/contrib/debian/bitcoind.bash-completion b/contrib/debian/bitcoind.bash-completion deleted file mode 100644 index 5c69d78fb..000000000 --- a/contrib/debian/bitcoind.bash-completion +++ /dev/null @@ -1,2 +0,0 @@ -contrib/bitcoind.bash-completion bitcoind -contrib/bitcoin-cli.bash-completion bitcoin-cli diff --git a/contrib/debian/bitcoind.examples b/contrib/debian/bitcoind.examples deleted file mode 100644 index 4ded67d98..000000000 --- a/contrib/debian/bitcoind.examples +++ /dev/null @@ -1 +0,0 @@ -debian/examples/bitcoin.conf diff --git a/contrib/debian/bitcoind.install b/contrib/debian/bitcoind.install deleted file mode 100644 index 798ea851f..000000000 --- a/contrib/debian/bitcoind.install +++ /dev/null @@ -1,2 +0,0 @@ -usr/local/bin/bitcoind usr/bin -usr/local/bin/bitcoin-cli usr/bin diff --git a/contrib/debian/bitcoind.manpages b/contrib/debian/bitcoind.manpages deleted file mode 100644 index bab644ece..000000000 --- a/contrib/debian/bitcoind.manpages +++ /dev/null @@ -1,2 +0,0 @@ -doc/man/bitcoind.1 -doc/man/bitcoin-cli.1 diff --git a/contrib/debian/control b/contrib/debian/control index 0d6ad25e2..d5a4c78da 100644 --- a/contrib/debian/control +++ b/contrib/debian/control @@ -1,4 +1,4 @@ -Source: bitcoin +Source: dogecoin Section: utils Priority: optional Maintainer: Matt Corallo @@ -26,45 +26,48 @@ Build-Depends: debhelper, python, libzmq3-dev Standards-Version: 3.9.2 -Homepage: https://bitcoincore.org/ -Vcs-Git: git://github.com/bitcoin/bitcoin.git -Vcs-Browser: https://github.com/bitcoin/bitcoin +Homepage: http://www.dogecoin.com/ +Vcs-Git: git://github.com/dogecoin/dogecoin.git +Vcs-Browser: http://github.com/dogecoin/dogecoin -Package: bitcoind +Package: dogecoind Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: peer-to-peer network based digital currency - daemon - Bitcoin is a free open source peer-to-peer electronic cash system that + Dogecoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. . - This package provides the daemon, bitcoind, and the CLI tool - bitcoin-cli to interact with the daemon. + Full transaction history is stored locally at each client. This + requires 20+ GB of space, slowly growing. + . + This package provides the daemon, dogecoind, and the CLI tool + dogecoin-cli to interact with the daemon. -Package: bitcoin-qt +Package: dogecoin-qt Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: peer-to-peer network based digital currency - Qt GUI - Bitcoin is a free open source peer-to-peer electronic cash system that + Dogecoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. . - This package provides Bitcoin-Qt, a GUI for Bitcoin based on Qt. + This package provides Dogecoin-Qt, a GUI for Dogecoin based on Qt. -Package: bitcoin-tx +Package: dogecoin-tx Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: peer-to-peer digital currency - standalone transaction tool - Bitcoin is a free open source peer-to-peer electronic cash system that + Dogecoin is a free open source peer-to-peer electronic cash system that is completely decentralized, without the need for a central server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. . - This package provides bitcoin-tx, a command-line transaction creation - tool which can be used without a bitcoin daemon. Some means of + This package provides dogecoin-tx, a command-line transaction creation + tool which can be used without a dogecoin daemon. Some means of exchanging minimal transaction data with peers is still required. diff --git a/contrib/debian/dogecoin-qt.desktop b/contrib/debian/dogecoin-qt.desktop new file mode 100644 index 000000000..003d025b9 --- /dev/null +++ b/contrib/debian/dogecoin-qt.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Dogecoin Core +Comment=Connect to the Dogecoin P2P Network +Comment[de]=Verbinde mit dem Dogecoin peer-to-peer Netzwerk +Comment[fr]=Dogecoin, monnaie virtuelle cryptographique pair à pair +Comment[tr]=Dogecoin, eşten eşe kriptografik sanal para birimi +Exec=dogecoin-qt %u +Terminal=false +Type=Application +Icon=dogecoin128 +MimeType=x-scheme-handler/dogecoin; +Categories=Office;Finance; diff --git a/contrib/debian/bitcoin-qt.install b/contrib/debian/dogecoin-qt.install similarity index 50% rename from contrib/debian/bitcoin-qt.install rename to contrib/debian/dogecoin-qt.install index e0b32373b..383d11729 100644 --- a/contrib/debian/bitcoin-qt.install +++ b/contrib/debian/dogecoin-qt.install @@ -1,6 +1,6 @@ -usr/local/bin/bitcoin-qt usr/bin +usr/local/bin/dogecoin-qt usr/bin share/pixmaps/bitcoin32.xpm usr/share/pixmaps share/pixmaps/bitcoin16.xpm usr/share/pixmaps share/pixmaps/bitcoin128.png usr/share/pixmaps -debian/bitcoin-qt.desktop usr/share/applications -debian/bitcoin-qt.protocol usr/share/kde4/services/ +debian/dogecoin-qt.desktop usr/share/applications +debian/dogecoin-qt.protocol usr/share/kde4/services/ \ No newline at end of file diff --git a/contrib/debian/bitcoin-qt.lintian-overrides b/contrib/debian/dogecoin-qt.lintian-overrides similarity index 52% rename from contrib/debian/bitcoin-qt.lintian-overrides rename to contrib/debian/dogecoin-qt.lintian-overrides index 7fb230eca..f5c972923 100644 --- a/contrib/debian/bitcoin-qt.lintian-overrides +++ b/contrib/debian/dogecoin-qt.lintian-overrides @@ -1,2 +1,2 @@ # Linked code is Expat - only Debian packaging is GPL-2+ -bitcoin-qt: possible-gpl-code-linked-with-openssl +dogecoin-qt: possible-gpl-code-linked-with-openssl diff --git a/contrib/debian/dogecoin-qt.manpages b/contrib/debian/dogecoin-qt.manpages new file mode 100644 index 000000000..2a6af96e6 --- /dev/null +++ b/contrib/debian/dogecoin-qt.manpages @@ -0,0 +1 @@ +doc/man/dogecoin-qt.1 diff --git a/contrib/debian/bitcoin-qt.protocol b/contrib/debian/dogecoin-qt.protocol similarity index 73% rename from contrib/debian/bitcoin-qt.protocol rename to contrib/debian/dogecoin-qt.protocol index 014588d53..0d880761e 100644 --- a/contrib/debian/bitcoin-qt.protocol +++ b/contrib/debian/dogecoin-qt.protocol @@ -1,6 +1,6 @@ [Protocol] -exec=bitcoin-qt '%u' -protocol=bitcoin +exec=dogecoin-qt '%u' +protocol=dogecoin input=none output=none helper=true diff --git a/contrib/debian/dogecoin-tx.bash-completion b/contrib/debian/dogecoin-tx.bash-completion new file mode 100644 index 000000000..47712d68c --- /dev/null +++ b/contrib/debian/dogecoin-tx.bash-completion @@ -0,0 +1 @@ +contrib/dogecoin-tx.bash-completion dogecoin-tx diff --git a/contrib/debian/dogecoin-tx.install b/contrib/debian/dogecoin-tx.install new file mode 100644 index 000000000..c176b49c4 --- /dev/null +++ b/contrib/debian/dogecoin-tx.install @@ -0,0 +1 @@ +usr/local/bin/dogecoin-tx usr/bin diff --git a/contrib/debian/dogecoin-tx.manpages b/contrib/debian/dogecoin-tx.manpages new file mode 100644 index 000000000..d323ba7ef --- /dev/null +++ b/contrib/debian/dogecoin-tx.manpages @@ -0,0 +1 @@ +doc/man/dogecoin-tx.1 diff --git a/contrib/debian/dogecoind.bash-completion b/contrib/debian/dogecoind.bash-completion new file mode 100644 index 000000000..dfc8b6993 --- /dev/null +++ b/contrib/debian/dogecoind.bash-completion @@ -0,0 +1,2 @@ +contrib/dogecoind.bash-completion dogecoind +contrib/dogecoin-cli.bash-completion dogecoin-cli diff --git a/contrib/debian/dogecoind.examples b/contrib/debian/dogecoind.examples new file mode 100644 index 000000000..e6896553b --- /dev/null +++ b/contrib/debian/dogecoind.examples @@ -0,0 +1 @@ +debian/examples/dogecoin.conf diff --git a/contrib/debian/dogecoind.install b/contrib/debian/dogecoind.install new file mode 100644 index 000000000..27cb31d60 --- /dev/null +++ b/contrib/debian/dogecoind.install @@ -0,0 +1,2 @@ +usr/local/bin/dogecoind usr/bin +usr/local/bin/dogecoin-cli usr/bin \ No newline at end of file diff --git a/contrib/debian/bitcoind.lintian-overrides b/contrib/debian/dogecoind.lintian-overrides similarity index 53% rename from contrib/debian/bitcoind.lintian-overrides rename to contrib/debian/dogecoind.lintian-overrides index 3f9f140bd..6a920a350 100644 --- a/contrib/debian/bitcoind.lintian-overrides +++ b/contrib/debian/dogecoind.lintian-overrides @@ -1,2 +1,2 @@ # Linked code is Expat - only Debian packaging is GPL-2+ -bitcoind: possible-gpl-code-linked-with-openssl +dogecoind: possible-gpl-code-linked-with-openssl diff --git a/contrib/debian/dogecoind.manpages b/contrib/debian/dogecoind.manpages new file mode 100644 index 000000000..f2f18b37a --- /dev/null +++ b/contrib/debian/dogecoind.manpages @@ -0,0 +1,2 @@ +doc/man/dogecoind.1 +doc/man/dogecoin-cli.1 diff --git a/contrib/debian/examples/bitcoin.conf b/contrib/debian/examples/dogecoin.conf similarity index 84% rename from contrib/debian/examples/bitcoin.conf rename to contrib/debian/examples/dogecoin.conf index afbc7882e..d82492979 100644 --- a/contrib/debian/examples/bitcoin.conf +++ b/contrib/debian/examples/dogecoin.conf @@ -1,10 +1,10 @@ ## -## bitcoin.conf configuration file. Lines beginning with # are comments. +## dogecoin.conf configuration file. Lines beginning with # are comments. ## # Network-related settings: -# Run on the test network instead of the real bitcoin network. +# Run on the test network instead of the real dogecoin network. #testnet=0 # Run a regression test network @@ -44,11 +44,11 @@ # Use as many addnode= settings as you like to connect to specific peers #addnode=69.164.218.197 -#addnode=10.0.0.2:8333 +#addnode=10.0.0.2:22556 # Alternatively use as many connect= settings as you like to connect ONLY to specific peers #connect=69.164.218.197 -#connect=10.0.0.1:8333 +#connect=10.0.0.1:22556 # Listening mode, enabled by default except when 'connect' is being used #listen=1 @@ -57,10 +57,10 @@ #maxconnections= # -# JSON-RPC options (for controlling a running Bitcoin/bitcoind process) +# JSON-RPC options (for controlling a running Dogecoin/dogecoind process) # -# server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands +# server=1 tells Dogecoin-Qt and dogecoind to accept JSON-RPC commands #server=0 # Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6. @@ -68,7 +68,7 @@ #rpcbind= # If no rpcpassword is set, rpc cookie auth is sought. The default `-rpccookiefile` name -# is .cookie and found in the `-datadir` being used for bitcoind. This option is typically used +# is .cookie and found in the `-datadir` being used for dogecoind. This option is typically used # when the server and client are run as the same user. # # If not, you must set rpcuser and rpcpassword to secure the JSON-RPC api. The first @@ -80,7 +80,7 @@ # using the output from the script in share/rpcuser/rpcuser.py after providing a username: # # ./share/rpcuser/rpcuser.py alice -# String to be appended to bitcoin.conf: +# String to be appended to dogecoin.conf: # rpcauth=alice:f7efda5c189b999524f151318c0c86$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae # Your password: # DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E= @@ -92,7 +92,7 @@ # You can even add multiple entries of these to the server conf file, and client can use any of them: # rpcauth=bob:b2dd077cb54591a2f3139e69a897ac$4e71f08d48b4347cf8eff3815c0e25ae2e9a4340474079f55705f40574f4ec99 -# How many seconds bitcoin will wait for a complete RPC HTTP request. +# How many seconds dogecoin will wait for a complete RPC HTTP request. # after the HTTP connection is established. #rpcclienttimeout=30 @@ -103,16 +103,16 @@ # NOTE: opening up the RPC port to hosts outside your local trusted network is NOT RECOMMENDED, # because the rpcpassword is transmitted over the network unencrypted. -# server=1 tells Bitcoin-Qt to accept JSON-RPC commands. -# it is also read by bitcoind to determine if RPC should be enabled +# server=1 tells Dogecoin-Qt to accept JSON-RPC commands. +# it is also read by dogecoind to determine if RPC should be enabled #rpcallowip=10.1.1.34/255.255.255.0 #rpcallowip=1.2.3.4/24 #rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96 # Listen for RPC connections on this TCP port: -#rpcport=8332 +#rpcport=22555 -# You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind +# You can use Dogecoin or dogecoind to send commands to Dogecoin/dogecoind # running on another host using this option: #rpcconnect=127.0.0.1 @@ -131,14 +131,14 @@ # both prior transactions and several dozen future transactions. #keypool=100 -# Pay an optional transaction fee every time you send bitcoins. Transactions with fees +# Pay an optional transaction fee every time you send dogecoins. Transactions with fees # are more likely than free transactions to be included in generated blocks, so may # be validated sooner. #paytxfee=0.00 # User interface options -# Start Bitcoin minimized +# Start Dogecoin minimized #min=1 # Minimize to the system tray diff --git a/contrib/debian/rules b/contrib/debian/rules index 6885e3852..e6901969f 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -1,9 +1,10 @@ + #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- -#DEB_MAKE_CHECK_TARGET = test_bitcoin -#build/bitcoind:: -# $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_bitcoin) +#DEB_MAKE_CHECK_TARGET = test_dogecoin +#build/dogecoind:: +# $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_dogecoin) %: dh --with bash-completion $@ diff --git a/contrib/debian/watch b/contrib/debian/watch index 4d9e0cfa5..e81e6c040 100644 --- a/contrib/debian/watch +++ b/contrib/debian/watch @@ -2,4 +2,4 @@ version=3 # use qa.debian.org redirector; see man uscan opts=uversionmangle=s/(\d)(alpha|beta|rc)/$1~$2/,dversionmangle=s/~dfsg\d*// \ - http://githubredir.debian.net/github/bitcoin/bitcoin v(.*).tar.gz + http://githubredir.debian.net/github/dogecoin/dogecoin v(.*).tar.gz diff --git a/contrib/bitcoind.bash-completion b/contrib/dogecoind.bash-completion similarity index 79% rename from contrib/bitcoind.bash-completion rename to contrib/dogecoind.bash-completion index af87e97d8..f5bed8bed 100644 --- a/contrib/bitcoind.bash-completion +++ b/contrib/dogecoind.bash-completion @@ -1,15 +1,15 @@ -# bash programmable completion for bitcoind(1) and bitcoin-qt(1) +# bash programmable completion for dogecoind(1) and bitcoin-qt(1) # Copyright (c) 2012-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. -_bitcoind() { +_dogecoind() { local cur prev words=() cword - local bitcoind + local dogecoind - # save and use original argument to invoke bitcoind for -help + # save and use original argument to invoke dogecoind for -help # it might not be in $PATH - bitcoind="$1" + dogecoind="$1" COMPREPLY=() _get_comp_words_by_ref -n = cur prev words cword @@ -33,7 +33,7 @@ _bitcoind() { # only parse -help if senseful if [[ -z "$cur" || "$cur" =~ ^- ]]; then local helpopts - helpopts=$($bitcoind -help 2>&1 | awk '$1 ~ /^-/ { sub(/=.*/, "="); print $1 }' ) + helpopts=$($dogecoind -help 2>&1 | awk '$1 ~ /^-/ { sub(/=.*/, "="); print $1 }' ) COMPREPLY=( $( compgen -W "$helpopts" -- "$cur" ) ) fi @@ -45,7 +45,7 @@ _bitcoind() { ;; esac } && -complete -F _bitcoind bitcoind bitcoin-qt +complete -F _dogecoind dogecoind bitcoin-qt # Local variables: # mode: shell-script