summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-10-10remove unused USERAGENT variableFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-10-09fb-helper.c: main() to increase readabilityFlorian Pritz1-42/+49
This moves some code, removes a big if/else by bailing early and adds comments. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-10-09fb-helper.c: improve readabilityFlorian Pritz1-9/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-15use define instead of sed for VERSION expansion in helperFlorian Pritz3-9/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-15fix mktemp lineMoritz Wilhelmy1-1/+1
"-t" expands to $TMPDIR (or /tmp if unset), which means, the user can override in which directory temporary files are created. This works with GNU mktemp (although GNU deprecated -t) as well as BSD mktemp (does not replace X by random characters but rather appends them; this does not matter much) and busybox mktemp (which requires the number of X's to be exactly 6)
2011-09-15avoid reading output from type shell-builtinMoritz Wilhelmy1-1/+1
2011-09-12remove unneeded temp variableFlorian Pritz1-3/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-12rewrite format_bytes()Florian Pritz2-15/+17
This removes the dependency on math.h/libm and is easier to understand. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-12improve error handlingFlorian Pritz2-20/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-12rework tar/compression code; reduce dependenciesFlorian Pritz1-30/+37
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-11Revert "add -C option: gpg encryption"v0.9Florian Pritz2-17/+1
This reverts commit df54bdd9eeb043265a1446f8242037c983047cb0. The way this was implemented is pretty limited so it's better if the user runs gpg manually. Conflicts: fb.in Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-11fetch history from serverFlorian Pritz1-15/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-15quote filename and add date to -HFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-15Merge branch 'history'Florian Pritz1-3/+27
2011-08-15don't add error to the historyFlorian Pritz1-3/+5
If $URL is not a URL the upload failed for some reason, so it should not be added to the history. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-09remove ids from the history when called with -dFlorian Pritz1-1/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-09add a local history; -H optionFlorian Pritz1-1/+18
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-09refresh progress more oftenFlorian Pritz1-4/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-07-01fb-upload.c: fix synopsisFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-27add -C option: gpg encryptionFlorian Pritz2-1/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-26don't include curl/types.hv0.8.1Florian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-07remove unneded quotes in dist targetFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-06remove redundancy in makefileFlorian Pritz1-6/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-05don't overwrite CFLAGS if setFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-05fix segfault if called without argumentsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-04display error when required executables are missingv0.8Florian Pritz1-0/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-04use -c for decompression when used with -gFlorian Pritz2-2/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-04Makefile: replace - with . in $(VERSION)Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-04remove dependency on curl binaryFlorian Pritz4-72/+69
fb-upload is now called fb-helper which supports downloading and uploading Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-03print errors to stderrFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-06-03print an error if -t is used when operating on stdinFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-06-03fix indentation in help messageFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-06-03display error when calling -d or -g without IDFlorian Pritz1-1/+4
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-06-03simplify curl callsFlorian Pritz1-6/+2
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-06-03move -d and -g codeFlorian Pritz1-12/+16
If these switches are present and there are no arguments the program should exit and not try to upload stdin. Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-06-03clarify -d and -g usageFlorian Pritz2-4/+4
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-05-13time out after 30 sec of stalled uploadv0.7.3Florian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-05-06don't clear line when printing errorsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-05-06handle libcurl errorsFlorian Pritz1-1/+11
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-04-19fix segfault in format_bytesv0.7.2Florian Pritz1-2/+13
0 or very big values can cause unwanted behavior so fall back to the highest suffix for big ones or to bytes for small ones. Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-04-11add missing file to dist tarballv0.7.1Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-04-10don't run xclip if $CLIPBOARD is emptyv0.7Florian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-04-10use type to determine if xclip is availableFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-23rename fb.c.in -> fb-upload.c.inFlorian Pritz3-7/+7
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-23switch license to GPLv3Florian Pritz3-10/+682
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-21fall back to curl if fb-upload is unavailableFlorian Pritz1-3/+21
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-21fb.pod: add a pipe exampleFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-21fb.pod: rewordFlorian Pritz1-5/+5
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-21fb.c: fix cleanup of progressFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-20add .PHONY target to makefileFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@server-speed.net>