4594286 [rkeene@sledge /home/rkeene/projects/build]$ cat dmd.txt
# SHORT DESC: Linux D Compiler
# LONG DESC: The Digital Mars D Compiler is an experimential D compiler and language.


cat <<EOF >dmd/bin/dmd.conf
[Environment]

DFLAGS=-I/usr/include/dmd/
EOF

cp dmd/bin/dmd /usr/bin/ && \
cp dmd/bin/dumpobj /usr/bin/ && \
cp dmd/bin/obj2asm /usr/bin/ && \
cp dmd/bin/dmd.conf /etc/ && \
cp dmd/lib/libphobos.a /usr/lib/ || exit 1

mkdir -p /usr/include/dmd/ || exit 1

cp -r dmd/src/phobos/* /usr/include/dmd/ || exit 1

chmod 755 /usr/bin/dmd /usr/bin/dumpobj /usr/bin/obj2asm || exit 1
chmod 644 /etc/dmd.conf /usr/lib/libphobos.a || exit 1
4594287 [rkeene@sledge /home/rkeene/projects/build]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2012-05-07 00:52:05