 DATE=`date +"%d%b%y"`

 SRCFILE=$SRCBASE.tar.gz
 SRCLSM=$ELFBASE.lsm

 SRCSIZE=`ls -s --human-readable $DISTPATH/$SRCFILE|cut -d ' ' -f 1`

#ELFFILE=bed-$VERSION-1.i586.rpm
ELFFILE=$ELFBASE.tar.gz
 ELFSIZE=`ls -s --human-readable $DISTPATH/$ELFFILE|cut -d ' ' -f 1`
# ELFLSM=$ELFBASE.lsm
# bed-$VERSION.ELF.tar.gz
FREEBSDFILE=bed-$VERSION.FreeBSD.tar.gz
FREEBSDSIZE=`ls -s --human-readable $DISTPATH/$FREEBSDFILE|cut -d ' ' -f 1`


STATICLINUXFILE=bed-$VERSION.bin.ELF-static.tar.gz
STATICLINUXSIZE=`ls -s --human-readable $DISTPATH/$STATICLINUXFILE|cut -d ' ' -f 1`


WIN32FILE=bed-$VERSION.win32.zip
WIN32SIZE=`ls -s --human-readable $DISTPATH/$WIN32FILE|cut -d ' ' -f 1`


cat <<!
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.05 [en] (X11; I; Linux 2.0.33 i586) [Netscape]">
   <META NAME="Author" CONTENT="Jaap Korthals Altes">
   <META NAME="Description" CONTENT="Description of bed (binary editor for linux). Urls to download the source and the Elf binary.">
   <META NAME="Keywords" CONTENT="Hex, editor, bed, binary, octal, decimal, ascii. Linux.">
<title>bed - download</title>
</HEAD>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#55188A" alink="#FF0000">
<div align=right><font face="Arial,Helvetica"><a href="bed.1.html">Manual</a></font></div>
<h1>download</h1>
<FONT SIZE=+1>Bed <B>source</B>:</FONT>
<br><font size=+1>
<A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/editors/terminal/$SRCFILE">$SRCFILE (sunsite)</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
($SRCSIZE)&nbsp; ( <A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/editors/terminal/$LSMFILE">LSM</A>
)
<A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/editors/terminal/$SRCFILE.asc">SIGN</A>
</font>
<br><font size=+1>
<A HREF="download/$SRCFILE">$SRCFILE</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
($SRCSIZE)&nbsp; ( <A HREF="download/$LSMFILE">LSM</A>
)
<A HREF="download/$SRCFILE.asc">SIGN</A>
</FONT>

<P><FONT SIZE=+1>Debian 2.2r6 + RedHat 7.1/9 i386 binary:</FONT>
<br><FONT SIZE=+1>

<A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/editors/terminal/$ELFFILE">$ELFFILE (sunsite)</A>&nbsp;&nbsp;&nbsp;&nbsp;
($ELFSIZE) (<A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/editors/terminal/$LSMFILE">LSM</A>)
<A HREF="ftp://sunsite.unc.edu/pub/Linux/apps/editors/terminal/$ELFFILE.asc">SIGN</A>
</FONT>
<br><font size=+1>
<A HREF="download/$ELFFILE">$ELFFILE</A>&nbsp;&nbsp;&nbsp;&nbsp;
($ELFSIZE) ( <A HREF="download/$LSMFILE">LSM</A>
) <A HREF="download/$ELFFILE.asc">SIGN</A>
</FONT>

<P><FONT SIZE=+1>FreeBSD 4.4 binary:</FONT>
<br><font size=+1>
<A HREF="download/$FREEBSDFILE">$FREEBSDFILE</A>&nbsp;&nbsp;&nbsp;&nbsp;
($FREEBSDSIZE) <A HREF="download/$FREEBSDFILE.asc">SIGN</A></FONT>

<p><font size=+1>Windows95 cygwin 1.3.10 binary (pdcurses and binpatch ncurses):</font>
<br><font size=+1>
<a href="download/$WIN32FILE">$WIN32FILE</a>&nbsp;&nbsp;&nbsp;&nbsp;
($WIN32SIZE)
<a href="download/$WIN32FILE.asc">SIGN</a>
</font>
<p><font size=+1>Needs <a href="download/cygwin1.dll.zip">cygwin1.dll</a> to run. If you don't already have it, put it somewhere in your
path (don't forget to remove it when you get a new cygwin1.dll with some other program).
<p>
The ncurses version can also run within an terminal like rxvt (downloadble from <a href="http://sources.redhat.com/cygwin" TARGET="_top">cygwin</a>). 
To run bed within rxvt you need libncurses*.dll and terminfo installed ( <a href="http://sources.redhat.com/cygwin" TARGET="_top">http://sources.redhat.com/cygwin.</a>). 
To start a rxvt with bed inside press:
<PRE>
rxvt -geometry 300x200 -tn rxvtbed -fn 12x24 -e bed [options] [files]
</PRE>
The advantage of bed within rxvt is that you can resize rxvt by 
dragging one of its corners. You can also specify it's font
within the commandline (-fn fontname).
<br>
The rxvt I downloaded from cygwin is wrongly categorized as a console
application, so that the loader starts a dos console if rxvt.exe is started
from explorer. You can easily change this by using a binary editor to 
change the byte at offset 220 from 3 to 2.
</font>
<p><font size=+1>To compile bed for win32 you need:
<ul>
<li>gcc, binutils, gnu make, grep, sed, textutils, findutils, fileutils, diffutils, which and probably some other utilities from <a href="http://sources.redhat.com/cygwin" TARGET="_top">cygwin</a>
<li>GNU regex (different from libregex.a from cygwin): e.g&nbsp; <a href="http://ftp.kiarchive.ru/pub/gnu/gnu-mirror/regex/" TARGET="_top">http://ftp.kiarchive.ru/pub/gnu/gnu-mirror/regex/</a>
<li>pdcurses source (<a href="http://www.lightlink.com/hessling/downloads.html" TARGET="_top">http://www.lightlink.com/hessling/downloads.html</a>)
</ul>
<p>
You can find some old versions here: 
<A HREF="download">download</A>
<p>
<A HREF="pgpkey.bed">pgp5 public key</A>
</DIV>
</BODY>
</HTML>
!
