[go: up one dir, main page]

File: build.sh

package info (click to toggle)
dub 1.40.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,272 kB
  • sloc: sh: 2,104; ansic: 52; xml: 37; makefile: 35
file content (23 lines) | stat: -rwxr-xr-x 575 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -e

echo "@@@@@ WARNING @@@@@"
echo "@ This script is DEPRECATED. Use build.d directly instead @"
echo "@@@@@@@@@@@@@@@@@@@@"

if [ "$DMD" = "" ]; then
	if [ ! "$DC" = "" ]; then # backwards compatibility with DC
		DMD=$DC
	else
		command -v gdmd >/dev/null 2>&1 && DMD=gdmd || true
		command -v ldmd2 >/dev/null 2>&1 && DMD=ldmd2 || true
		command -v dmd >/dev/null 2>&1 && DMD=dmd || true
	fi
fi

if [ "$DMD" = "" ]; then
	echo >&2 "Failed to detect D compiler. Use DMD=... to set a dmd compatible binary manually."
	exit 1
fi

$DMD -run build.d $*