9 if [ "$0" == "dropbox_to_read" ]; then
10 PDF_FILE=$(bibtex_to_paper --only-print "$1")
13 cp -l "$PDF_FILE" "$TMPDIR/a/file.pdf";
14 if [ -e "${PDF_FILE}.annot" ]; then
15 cp "$PDF_FILE" "$TMPDIR/b/file.pdf";
16 chmod u+w "$TMPDIR/b/file.pdf"
17 qprint -d "${PDF_FILE}.annot" | patch -d "$TMPDIR/b" --binary;
19 chmod u+w "$TMPDIR/b/file.pdf"
20 cp "$PDF_FILE" "$TMPDIR/b/file.pdf";
22 cp "$TMPDIR/b/file.pdf" ~/Dropbox/research_papers/to_read/"$(basename "$PDF_FILE")";
23 rm -f "$TMPDIR/a/file.pdf"
24 rm -f "$TMPDIR/b/file.pdf"
25 rmdir "$TMPDIR/a" "$TMPDIR/b" "$TMPDIR"
28 if [ "$0" == "dropbox_read" ]; then
29 echo "Currently not implemented";