head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.12.07.17.05.53;	author rosen;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.07.16.52.22;	author rosen;	state Exp;
branches;
next	;


desc
@Script that downloads the heimdal archive, makes some modifications to
cygwin, and restarts the cygwin setup program.
@


1.2
log
@* Now using $HEIMDAL_ARCHIVE to specify the name of the heimdal tarball
* Using heimdal-0.4e-3.tar.gz
@
text
@#!/bin/bash

# $Id$

HEIMDAL_ARCHIVE=heimdal-0.4e-3.tar.gz

if test -f setup.ini ; then
   :
else
   echo 'No setup.ini file found, aborting'
   exit 1
fi
mkdir -p contrib/heimdal
PEWEDE=$PWD
if cd contrib/heimdal ; then
   :
else
   echo 'Cound not create directory, aborting'
   exit 1
fi
echo -n Downloading the heimdal package...
rm -f $HEIMDAL_ARCHIVE
wget -nv ftp://ftp.pdc.kth.se/pub/heimdal/binaries/i386-pc-cygwin/$HEIMDAL_ARCHIVE
echo ' done.'
if test -f $HEIMDAL_ARCHIVE ; then
   :
else
   echo 'Nothing downloaded, aborting'
   exit 1
fi
cd $PEWEDE || exit 1
if grep heimdal setup.ini > /dev/null; then
   :
else
	cp -p setup.ini setup.ini.safe
	echo >> setup.ini
	echo '@@ heimdal' >> setup.ini
	echo 'sdesc: "Heimdal krb5 implementation"' >> setup.ini
fi
./setup.exe
cd /etc || exit 1
if grep /usr/heimdal/bin profile > /dev/null ; then
   :
else
    cp profile profile.safe && < profile.safe sed 's,PATH="/usr/local/bin,PATH="/usr/heimdal/bin:/usr/local/bin,1' > profile
fi


@


1.1
log
@Initial revision
@
text
@d2 5
d22 2
a23 2
rm -f heimdal-0.4e-1.tar.gz
wget -nv ftp://ftp.pdc.kth.se/pub/heimdal/binaries/i386-pc-cygwin/heimdal-0.4e-2.tar.gz
d25 1
a25 1
if test -f heimdal-0.4e-2.tar.gz ; then
@
