#!/bin/bash -e #--------------------------------------------------------------------- # buildxorg-wrapup - To be documented # License: MIT/X (for this file only) # Revision: 210613 #--------------------------------------------------------------------- # Initial setup. source /src/0*_xorg/*_xorgbase/special/build/buildxorg-setenv \ || exit 1 #--------------------------------------------------------------------- # Post-build adjustments. echo $BARSEP ; echo `date` Post-build adjustments ; echo cd $BINDIR || exit 1 for x in * do strip -p $x 2> /dev/null || true done for x in Xdmx Xnest Xprt Xvfb xedit xorgcfg xorgconfig do if [ -f $x ]; then upx --lzma $x 2> /dev/null || true fi done cd $LIBDIR || exit 1 rm -fr *.a || exit 1 rm -fr X11/xdm/libXdmGreet.a || exit 1 ln -nsf xorg/modules modules || exit 1 for x in `find . -type f -name \*.so\*` do strip -pg $x 2> /dev/null || true done rm -fr /usr/bin/X11 || exit 1 rm -fr /usr/lib/X11 || exit 1 # ln -nsf $STDDIR/bin /usr/bin/X11 || exit 1 # ln -nsf $STDDIR/lib/X11 /usr/lib/X11 || exit 1 # ln -nsf $STDDIR/lib/libX11.so $LOCLIB/ || exit 1 # ln -nsf $STDDIR/lib/libXt.so $LOCLIB/ || exit 1 # if [ -d /usr/include ]; then # U11=/usr/include/X11 # rm -fr $U11 || exit 1 # ln -nsf $STDDIR/include/X11 $U11 || exit 1 # fi ldconfig || exit 1 # ln -nsf /usr/X11R6/include/GL \ # $UL/include/GL || exit 1 # ln -nsf GL $UL/include/GLUT || exit 1 # ln -nsf GL $UL/include/OpenGL || exit 1 # rm -fr $MANBASE /usr/X11R6/share/man/ || exit 1 # mkdir -p $MANBASE || exit 1 # mkdir -p /usr/X11R6/share/X11/xkb/compiled || exit 1 chmod u+s $BINDIR/Xorg || exit 1 # No longer applicable: # (cd /laclin/lacutil && make clean && make) || exit 1 # (cd /laclin/sysutil && make clean && make) || exit 1 # D=/usr/X11R6/lib/X11/fonts # if [ \! -d $D ]; then # ln -s $PREFIX/share/fonts/X11 $D || exit 1 # fi # rm -fr $D/Type1 || exit 1 cd $LIBDIR || exit 1 for x in *.la do sed -e "s|^old_library=.*|# &|" -i $x || exit 1 done mv $XPCDIR/* $LPCDIR/ 2>/dev/null || true rm -fr $XPCDIR || exit 1 ln -s $LPCDIR $XPCDIR || exit 1 ln -nsf $PRODTREE/$LACLLVMPKG/lib/libLLVM*.a \ $PRODTREE/xorg/lib/ || exit 1 cp -p /src/0*_xorg/*_xorgbase/special/pixman*.h \ $PRODTREE/xorg/include/ || exit 1 ln -nsf $PRODTREE/xorg/share/aclocal/*.m4 \ $PRODTREE/actools/share/aclocal/ || exit 1 echo $BARSEP ; date ; echo Built XOrg base system ; echo