dlang.sh 357 B

123456789101112131415
  1. #!/bin/bash
  2. DLANG=$IROOT/dlang
  3. RETCODE=$(fw_exists ${DLANG}.installed)
  4. [ ! "$RETCODE" == 0 ] || { \
  5. source $DLANG.installed
  6. return 0; }
  7. mkdir $DLANG
  8. fw_get http://downloads.dlang.org/releases/2.x/2.067.1/dmd_2.067.1-0_amd64.deb
  9. dpkg-deb dmd_2.067.1-0_amd64.deb $DLANG
  10. echo -e "export PATH=${DLANG}:\$PATH" > $DLANG.installed
  11. source $DLANG.installed