Code

corrected a typo and added a check for modevia name definition. fall back on user...
authorjiho-sf <jiho-sf@users.sourceforge.net>
Sat, 8 Dec 2007 11:42:56 +0000 (11:42 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Sat, 8 Dec 2007 11:42:56 +0000 (11:42 +0000)
packaging/macosx/osx-build.sh

index a708c8f2c9e3bd2d9d717205e342ad82c56b0f5c..487ed2bedb9c72feac3fca3c4e13bcf8bc5a3088 100755 (executable)
@@ -25,7 +25,7 @@ CONFFLAGS="--disable-static --enable-shared --enable-osxapp"
 # Libraries prefix (Warning: NO trailing slash)
 LIBPREFIX="/opt/local"
 # User name on Modevia
-MODEVIA_USER=""
+MODEVIA_NAME=""
 
 ############################################################
 
@@ -307,6 +307,11 @@ fi
 
 if [[ "$UPLOAD" == "t" ]]
 then
+       # Provide default for user name on modevia
+       if [[ "$MODEVIA_NAME" == "" ]]; then
+               MODEVIA_NAME=$USER
+       fi
+       # Uploasd file
        scp $DMGFILE $INFOFILE "$MODEVIA_NAME"@inkscape.modevia.com:inkscape/docs/macosx-snap/
        status=$?
        if [[ $status -ne 0 ]]; then