Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Bump to 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Jan 21, 2017
1 parent 9fab0bb commit f1d6bb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions makedeb.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import std.process;

static import std.stdio;

static import source.info;
import source.workspaced.info;

void main()
{
if (!exists("debs"))
mkdir("debs");
auto pkgVersion = source.info.Version[0].to!string ~ "."
~ source.info.Version[1].to!string ~ "-" ~ source.info.Version[2].to!string;
auto pkgVersion = Version[0].to!string ~ "." ~ Version[1].to!string ~ "-" ~ Version[2].to!string;
string pkgPath = "workspace-d_" ~ pkgVersion;
if (exists("debs/" ~ pkgPath))
{
Expand All @@ -36,9 +35,9 @@ Description: Wraps dcd, dfmt and dscanner to one unified environment managed by
writeln("Building workspace-d");
spawnProcess(["dub", "build", "--build=release"]).wait;
writeln("Compressing regular linux package");
spawnProcess(["tar", "cfJ", "workspace-d_" ~ source.info.Version[0].to!string ~ "."
~ source.info.Version[1].to!string ~ "." ~ source.info.Version[2].to!string ~ "-linux-x86_64.tar.xz",
"workspace-d"]).wait;
spawnProcess(["tar", "cfJ",
"workspace-d_" ~ Version[0].to!string ~ "." ~ Version[1].to!string ~ "."
~ Version[2].to!string ~ "-linux-x86_64.tar.xz", "workspace-d"]).wait;
rename("workspace-d", "debs/" ~ pkgPath ~ "/usr/local/bin/workspace-d");
writeln("Generating package in debs/ folder");
spawnProcess(["dpkg-deb", "--build", pkgPath], std.stdio.stdin,
Expand Down
2 changes: 1 addition & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import std.json;
import std.meta;
import std.conv;

import source.info;
import source.workspaced.info;

__gshared File stdin, stdout;
shared static this()
Expand Down
4 changes: 2 additions & 2 deletions source/workspaced/info.d
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module source.info;
module source.workspaced.info;

import Compiler = std.compiler;
import OS = std.system;
import std.json;
import std.conv;

static immutable Version = [2, 9, 1];
static immutable Version = [2, 10, 0];

version (Windows) static assert(Compiler.name != "Digital Mars D",
"Use LDC instead of DMD on Windows! See Also: https://github.com/Pure-D/code-d/issues/38");
Expand Down

0 comments on commit f1d6bb6

Please sign in to comment.