#!/bin/sh
# Copyright (c) 1997 Guylhem AZNAR <guylhem@oeil.qc.ca>

./configure
make

echo
echo
echo "You must have root password to install AfterStep on systemwide dirs."
echo "(press Enter to continue or Ctrl-C to stop)"
echo

su root -c "make install"

if [ -f ~/.xinitrc ] ; then
  mv ~/.xinitrc ~/xinitrc.before.AfterStep
fi

echo "exec afterstep" > ~/.xinitrc

echo
echo
echo "Now please run startx to use AfterStep !"
echo
echo A beta Theme handler has been included in the source,
echo take a look in tools/theme.handler/
echo
