summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-11-27Add timeouts to shell clientv1.1.1Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-12fb-helper.c: Fix descriptionFlorian Pritz1-1/+1
This is not a script so don't call it one. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-09fb.1: Remove reference to fb_username/fb_passwordFlorian Pritz1-1/+1
These options don't exist and shouldn't have been documented. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-27Add support for config filev1.1Florian Pritz2-0/+25
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-09Lowercase most variable namesFlorian Pritz1-99/+99
I don't like the look of everything being upper case and it certainly complicates writing the variable names. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-09Move internal variables further downFlorian Pritz1-10/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-07Makefile: Honor LDFLAGSFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: only display progress bar is stderr is a ttyFlorian Pritz1-4/+9
If fb is used in a cronjob we don't care about the progress bar. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: initialise *curl and check before cleaning upFlorian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-08-15fix netrc line in help messagev1.0.5Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-06-12Fix bug with 0-byte files on Darwinv1.0.4n0nsense/masterFlorian Pritz1-1/+1
Seems like wc -c $file doesn't return "0 $file" on Darwin. wc -c < $file is simpler because it doesn't need cut and works fine, so we just use that. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-12Fix date in manpageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-11fb.1: move netrc information into the descriptionFlorian Pritz1-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-07Replace echo with printfFlorian Pritz1-24/+28
echo is inconsistent across different platforms and this also removes an unneeded fork. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-07Replace -n option to echo with | tr -d "\n"Florian Pritz1-1/+1
The echo builtin on darwin doesn't support any options and will output them. References: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/echo.1.html Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-14Makefile: install requires allFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-11fb.1: upstream now requires accounts, adapt the manpagev1.0.3Florian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-06Print "better" message when $file can't be readFlorian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04Makefile: add PREFIX supportFlorian Pritz1-3/+4
This allows users to easily install to /usr/local, instead of forcing them to change 3 variables. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04Error on 0-byte filesFlorian Pritz2-0/+10
No point in uploading a really empty file and it might even cause confusion to see an empty page when clicking the link. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04fb-helper: properly clean up upon errorFlorian Pritz1-5/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-15Makefile: get rid of MY_CFLAGS; allow users to override CFLAGSFlorian Pritz1-3/+2
CFLAGS=-O0 make; will still work as expected make CFLAGS=-O0; allows to completely override the flags, ignoring what is set in the makefile. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-14Makefile: create all manpage dirsv1.0.2Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-14Makefile: preserve some flags even if $CFLAGS is setv1.0.1Florian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-14properly quote all uses of $STAT.v1.0Moritz Wilhelmy1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-14unify `uname -s` casesFlorian Pritz1-5/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-01use pbcopy instead of xclip on DarwinFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-18fb.in: fix stat call on darwinFlorian Pritz1-2/+1
%b returns blocks, but we want bytes (%z) Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-16fb-helper.c: remove "OVER 9000" jokeFlorian Pritz1-3/+1
9000 hours is just over one year and probably nobody is ever going to hit this. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-14Fixes errors on Mac OS XMarkus1-0/+1
2012-02-10fb-helper.c: remove unused FORMAT_ARRAY_SIZE defineFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: change format_bytes() arguments and buffer sizeFlorian Pritz1-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: clean up curl options; set follow locationFlorian Pritz1-2/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: remove unused warning for callback parametersFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: calculate a moving average of the upload speedFlorian Pritz1-5/+32
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: calculate ETA for the uploadFlorian Pritz1-3/+36
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-26change license in manpageFlorian Pritz1-14/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-26fb.1: replace "folder" with "directory"Florian Pritz1-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-26fb.1: adapt for this branch; misc style changesFlorian Pritz1-37/+33
- reorder options alphabetically - remove BUGS section since it doesn't apply any more Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-26first draft of a mdoc(7) manpage replacing the podMoritz Wilhelmy4-91/+153
Conflicts: Makefile fb.pod Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25add -# to reduce curl progress outputFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25Makefile: replace install -D with -dFlorian Pritz1-3/+6
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2012-01-25fall back to openssl if base64 executable is not availableFlorian Pritz1-1/+13
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2012-01-25check for getopts before using itFlorian Pritz1-0/+5
busybox sh doesn't have it and will now display an error. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25merge functions and shell helper into main scriptFlorian Pritz4-52/+51
This makes the main script able to run alone again. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25fb-helper.sh: base64 encode the filename if there is a commaFlorian Pritz1-2/+2
The server will decode this and use it instead of the filename sent with the file itself. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25fb-helper.c: catch read() errorsFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-04fix stat calls on non-gnu systemsFlorian Pritz4-4/+20
Reported-by: Moritz Wilhelmy <moritz+git@wzff.de> Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-04move to subdirectory in LIBDIRFlorian Pritz1-4/+5
This allows us to have more than one helper file Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-11add bash version of fb-helper.cFlorian Pritz2-0/+28
Using the bash helper can be forced by running "make LIBCURL=". Signed-off-by: Florian Pritz <bluewind@xinu.at>