summaryrefslogtreecommitdiff
path: root/hurd/install-headers.in
blob: 99d3583372469e1b1b5a5bda25fa5ddb30d6ada4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
# @configure_input@
#
# This is a trivial script for those who aren't comfortable typing:
#	cp hurd/*.h hurd/*.defs /usr/local/i686-gnu/include/hurd/
# by themselves.  That is, it copies the essential Hurd header files
# into $(includedir) before you attempt to build the Hurd itself.
# In addition to installing Mach headers, this is sufficient to bootstrap
# an empty cross-compilation environment such that glibc can be compiled.

srcdir=@srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@

INSTALL="@INSTALL@"
INSTALL_DATA="@INSTALL_DATA@"

${srcdir}/../mkinstalldirs ${includedir}/hurd
for file in `cd ${srcdir}; echo *.h *.defs`; do
  ${INSTALL_DATA} ${file} ${includedir}/hurd/${file}
done