Skip to content

Commit

Permalink
Missed a script (tdloc)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 8, 2014
1 parent b3a10d8 commit 9885690
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/tdloc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#! /usr/bin/env bash
# Usage: tdloc <place> <maxly> [... trade.py options]
#
# Finds systems and their stations local to <place>
# that are within <ly> range.

. "${TRADEDIR:-.}/config.sh"

place=$1; shift
ly=$1; shift
if [[
-z $place || $place == -* ||
-z $ly || $ly == -*
]]
then
echo "ERROR: Usage: $0 <place> <ly> ..."
exit 1
fi

cmd="\"${TRADEPY}\" local \"$place\" --ly \"$ly\" $*"
echo \$ $cmd
eval "$cmd"

0 comments on commit 9885690

Please sign in to comment.