#!/bin/sh
CWD=`pwd` 
cd /tmp
tar xzvf $CWD/gnome-core-1.2.1.tar.gz
cd gnome-core-1.2.1
# Patch for changes in the new libbz2:
zcat $CWD/gnome-core.diff.gz | patch -p1 --verbose --backup
# Use the netscape logo cube icon for Netscape, not the generic
# GNOME html icon:
zcat $CWD/gnome-core.diff2.gz | patch -p1 --verbose --backup
# Use a center aligned panel by default, and don't start two panels,
# just the one on the bottom:
zcat $CWD/gnome-core.diff3.gz | patch -p1 --verbose --backup
# Reduce the default terminal font size from 20 to 14, and make terminals
# login shells when started from the panel:
zcat $CWD/gnome-core.diff4.gz | patch -p1 --verbose --backup
autoconf
CFLAGS=-O2 ./configure --prefix=/usr \
	    --with-catgets \
	    --with-window-manager=sawfish \
            i386-slackware-linux
make
make install
mkdir -p /var/X11R6/lib/xinit
cat $CWD/xinitrc.gnome > /var/X11R6/lib/xinit/xinitrc.gnome
chown root.root /var/X11R6/lib/xinit/xinitrc.gnome
chmod 755 /var/X11R6/lib/xinit/xinitrc.gnome

mkdir -p /usr/doc/gnome-core-1.2.1
cp -a AUTHORS COPYING ChangeLog NEWS README /usr/doc/gnome-core-1.2.1
chown -R root.root /usr/doc/gnome-core-1.2.1
