|
@@ -417,8 +417,17 @@ else
|
|
|
endif
|
|
|
endif
|
|
|
|
|
|
-uploadrun: $(TEST_OUTPUTDIR)/$(DB_TARGZ)
|
|
|
+
|
|
|
+# Use Putty, unless we set DB_USE_SSH to force ssh usage
|
|
|
+# Useful for cygwin
|
|
|
+ifndef DB_USE_SSH
|
|
|
ifdef inWinDOS
|
|
|
+UsePutty=1
|
|
|
+endif
|
|
|
+endif
|
|
|
+
|
|
|
+uploadrun: $(TEST_OUTPUTDIR)/$(DB_TARGZ)
|
|
|
+ifdef UsePutty
|
|
|
pscp -load "[email protected]" $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part $(SSH_EXTRA)
|
|
|
plink -load "[email protected]" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
|
|
else
|