# 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 |