debian/0000755000000000000000000000000011733132144007165 5ustar debian/upstream.changelog0000644000000000000000000001137011733132144012700 0ustar Levee, or Captain Video! Description Levee is my attempt to write a vi clone. It was originally written for [1]USCD Pascal I.5 on the [2]Terak 8510a, ported to USCD Pascal 4.0 on the [3]Sage and Pinnacle 68000-based microcomputers, ported back to I.5, but rewritten in P2 (a Pascal derivative language I wrote in 1983 or thereabouts), rewritten in Pascal for an MP/M box, then my friend John Tainter and I re-re-rewrote it in C so we could run it on our newly-purchased [4]Atari 520STs in 1985, and then I re-re-re-rewrote it for FlexOS when I was working at CPT in (yuck!) Eden Prairie, MN. When Atari began to roll belly-up, we both abandoned that platform for PCs and re-re-re-re-etc-wrote it for MS-DOS, and when I started using [5]Linux in 1992 I rewrote it AGAIN, then used it off and on until I discovered nvi (and, after a few more years, Caldera freed the real vi, so I abandoned nvi for that). But, be that as it may, levee is still pretty tiny (37k executable when linked against termcap on [6]Mastodon), so it's hard to beat its disk size. Source Code * [7]3.5a had to be released because I was bitten by the double curse of Xcode becoming more gnu out from under me and modern commercial Linuxes becoming, if possible, even more gnu than they were before. On top of these configuration changes, I've also added another new feature in the form of "0" as a movement command like you'll find in the other, higher priced, versions of vi. * [8]3.5 has, after a gap of about 15 years, a new feature in the form of the "!" command in visual mode. Other than that, there are no changes from 3.4p. * [9]3.4p has been reworked so that it can be configured with [10]configure.sh, and has the additional minor feature that it better supports consoles and gui windows that come in different sizes. This is the first new-feature-release in quite some time (I believe the last feature went into levee sometime prior to 1998). This release is thanks to Felipe Augusto van de Wiel, from the [11]Debian Linux project, who sent me mail on 15-Jun-2007 asking if I'd be willing to accept some patches and roll levee up to a new release so that Debian wouldn't be carrying around a decade's worth of differences from the baseline. I've not gotten his patches yet (version 3.4q will no doubt follow 3.4p in quick succession,) but after he sent me the mail I got the whim to build levee on a freeBSD box. That didn't work (and it didn't work in a fairly spectacular fashion,) so I spent 5 hours replacing the old "here are a dozen or so settings you have to set by hand" arrangement with one that [12]doesn't involve getting a Masters degree in Levee coding. It's uncertain whether configure.sh will get along with dos, the atari.st, rmx, or flexos (signs say "no"), but you should be able to run configure.sh on a Unix machine, then export the configured code to your dos/atari/rmx/flexos box and build it there. * [13]3.4o has no features that haven't been in levee since the late 1980s, but it compiles cleanly with cc -Wall (for values of cc which translate to gcc 2.7.2 -- I don't officially support any newer versions of that thrice-damned compiler -- or, maybe, pcc,) which is important, I guess. And, just in case you're wondering, no, I never watched the [14]Captain Video TV show when I was young -- I don't even think I was even aware of the name except as a silly name until just recently -- I just liked the funny juxtiposition of names. * [15]home * [16]sitemap * [17]colophon * [18]/~orc/Code/levee/index.text Wed Jan 16 00:49:16 PST 2008 References 1. http://en.wikipedia.org/wiki/UCSD_Pascal 2. http://en.wikipedia.org/wiki/Terak_8510/a 3. http://www.sageandstride.org/ 4. http://en.wikipedia.org/wiki/Atari_ST 5. http://www.kernel.org/ 6. http://www.mastodon.biz/ 7. http://www.pell.portland.or.us/~orc/Code/levee/levee-3.5a.tar.gz 8. http://www.pell.portland.or.us/~orc/Code/levee/levee-3.5.tar.gz 9. http://www.pell.portland.or.us/~orc/Code/levee/levee-3.4p.tar.gz 10. http://www.pell.portland.or.us/~orc/Code/configure 11. http://www.debian.org/ 12. http://www.pell.portland.or.us/~orc/Code/configure 13. http://www.pell.portland.or.us/~orc/Code/levee/levee-3.4o.tar.gz 14. http://www.museum.tv/archives/etv/C/htmlC/captainvideo/captainvideo.htm 15. http://www.pell.portland.or.us/~orc/ 16. http://www.pell.portland.or.us/~orc/sitemap.html 17. http://www.pell.portland.or.us/~orc/ingredients.html 18. http://www.pell.portland.or.us/~orc/Code/levee/index.text debian/source/0000755000000000000000000000000011733132144010465 5ustar debian/source/format0000644000000000000000000000001411733132144011673 0ustar 3.0 (quilt) debian/NEWS0000644000000000000000000000056111733132144007666 0ustar levee (3.5a-1) unstable; urgency=low From now on binaries and man pages will be called 'levee'. Upstream calls it lv and old packages used lev because of a file name conflict. To avoid the conflict and to make things easier we will just use the name package consistently. -- Felipe Augusto van de Wiel (faw) Tue, 24 Jun 2008 19:32:32 -0500 debian/install0000644000000000000000000000001611733132144010553 0ustar levee usr/bin debian/changelog0000644000000000000000000001273211733132144011044 0ustar levee (3.5a-3) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables. -- Jari Aalto Fri, 23 Mar 2012 13:29:49 -0400 levee (3.5a-2) unstable; urgency=low * New maintainer. (Closes: #558604) * debian/copyright - Update to DEP5. * debian/levee. - Rename files to plain . * debian/menu - (Description): improve content. * debian/patches - Remove dpkg generated patch. Everything is already included in separate patches (Closes: #643179). * debian/compat - Update to 9. * debian/control - (Vcs-*): Move from Svn to Git. - (Build-Depends): debhelper 9, dpkg-dev 1.16.1. - (Depends): Add ${misc:Depends}. - (Description): Add more details (Lintian). - (Standards-Version): 3.9.2. * debian/{manpages,install} - New files. * debian/rules - Update to dh(1). - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags * debian/upstream.changelog - New file. [tony mancill] * Add myself to Uploaders: in d/control. -- Jari Aalto Thu, 23 Feb 2012 02:38:19 -0500 levee (3.5a-1.1) unstable; urgency=low * Non-maintainer upload. * Move to packaging format "3.0 (quilt)" due to patch. * debian/patches - (Number 10): Add patch to fix Gcc 4.4 error: conflicting types for getline (RC bug FTBFS serious; Closes: #548965). -- Jari Aalto Sun, 14 Feb 2010 16:48:08 +0200 levee (3.5a-1) unstable; urgency=low * New upstream release. * Providing virtual package 'editor'. (Closes: #398748). * Fixed documentation. (Closes: #144956, #144957). - levee upstream calls it lv but in Debian we have a name conflict, so the binaries, manpages and documentation should point to levee in Debian. * Fixed items pointed by Lintian warnings. - debian-rules-ignores-make-clean-error [ ! -f Makefile ] || $(MAKE) distclean - ancient-standards-version Updated Standards-Version from 3.7.2 to 3.8.0 without any changes. - debian-rules-sets-DH_COMPAT Removed DH_COMPAT from debian/rules and added debian/compat. - menu-item-uses-apps-section Renamed Apps to Applications in debian/menu and fixed levee long title. * Added a debian/watch. * Added Vcs-Svn, Vcs-Browser and Homepage to debian/control. * Added NEWS.Debian with info about the binary name. * Updated dbian/rules with some clean up. * Updated debian/copyright. * Updated maintainer scripts. - Added preinst to fix the update-alternatives from old name. -- Felipe Augusto van de Wiel (faw) Tue, 24 Jun 2008 19:39:52 -0500 levee (3.4o-7) unstable; urgency=low * New maintainer. (Closes: #352612). * Acknowledge NMUs. - Thanks Moshe (Closes: #144943, #144947, #144956, #144957). * Bump Standards Version to 3.7.2, with no changes. * DH_COMPAT=4 * Fixing lev.1 lintian complain - Lines starting with ' must be escaped with \, 'cc' became \'cc' -- Felipe Augusto van de Wiel (faw) Sun, 30 Jul 2006 01:28:48 -0300 levee (3.4o-6) unstable; urgency=low * New maintainer. (closes: #192651) * Fixed lintian error: package-lacks-versioned-build-depends-on-debhelper 2 (update to DH_COMPAT=3) * Fixed 2 lintian warnings * Applied Antraxz' patch to fix warning at compilation (closes: #193425) * Fixed file-conflict (closes: #175912) -- Tim Vandermeersch Tue, 8 Jul 2003 22:23:19 +0100 levee (3.4o-5.1) unstable; urgency=low * NMU * Fixed lv.1, lv.doc to refer to "lev" binary (Closes: #144957) * Added alternative code to postinst/prerm, alternatives for vi and editor (Closes: #144943) * Fixed description of autocopy (Closes: #144956) * Removed emacs preferences from end of changelog (Closes: #144947) * While we're at it, update ourselves to DH_COMPAT=2. Yay modern technology * Remove lev.1/lev.doc from Debian patch. copy/remove them in d/r -- Moshe Zadka Mon, 29 Apr 2002 12:18:14 +0300 levee (3.4o-5) unstable; urgency=low * Add missing Build-Depends on libncurses5-dev | libncurses-dev. (closes: Bug#115233) -- Doug Porter Thu, 11 Oct 2001 11:25:57 -0500 levee (3.4o-4) unstable; urgency=low * New maintainer. (closes: Bug#81585) * Updating to comply with Debian Policy 3.5.6. * Cleaned up debian/rules a tad. -- Doug Porter Tue, 9 Oct 2001 19:51:06 -0500 levee (3.4o-3) unstable; urgency=low * fixing bug #85720 (overwrites lv man page). -- Sven LUTHER Thu, 22 Mar 2001 15:08:55 +0100 levee (3.4o-2) unstable; urgency=low * Orphaning this package ... -- Sven LUTHER Mon, 8 Jan 2001 16:06:58 +0100 levee (3.4o-1) unstable; urgency=low * New upstream release. -- Sven LUTHER Tue, 26 Sep 2000 10:14:58 +0200 levee (0.6-1.1) unstable; urgency=low * Non-maintainer upload fixinf important #39092. * proto.h, unixcall.c: Add const in parameters of basename to avoid conflict with libc6 headers. -- Roman Hodek Fri, 23 Jul 1999 15:43:23 +0200 levee (0.6-1) unstable; urgency=low * Initial Release. -- Sven LUTHER Thu, 27 May 1999 21:38:22 +0200 debian/copyright0000644000000000000000000000437111733132144011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 X-Format: http://dep.debian.net/deps/dep5 Upstream-Name: lv Upstream-Contact: David L Parsons Source: http://www.pell.portland.or.us/~orc/Code/levee Files: * Copyright: 1982-2007 David L Parsons License: BSD Copyright (c) 1982-1997 David L Parsons All rights reserved. . Redistribution and use in source and binary forms, without or without modification, are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by David L Parsons (orc@pell.chi.il.us). My name may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. Files: debian/* Copyright: 2010, 2012 Jari Aalto 2006, 2008 Felipe Augusto van de Wiel 2003 Tim Vandermeersch 2002 Moshe Zadka 2001 Doug Porter 1999-2001 Sven Luther 1999 Roman Hodek License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/compat0000644000000000000000000000000211733132144010363 0ustar 9 debian/menu0000644000000000000000000000021111733132144010046 0ustar ?package(levee):needs="text" section="Applications/Editors" \ title="levee" longtitle="Very small vi clone" \ command="/usr/bin/levee" debian/control0000644000000000000000000000134411733132144010572 0ustar Source: levee Section: editors Priority: optional Maintainer: Jari Aalto Uploaders: tony mancill Build-Depends: debhelper (>= 9), libncurses5-dev | libncurses-dev Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/levee.git Vcs-Git: git://git.debian.org/git/collab-maint/levee.git Homepage: http://www.pell.portland.or.us/~orc/Code/levee Package: levee Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Provides: editor Description: very small vi clone Extremely small screen oriented editor based on the Unix editor "vi". It provides a terse, powerful way to enter and edit text. This programs dates back to 1980's; at the dawn of personal computing. debian/rules0000755000000000000000000000146311733132144010251 0ustar #!/usr/bin/make -f CHANGELOG = debian/upstream.changelog export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # Update manually get-changelog: lynx -dump http://www.pell.portland.or.us/~orc/Code/levee/ > \ $(CHANGELOG) override_dh_installchangelogs: dh_installchangelogs $(CHANGELOG) override_dh_auto_configure: # configure with --partial-install so the files won't be installed as # lv, then we can install them as levee ./configure.sh --partial-install override_dh_auto_build: $(MAKE) # Adjust names cp lv.1 levee.1 cp lev levee override_dh_clean: rm -f levee.1 levee # Clean up [ ! -f Makefile ] || $(MAKE) distclean dh_clean override_dh_auto_install: # See debian/install %: dh $@ # End of file debian/watch0000644000000000000000000000011511733132144010213 0ustar version=3 http://www.pell.portland.or.us/~orc/Code/levee/levee-(.*)\.tar\.gz debian/prerm0000755000000000000000000000051011733132144010234 0ustar #!/bin/sh # prerm script for levee set -e case "$1" in remove|upgrade|deconfigure) update-alternatives --remove editor /usr/bin/levee update-alternatives --remove vi /usr/bin/levee ;; failed-upgrade) ;; *) echo "prerm called with unknown argument: $1" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/postinst0000755000000000000000000000141211733132144010774 0ustar #!/bin/sh # postinst script for levee set -e case "$1" in configure) update-alternatives \ --install /usr/bin/vi vi /usr/bin/levee 10 \ --slave /usr/share/man/man1/vi.1.gz vi.1.gz \ /usr/share/man/man1/levee.1.gz update-alternatives \ --install /usr/bin/editor editor /usr/bin/levee 5 \ --slave /usr/share/man/man1/editor.1.gz editor.1.gz \ /usr/share/man/man1/levee.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) update-alternatives --remove editor /usr/bin/levee update-alternatives --remove vi /usr/bin/levee ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/manpages0000644000000000000000000000001011733132144010672 0ustar levee.1 debian/preinst0000755000000000000000000000054411733132144010602 0ustar #!/bin/sh # preinst script for levee set -e case "$1" in install|upgrade) if [ "$2" = "3.4o-7" ]; then update-alternatives --remove editor /usr/bin/lev update-alternatives --remove vi /usr/bin/lev fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument: $1" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/dirs0000644000000000000000000000003411733132144010046 0ustar usr/bin usr/share/man/man1/ debian/patches/0000755000000000000000000000000011733132144010614 5ustar debian/patches/10-gcc4.4-getline.patch0000644000000000000000000000526211733132144014467 0ustar From 789d4a04a02f48e1db228b92fffb29c54780a909 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sun, 14 Feb 2010 17:20:44 +0200 Subject: [PATCH] Fix Gcc 4.4 getline Signed-off-by: Jari Aalto --- editcor.c | 2 +- extern.h | 2 +- main.c | 2 +- misc.c | 4 ++-- move.c | 2 +- proto.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/editcor.c b/editcor.c index 35aa626..4dae9e3 100644 --- a/editcor.c +++ b/editcor.c @@ -186,7 +186,7 @@ execute(start, end) clrprompt(); printch('!'); - if ( !getline(instring) ) + if ( !levee_getline(instring) ) return FALSE; if ( (tf = mkstemp(scratch)) < 0 ) { diff --git a/extern.h b/extern.h index 0e505b1..1484282 100644 --- a/extern.h +++ b/extern.h @@ -197,7 +197,7 @@ extern exec_type PROC editcore(); extern char PROC line(), peekc(), readchar(); extern char PROC *findparse(),*makepat(); -extern bool PROC getline(); +extern bool PROC levee_getline(); extern bool PROC putfile(); extern bool PROC doyank(), deletion(), putback(); extern bool PROC pushb(),pushi(),pushmem(),uputcmd(), delete_to_undo(); diff --git a/main.c b/main.c index 6e4b3d6..fe4113c 100644 --- a/main.c +++ b/main.c @@ -253,7 +253,7 @@ exec_type emode; mode=emode; do { prompt(FALSE,":"); - if (getline(instring)) + if (levee_getline(instring)) exec(instring, &mode, &noquit); indirect = FALSE; if (mode == E_VISUAL && zotscreen && noquit) { /*ask for more*/ diff --git a/misc.c b/misc.c index 48197d2..329d58d 100644 --- a/misc.c +++ b/misc.c @@ -21,7 +21,7 @@ #include "extern.h" bool PROC -getline(str) +levee_getline(str) char *str; { int len; @@ -31,7 +31,7 @@ char *str; str[len] = 0; strput(CE); return (flag == EOL); -} /* getline */ +} /* levee_getline */ char PROC diff --git a/move.c b/move.c index ecc1eee..a396263 100644 --- a/move.c +++ b/move.c @@ -160,7 +160,7 @@ cmdtype cmd; clrprompt(); if (cmd == PATT_FWD || cmd == PATT_BACK) { printch(tsearch = instring[0] = chars[cmd-PATT_FWD]); - if (!getline(&instring[1])) + if (!levee_getline(&instring[1])) return ESCAPED; /* needs to skip later tests */ } else { diff --git a/proto.h b/proto.h index c362af3..e65be5d 100644 --- a/proto.h +++ b/proto.h @@ -71,7 +71,7 @@ int PROC fseekeol(int origin); int PROC gcount(void); int PROC getKey(void); int PROC getcontext(char c,int begline); -int PROC getline(char *str); +int PROC levee_getline(char *str); int PROC initialize(int count,char * *args); int PROC inputf(char *fname,int newbuf); int PROC insert_to_undo(struct undostack *u,int start,int size); -- 1.6.6.1 debian/patches/20-man.patch0000644000000000000000000000270411733132144012632 0ustar From: Jari Aalto Subject: Manual page fixes --- lv.1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/lv.1 +++ b/lv.1 @@ -224,8 +224,8 @@ Set a tunable variable. Levee has a dozen or so user-definable variables which you can twiddle via this command. There are boolean, integer, and string variables that you can set. A string or integer -variable is set by 'set xxx=yyy', a boolean variable is set via -'set xxx' or 'set noxxx'. +variable is set by "set xxx=yyy", a boolean variable is set via "set +xxx" or "set noxxx". Here are the settable variables (and abbreviations): .TP @@ -275,8 +275,8 @@ during searches. .TP .B "mapslash" -(ST version only) Map '/' in filenames to -'\\'. If the environment contains `mapslash' +(ST version only) Map "/" in filenames to "\\". +If the environment contains `mapslash' when levee is called, this variable will default to true, otherwise it defaults to false. (See the documentation for the @@ -826,7 +826,7 @@ .TP .IB (*) `(x) Move to the exact position of mark (x). There is a special mark for some -of the visual mode move ment commands -- '' will move you to where you +of the visual mode move meant commands -- '' will move you to where you were before the last (,),',`,G,/,?,n,N command. .TP @@ -913,7 +913,7 @@ .B [A-Za-z][A-Za-z0-9]* Find the next identifier. .TP -.B (\\*.*\\*) +.B ([*].*[*]) Find the next one-line pascal comment. .TP .B \ debian/patches/series0000644000000000000000000000004511733132144012030 0ustar 10-gcc4.4-getline.patch 20-man.patch