Tag: compiler

Ldc D programming language compiler daily builds for ubuntu and debian

D

Hi,

From one week this program runs at midnight at my pc:

import tango.io.Stdout;
import tango.sys.Process;
import tango.time.WallClock;
import tango.text.convert.Format;
import tango.io.FileConduit;

int main(char[][] args)
{
auto fields = WallClock.toDate;
char[] pkgversion = Format.convert(“{:D4}{:D2}{:D2}”, fields.date.year, fields.date.month, fields.date.day);

auto p = new Process(“bash -c “rm -fr ldc-hg*””, null);
p.execute;
p.wait;
p = new Process(“hg clone http://hg.dsource.org/projects/ldc ldc”, null);
p.execute;
p.wait();
p = new Process(“rm -fr ldc/.hg”, null);
p.execute;
p.wait;
p = new Process(“rsync -r tango ldc/”, null);
p.execute;
p.wait;
p = new Process(“mv ldc ldc-hg-0.9.1~”~pkgversion~”+tango-0.99.8.dfsg”, null);
p.execute;
p.wait;
p = new Process(“tar -czf ldc-hg_0.9.1~”~pkgversion~”+tango-0.99.8.dfsg.orig.tar.gz ldc-hg-0.9.1~”~pkgversion~”+tango-0.99.8.dfsg”,null);
p.execute;
p.wait;
p = new Process(“rsync -r debian ldc-hg-0.9.1~”~pkgversion~”+tango-0.99.8.dfsg/”, null);
p.execute;
p.wait;

char[] changelog =
“ldc-hg (0.9.1~”~pkgversion~”+tango-0.99.8.dfsg-0ppa1) karmic; urgency=low

* Daily build of ldc hg

— Vincenzo Ampolo <[email protected]>  Thu, 30 Apr 2009 18:28:06 +0200n”;

auto fileChangelog = new FileConduit (“ldc-hg-0.9.1~”~pkgversion~”+tango-0.99.8.dfsg/debian/changelog”, FileConduit.WriteCreate);
fileChangelog.output.write(changelog);
fileChangelog.close;

return 0;
}

It’s a D programming language program that fetches ldc sources, add the tango library 0.99.8 to the source tree and create a valid soruce tree suitable for debuild -S and dput. Thanks to it i’m building every night packages of the ldc compiler which are stored in d-language-packagers ppa. To use it is very easy as you can read directly from the ldc project page in packages for ubuntu and debian section.

Feel free to contact me if something does not work correctly ! 🙂

%d bloggers like this: