Re: Vibrant 2.0, major update

2017-10-14 Thread Guillaume Piolat via Digitalmars-d-announce

On Monday, 13 February 2017 at 22:57:18 UTC, Ali Çehreli wrote:


All interesting stuff! Look how much interest the 
self-important idiom received, which the original author had 
thought to be a trivial matter:



https://www.reddit.com/r/programming/comments/5tt33y/a_new_import_idiom_for_d/

A blog post may improve the sales of your game. :)

Ali


Just to say that I've written this blog post (thanks for the 
advice!).

https://www.auburnsounds.com/blog/2017-10-14_The-History-Of-Vibrant.html

And also Vibrant has been Greenlit so you will be able to find a 
newer version soon enough.


Re: Vibrant 2.0, major update

2017-10-14 Thread Guillaume Piolat via Digitalmars-d-announce

On Monday, 13 February 2017 at 22:57:18 UTC, Ali Çehreli wrote:


All interesting stuff! Look how much interest the 
self-important idiom received, which the original author had 
thought to be a trivial matter:



https://www.reddit.com/r/programming/comments/5tt33y/a_new_import_idiom_for_d/

A blog post may improve the sales of your game. :)

Ali


Just to say that I've written this blog post (thanks for the 
advice!).


And also Vibrant has been Greenlit so you will be able to find a 
newer version soon enough.


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

2017-10-14 Thread Suliman via Digitalmars-d-announce
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:; 
"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.




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

2017-10-14 Thread Suliman via Digitalmars-d-announce
GIT IMHO very heavy for tiny projects. And I decided to try 
http://pijul.com/
I am developing on Windows, but I need to test code on Linux. So 
I did very simple tool-chain:

Developing on Windows.
Making package with command: `pijul dist -d latest`
Syncing code to Linux VPS/VirtualBox instance with WinSCP.
Running next script that replace content of folder with latest 
version from archive.

Unpacking with: `unpack latest.tar.gz`

Place next script to: /usr/local/bin/unpack

##!/bin/bash
if [ ${1: -7} == ".tar.gz" ]
then
 tar --strip-components=1 -xf latest.tar.gz
else
 echo "You should specify archive name"
 echo $1
fi

latest.tar.gz should be placed in app dir folder on the same 
level with `sourse` folder.


Hope this will helpful!