Dolda2000 GitWeb
/
utils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Prioritize correctly between different matching files.
[utils.git]
/
rbtadd
1
#!/bin/sh
2
3
if [ $# -lt 1 ]; then
4
echo "usage: btadd URL..." >&2
5
exit 1
6
fi
7
8
for file in "$@"; do
9
if [ -r "$file" ]; then
10
rsc nerv.dolda2000.com btadd - <"$file" && rm -f "$file"
11
elif [[ "$file" == http*://* ]]; then
12
rsc nerv.dolda2000.com btadd "$file"
13
else
14
echo "rbtadd: $file: unreadable" >&2
15
fi
16
done