You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
805 B
26 lines
805 B
#!/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
|
|
|