Very tiny script for testing D projects with Pijul version control system.

Suliman evermind at live.ru
Sat Oct 14 11:50:26 UTC 2017


Here is Windows .bat file that complete uploading project to 
server with SSH:

upload.bat:
@echo off
for %%a in ("%cd%") do set folder=%%~na
winscp.com /command "open sftp://root:PassW0rd@127.0.0.1:2222" 
"put latest.tar.gz /code/%folder%/" "exit"

Local folder name should be same with remote name. It's 
auto-detect in second line.

So you can copy-paste this script to any project without 
modification.

D:\code\app1 will try to upload `latest.tar.gz` to /code/app1
D:\code\myapp will try to upload `latest.tar.gz` to /code/myapp

And so on.




More information about the Digitalmars-d-announce mailing list