From 60cb01f9a81c311f914aed4a23e8e5b35e965918 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 11 May 2013 13:27:07 +0200 Subject: soem more cleanup Signed-off-by: Florian Pritz --- xup.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 xup.sh (limited to 'xup.sh') diff --git a/xup.sh b/xup.sh deleted file mode 100755 index 64a5a64..0000000 --- a/xup.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -#---------------------------------------------------- -# Version: 0.1.5 -# Author: Florian "Bluewind" Pritz -# -# Licensed under WTFPL v2 -# (see COPYING for full license text) -# -#---------------------------------------------------- -# Upload file to XUP, copy URL to clipboard and -# save to historyfile -#---------------------------------------------------- - -XUPHIST="${HOME}/.xup_history" -FILE="$(basename "$1")" -DIR="$(dirname "$1")" -cd "$DIR" - -URLS=$(curl -# -F "F1=@$FILE" -L "http://www.xup.in/xtrans.php" -H "Expect: ") -DL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/dl,.{8}/" | sed "s#\"##g") -DEL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/kill,.{8},.{10}/\"" | sed "s#\"##g") - -echo $(date) >> "$XUPHIST" -echo "$PWD/$FILE" >> "$XUPHIST" -echo $DL_URL >> "$XUPHIST" -echo -n $DL_URL | nohup >/dev/null 2>&1 xclip -echo -n $DL_URL -echo $DEL_URL >> "$XUPHIST" -echo "" >> "$XUPHIST" -- cgit v1.2.3-24-g4f1b