Skip to content

Commit

Permalink
Add script to show vers of some built bins.
Browse files Browse the repository at this point in the history
The script detects the platform and calls the appropriate bins
accordingly.
  • Loading branch information
davecgh committed Jun 12, 2023
1 parent 2e64e63 commit 5360e04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions showvers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

set -e

TUPLE=$(go version | perl -lane 'print $F[-1] =~ s,/,-,r')

for APP in dcrd dcrctl dcrwallet dexc dexcctl dcrlncli dcrlnd dexc-tray dexcctl politeiavoter; do
APP="./bin/${TUPLE}/${APP}"
[ -x "${APP}" ] && "${APP}" --version || echo "WARNING: ${APP} is not built"
done

0 comments on commit 5360e04

Please sign in to comment.