|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.announce - A (very) simple build/install/remove script
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On the off chance that anyone is interested, I've attached a small, very
simple, Bash script I've made that takes care of building, installing
and uninstalling small and simple D libraries. Just put it somewhere in
your path, mark it as executable, and off you go. :) Note that it only
works with DMD.
It assumes a straightforward library structure. As an example, say you
have a library "foo" consisting of, say, the modules foo.bar and
foo.baz. These should then be located in the files foo/bar.d and foo/baz.d.
Then, from foo/'s parent directory, type the following commands.
To build the library (it will be located in .dlib/libfoo.a afterwards):
dlib build foo
To install the library and sources to /usr/local:
sudo dlib install foo
To remove the library and sources again:
sudo dlib remove foo
To remove dlib's hidden working dir:
dlib clean
I made the script for my own, personal use. Though it ain't exactly
DSSS, I hope that someone else will find it useful as well. :)
-Lars
The usual disclaimer follows:
You use this script at your own risk. Under no circumstances shall the
author be held responsible for any consequences of your use of the script.
May 11 2009
|