diff --git a/Makefile b/Makefile index e141e82..b0af855 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ check: perl -wc frfac perlcritic frfac + ksh93 -n getviaphone install: sudo install -o root -g wheel -m 0755 -d /usr/local/bin sudo install -o root -g wheel -m 0555 frfac /usr/local/bin + sudo install -o root -g wheel -m 0555 getviaphone /usr/local/bin diff --git a/getviaphone b/getviaphone new file mode 100644 index 0000000..35d791b --- /dev/null +++ b/getviaphone @@ -0,0 +1,7 @@ +#!/bin/sh +# Download a file via the phone. + +u=$1 +f=${u%%\?*} +f=${f##*/} +ssh phone "cd downloads/tmp;wget -O- $u" > $f