NetBSD/distrib/alpha/toolchain-install/mk-toolchain-install-cmds
1998-06-30 03:11:23 +00:00

109 lines
3.2 KiB
Bash

#!/bin/sh -e
# XXX this is evil.
if [ "${NETBSDSRCDIR}" = "" ]; then
echo NETBSDSRCDIR must be set
exit 1
fi
instfile() {
echo install -c ${STRIPFLAG} -o ${OWNER} -g ${GROUP} -m ${MODE} \
$2 ${DESTDIR}$1
}
inststrip() {
echo install -c -o ${OWNER} -g ${GROUP} -m 600 $2 ${DESTDIR}$1
if [ "${STRIPFLAG}" != "" ]; then
echo $2 ${DESTDIR}$1
fi
echo chmod ${MODE} ${DESTDIR}$1
}
instlib() {
echo install -c ${STRIPFLAG} -o ${OWNER} -g ${GROUP} -m 600 \
$2 ${DESTDIR}$1
echo ranlib -t ${DESTDIR}$1
echo chmod ${MODE} ${DESTDIR}$1
}
link() {
echo rm -f ${DESTDIR}$1
echo ln ${DESTDIR}$2 ${DESTDIR}$1
}
roff() {
echo rm -f ${DESTDIR}$1
echo nroff -mandoc ${DESTDIR}$2 \> ${DESTDIR}$1
}
STRIPFLAG=-s
OWNER=bin # BINOWN
GROUP=bin # BINGRP
MODE=555 # BINMODE
instfile /usr/bin/ar binutils/ar
instfile /usr/bin/as gas/as.new
instfile /usr/bin/g++ gcc/g++
instfile /usr/bin/gcc gcc/xgcc
instfile /usr/bin/gprof gprof/gprof
instfile /usr/bin/ld ld/ld.new
instfile /usr/bin/nm binutils/nm.new
instfile /usr/bin/ranlib binutils/ranlib
instfile /usr/bin/size binutils/size
inststrip /usr/bin/strip binutils/strip.new
instfile /usr/libexec/cc1 gcc/cc1
instfile /usr/libexec/cc1obj gcc/cc1obj
instfile /usr/libexec/cc1plus gcc/cc1plus
instfile /usr/libexec/cpp gcc/cpp
STRIPFLAG=
OWNER=bin # LIBOWN
GROUP=bin # LIBGRP
MODE=444 # LIBMODE
instlib /usr/lib/libgcc.a gcc/libgcc.a
instlib /usr/lib/libobjc.a gcc/libobjc.a
STRIPFLAG=
OWNER=bin # MANOWN
GROUP=bin # MANGRP
MODE=444 # MANMODE
instfile /usr/share/man/man1/ar.1 binutils/ar.1
instfile /usr/share/man/man1/gprof.1 gprof/gprof.1
instfile /usr/share/man/man1/nm.1 binutils/nm.1
instfile /usr/share/man/man1/ranlib.1 binutils/ranlib.1
instfile /usr/share/man/man1/size.1 binutils/size.1
instfile /usr/share/man/man1/strip.1 binutils/strip.1
instfile /usr/share/man/man5/ar.5 ${NETBSDSRCDIR}/usr.bin/ar/ar.5
instfile /usr/share/man/man5/ranlib.5 ${NETBSDSRCDIR}/usr.bin/ranlib/ranlib.5
STRIPFLAG=
OWNER=bin # BINOWN
GROUP=bin # BINGRP
MODE=444 # NONBINMODE
instfile /usr/include/objc/NXConstStr.h gcc/include/objc/NXConstStr.h
instfile /usr/include/objc/Object.h gcc/include/objc/Object.h
instfile /usr/include/objc/Protocol.h gcc/include/objc/Protocol.h
instfile /usr/include/objc/encoding.h gcc/include/objc/encoding.h
instfile /usr/include/objc/hash.h gcc/include/objc/hash.h
instfile /usr/include/objc/list.h gcc/include/objc/list.h
instfile /usr/include/objc/objc-api.h gcc/include/objc/objc-api.h
instfile /usr/include/objc/objc.h gcc/include/objc/objc.h
instfile /usr/include/objc/sarray.h gcc/include/objc/sarray.h
instfile /usr/include/objc/typedstream.h gcc/include/objc/typedstream.h
link /usr/bin/c++ /usr/bin/g++
link /usr/bin/cc /usr/bin/gcc
roff /usr/share/man/cat1/ar.0 /usr/share/man/man1/ar.1
roff /usr/share/man/cat1/gprof.0 /usr/share/man/man1/gprof.1
roff /usr/share/man/cat1/nm.0 /usr/share/man/man1/nm.1
roff /usr/share/man/cat1/ranlib.0 /usr/share/man/man1/ranlib.1
roff /usr/share/man/cat1/size.0 /usr/share/man/man1/size.1
roff /usr/share/man/cat1/strip.0 /usr/share/man/man1/strip.1
roff /usr/share/man/cat5/ar.0 /usr/share/man/man5/ar.5
roff /usr/share/man/cat5/ranlib.0 /usr/share/man/man5/ranlib.5