-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.d
35 lines (29 loc) · 964 Bytes
/
build.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import std.process,
std.stdio,
std.file;
void main(){
writeln("TwitNotify Build Script");
writeln("Copyright (C) 2014 - 2015 alphaKAI http://alpha-kai-net.info");
writeln("The MIT License");
if(!exists("setting.json")){
writeln("[PROCESS] => Create File \'setting.json\'");
auto f = File("setting.json", "w");
string fileLines[] = [
"{",
" \"consumerKey\" : \"Your Consumer Key\",",
" \"consumerSecret\" : \"Your Consumer Secret\",",
" \"accessToken\" : \"Your Access Token\",",
" \"accessTokenSecret\" : \"Your Access Token Secret\"",
"}"];
foreach(line; fileLines)
f.writeln(line);
writeln("Please configure your consumer & access tokens");
}
if(!exists("icons")){
writeln("[PROCESS] => Make Directory \'icons\'");
mkdir("icons");
}
writeln("[PROCESS] complete");
writeln("Please type command:");
writeln(" $ dub");
}