summaryrefslogtreecommitdiffstats
path: root/fb-helper.sh.in
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-01-25 15:25:12 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-01-25 16:14:16 +0100
commitcc5474d7efe6845e2f89ac915d6e1289b26044b2 (patch)
treec19cd5e743b96fc99d35abd41a3d8658a70fe9c2 /fb-helper.sh.in
parent139febd183efe61da763ea06e873460e0478cc69 (diff)
merge functions and shell helper into main script
This makes the main script able to run alone again. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb-helper.sh.in')
-rw-r--r--fb-helper.sh.in24
1 files changed, 0 insertions, 24 deletions
diff --git a/fb-helper.sh.in b/fb-helper.sh.in
deleted file mode 100644
index 0c023fb..0000000
--- a/fb-helper.sh.in
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-mode=$1
-url=$2
-file=$3
-
-LIBDIR="@LIBDIR@"
-
-source "$LIBDIR/functions"
-
-USERAGENT="fb-client/shell-@VERSION@"
-CURLOPTS="-n -L -A $USERAGENT"
-
-if [ "$mode" = "u" ]; then
- basefilename=`basename -- "$file"`
- if [ `$STAT -- "$file"` -eq "0" ] || echo "$basefilename" | grep -F -q ","; then
- base64fn=`echo "$basefilename" | base64 -w0 `
- curl $CURLOPTS -F "file=@-" -F "filename=$base64fn" "$url" < "$file" -o /dev/stdout
- else
- curl $CURLOPTS -F "file=@$file" "$url" -o /dev/stdout
- fi
-else
- curl $CURLOPTS "$url"
-fi