]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Ein Fix fuer das Hochladen der Dateien auf unseren Source-FTP-Server.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 15 Sep 2007 13:27:54 +0000 (13:27 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 15 Sep 2007 13:27:54 +0000 (13:27 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@890 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

make.sh

diff --git a/make.sh b/make.sh
index f2dfe6c9a6b75e117ed6bd5ce8383d5545303e69..1c53f802721f7eac040964a236adf853ef0c828a 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -909,13 +909,13 @@ uploadsrc)
        PWD=`pwd`
        cd $BASEDIR/cache/
        echo -e "Uploading cache to ftp server:"
-       ncftpls -u $FTP_CACHE_USER -p $FTP_CACHE_PASS ftp://$FTP_CACHE_URL$FTP_CACHE_PATH/ > /tmp/ftplist
+       ncftpls -u $FTP_CACHE_USER -p $FTP_CACHE_PASS ftp://$FTP_CACHE_URL/$FTP_CACHE_PATH/ > /tmp/ftplist
        for i in *; do
-               if [ "$i" == "toolchains" ]; then continue; fi
-               grep -q $i /tmp/ftplist
+               if [ "$(basename $i)" == "toolchains" ]; then continue; fi
+               grep -q $(basename $i) /tmp/ftplist
                if [ "$?" -ne "0" ]; then
-                       echo -ne "$i"
-                       ncftpput -u $FTP_CACHE_USER -p $FTP_CACHE_PASS $FTP_CACHE_URL $FTP_CACHE_PATH/ $i
+                       echo -ne "$(basename $i)"
+                       ncftpput -u $FTP_CACHE_USER -p $FTP_CACHE_PASS $FTP_CACHE_URL $FTP_CACHE_PATH/ $(basename $i)
                        if [ "$?" -ne "0" ]; then
                                beautify message FAIL
                        fi