X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rbtadd;fp=rbtadd;h=3dad05ad6e0143351b8a54eda78e7501bc359932;hb=0c0ef5c73fa675decb4339fc6a858c96d0878996;hp=0000000000000000000000000000000000000000;hpb=e299213eed6a1a3eb42b6f3647b7b2890f447266;p=utils.git diff --git a/rbtadd b/rbtadd new file mode 100755 index 0000000..3dad05a --- /dev/null +++ b/rbtadd @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then + echo "usage: btadd URL..." >&2 + exit 1 +fi + +for file in "$@"; do + if [ -r "$file" ]; then + rsc pc17 btadd -o - <"$file" && rm -f "$file" + elif [[ "$file" == http*://* ]]; then + rsc pc17 btadd -o "$file" + else + echo "rbtadd: $file: unreadable" >&2 + fi +done