#!/bin/sh # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && # gsview uses netscape to browse through the online help. So simply edit srcunx/gvxreg.c # using the following sed script to use another browser: # Not GNU package cd ${LFS_TMP}/${1} && mv srcunx/gvxreg.c srcunx/gvxreg.old && cat srcunx/gvxreg.old | sed s/netscape/mozilla/ > srcunx/gvxreg.c && sed 's|GSVIEW_ROOT=/usr/local|GSVIEW_ROOT=/usr|' srcunx/unx.mak > Makefile && make && make install # Return last error exit $?