summaryrefslogtreecommitdiffstats
path: root/win/tools/.copy_missing_headers
blob: 9ac1e39065b5c6d97725aad58ec9c5252e672742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# copies missing compiler headers

.check_kde_env || exit 1

if [ -n "$MSVC" ] ; then
	dir="$MSVC/vc7/include"
	mkdir -p "$KDELIBS/win/msvc/" || exit 1
	mkdir -p "$KDELIBS/win/sys/msvc/" || exit 1
	cp "$dir/ctype.h" "$dir/signal.h" "$dir/stdlib.h" "$dir/string.h" "$KDELIBS/win/msvc/" || exit 1
	cp "$dir/fcntl.h" "$dir/sys/stat.h" "$dir/sys/types.h" "$KDELIBS/win/sys/msvc/" || exit 1

elif [ -n "$BCB" ] ; then
	dir="$BCB/include"
	mkdir -p "$KDELIBS/win/bcc/" || exit 1
	mkdir -p "$KDELIBS/win/sys/bcc/" || exit 1
	cp "$dir/ctype.h" "$dir/signal.h" "$dir/stdlib.h" "$dir/string.h" "$KDELIBS/win/bcc/" || exit 1
	cp "$dir/fcntl.h" "$dir/sys/stat.h" "$dir/sys/types.h" "$KDELIBS/win/sys/bcc/" || exit 1

else
	echo "No compiler detected (MSVC or other)"
	exit 1
fi