Hi.
I downloaded and fixed the get-dropbox.
But when I install in terminal I get this:
root@slitaz:/home/sandra# get-dropbox
/usr/bin/get-dropbox: line 1: ---: command not found
/usr/bin/get-dropbox: line 2: +++: command not found
/usr/bin/get-dropbox: line 3: @@: command not found
/usr/bin/get-dropbox: line 7: -VERSION=0.6.487: command not found
/usr/bin/get-dropbox: line 8: +VERSION=1.1.35: command not found
/usr/bin/get-dropbox: line 9: -TARBALL=dropbox-lnx.x86-.tar.gz: command not found
/usr/bin/get-dropbox: line 10: -URL=http://dl.getdropbox.com/u/17/: No such file or directory
/usr/bin/get-dropbox: line 11: +WEB_SITE=http://www.dropbox.com: No such file or directory
/usr/bin/get-dropbox: line 12: +PLATFORM=lnx.x86: command not found
/usr/bin/get-dropbox: line 13: +TARBALL=dropbox-.tar.gz: command not found
/usr/bin/get-dropbox: line 14: +URL=/download/?plat=: No such file or directory
/usr/bin/get-dropbox: line 20: @@: command not found
/usr/bin/get-dropbox: line 21: cd: /tmp/dropbox--4552: No such file or directory
/usr/bin/get-dropbox: line 24: -wget: command not found
/usr/bin/get-dropbox: line 25: +wget: command not found
/usr/bin/get-dropbox: line 52: syntax error near unexpected token `)'
/usr/bin/get-dropbox: line 52: `+*\ --k*) mv $PACKAGE-$VERSION.tazpkg $CUR_DIR ;;'
The get-dropbox in /usr/bin is as follows:
--- a/get-dropbox/stuff/get-dropbox Wed Jul 27 18:48:00 2011 +0100
+++ b/get-dropbox/stuff/get-dropbox Thu Jul 28 10:20:30 2011 +0200
@@ -3,11 +3,12 @@
# Get and install Dropbox for Linux
PACKAGE="dropbox"
-VERSION="0.6.487"
+VERSION="1.1.35"
-TARBALL="$PACKAGE-lnx.x86-$VERSION.tar.gz"
-URL="http://dl.getdropbox.com/u/17/$TARBALL"
+WEB_SITE="http://www.dropbox.com"
+PLATFORM="lnx.x86" # or lnx.x86_64
+TARBALL=$PACKAGE-$PLATFORM.tar.gz
+URL="$WEB_SITE/download/?plat=$PLATFORM"
CUR_DIR=$(pwd)
TEMP_DIR=/tmp/$PACKAGE-$VERSION-$$
ROOT="$1"
# Check if we are root
@@ -28,7 +29,7 @@
cd $TEMP_DIR
# Download the file
-wget $URL
+wget -O $TARBALL $URL
if [ ! -f $TARBALL ]; then
echo "Could not download $TARBALL. Exiting."
@@ -40,6 +41,7 @@
tar xzf $TARBALL
# extracted pkg can be removed: Save RAM
rm -f $TARBALL
+VERSION="$(cat $TEMP_DIR/.dropbox-dist/VERSION)"
mkdir -p $PACKAGE-$VERSION/fs/usr/lib \
$PACKAGE-$VERSION/fs/usr/bin \
@@ -80,7 +82,7 @@
CATEGORY="non-free"
SHORT_DESC="Dropbox daemon and client for online storage."
DEPENDS="python"
-WEB_SITE="http://www.getdropbox.com/"
+WEB_SITE="$WEB_SITE/"
SUGGESTED="ntlmaps"
EOT
@@ -93,6 +95,10 @@
# Install pseudo package
yes y | tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
+case " $@ " in
+*\ --k*) mv $PACKAGE-$VERSION.tazpkg $CUR_DIR ;;
+esac
+
# Clean
cd $CUR_DIR
rm -rf $TEMP_DIR
What is it wrong??
Thanks!!