#! /bin/sh
###############################################################################
#
# File:         textutils-1.11.after.install.sh
# RCS:          $Header: $
# Description:  fix paste name collision
# Author:       Christian Limpach <chris@nice.ch>
# Created:      Mon Apr  3 22:54:44 1995
# Modified:     Mon Apr  3 22:58:53 1995 (Christian Limpach) chris@nice.ch
# Language:     Shell-script
# Package:      N/A
# Status:       Experimental (Do Not Distribute)
#
# (C) Copyright 1995, Christian Limpach, all rights reserved.
# This is free software, and you are welcome to redistribute it
# under certain conditions; see ftp://nice.ethz.ch/users/chris/TERMS
# for details. This software comes with ABSOLUTELY NO WARRANTY.
#
###############################################################################

# run after make install

cd src
sed '/^CC =/ q' Makefile >Makefile2
cat >>Makefile2 <<+ 

install:
	mv $(bindir)/paste $(bindir)/gpaste
+
make -f Makefile2 install
rm -f Makefile2

cd ../man
sed '/^INSTALL =/ q' Makefile >Makefile2
cat >>Makefile2 <<+ 

install:
	mv $(mandir)/man1/paste.1 $(mandir)/man1/gpaste.1
+
make -f Makefile2 install
rm -f Makefile2


