debian/0000755000000000000000000000000012101203134007151 5ustar debian/prerm0000755000000000000000000000015412100765010010231 0ustar #!/bin/sh set -e if test remove = "$1" then update-alternatives --remove editor /usr/bin/mg fi #DEBHELPER# debian/compat0000644000000000000000000000000211533064222010362 0ustar 7 debian/examples0000644000000000000000000000000411533064222010717 0ustar .mg debian/changelog0000644000000000000000000001172212101203047011031 0ustar mg (20110905-1.1) unstable; urgency=low * Non-maintainer upload with maintainer approval. * prerm: Preserve the /usr/bin/editor alternative during upgrades and unregister it on package removal. (Closes: #668439) -- Andreas Beckmann Sun, 27 Jan 2013 11:48:28 +0100 mg (20110905-1) unstable; urgency=low * New upstream release (Closes: #625385). * Poke debian/copyright (Closes: #617838). * Poke debian/control (Closes: #638154). -- Trent W. Buck Sat, 17 Sep 2011 16:15:37 +1000 mg (20110120-1) unstable; urgency=low * Use overrides style rules. * Fix parallel compilation (debuild -j8). * New upstream URL in watchfile. * Allow parallelism. * New upstream release (Closes: #414846, #565036). * Apply Xavier's patch (Closes: #573447). -- Trent W. Buck Tue, 01 Mar 2011 15:53:46 +1100 mg (20090107-3) unstable; urgency=low * control, watch: Upstream homepage moved (Closes: #517210). -- Trent W. Buck Sat, 21 Mar 2009 13:32:09 +1100 mg (20090107-2) unstable; urgency=low * The "binary" target was taught about the "make install" exception directly, but sbuild was invoking the binary-arch target directly. (Closes: #515790, #515807). * Expand explanatory comments in debian/rules regarding ./configure. -- Trent W. Buck Sat, 21 Mar 2009 13:31:46 +1100 mg (20090107-1) unstable; urgency=low * New upstream release * Obsoletes old patches. * Replace CDBS with dh. * The sample .mg is an example, not documentation. -- Trent W. Buck Tue, 17 Feb 2009 18:51:46 +1100 mg (20080610-1) unstable; urgency=low * New upstream release * funmap.c, funmap.h, grep.c: enter the Public Domain. * rules (DM-Upload-Allowed): obviate the need for sponsors. * control (Standards-Version): bump to 3.8.0; no changes needed. -- Trent W. Buck Fri, 13 Jun 2008 17:20:08 +1000 mg (20070918-2) unstable; urgency=low * Sponsored upload by Jens Peter Secher: + compat: Bumped to version 5 in correspondence with dependencies. + patches/manpage-hyphens.patch: Extend patch to escape minus signs. -- Trent W. Buck Thu, 24 Jan 2008 21:12:00 +0100 mg (20070918-1) UNRELEASED; urgency=low * New upstream release * rules, control: use cdbs. * control (Build-Depends): remove erroneous autotools-dev dependency. * control (Homepage): promote to source stanza (per dpkg 1.14.6). * control (Description): tweak. * control (Build-Depends): bump debhelper version appease linda. * changelog (config.h): new unlicensed, unused stub added upstream. * control (Standards-Version): upgrade to 3.7.3 * menu: fix menu-item-uses-apps-section. * patches/445232.patch: document auto-execute (Closes: #445232) * docs (.mg): add (Closes: #445233) * patches/445234.patch: extend documentation (Closes: #445234) -- Trent W. Buck Wed, 19 Dec 2007 19:17:27 +1100 mg (20070529-1) unstable; urgency=low * New upstream release * control (Maintainer): add my middle initial. -- Trent W. Buck Fri, 31 Aug 2007 12:50:20 +1000 mg (20070329-1) unstable; urgency=low * New upstream release * control (Description): tweak (Closes: #415267) * copyright: updated -- Trent Buck Fri, 30 Mar 2007 15:51:01 +1000 mg (20070214-1) unstable; urgency=low * New upstream release -- Trent Buck Mon, 26 Feb 2007 06:50:19 +1100 mg (20061222-1) unstable; urgency=low * New upstream release * watch: added (Closes: #402119) * control: remove silly Suggests field -- Trent Buck Sat, 23 Dec 2006 13:27:00 +1100 mg (20061119-1) unstable; urgency=low * New upstream release (Closes: #391827) * control: provides editor (Closes: 396297) * control: follow to latest Debian Policy * control: remove explicit libc6-dev, see http://lintian.debian.org/reports/Tdepends-on-build-essential-package-without-using-version.html -- Trent Buck Sun, 19 Nov 2006 13:13:20 +1100 mg (20060919-1) unstable; urgency=low * New upstream release -- Trent Buck Mon, 2 Oct 2006 12:53:24 +1000 mg (20060818-2) unstable; urgency=low * control: Include homepage in description field. * control: mention other editors in description field. -- Trent Buck Thu, 7 Sep 2006 12:25:37 +1000 mg (20060818-1) unstable; urgency=low * New upstream release * Set the priority to `optional' * Added a menu entry (based on Zile's) * Add mg to list of `editor' alternatives -- Trent Buck Mon, 28 Aug 2006 16:47:11 +1000 mg (20060709-1) unstable; urgency=low * New upstream release -- Trent Buck Mon, 10 Jul 2006 04:23:47 +1000 mg (20060707-1) unstable; urgency=low * Initial release (Closes: #375408) -- Trent Buck Mon, 26 Jun 2006 13:19:47 +1000 debian/control0000644000000000000000000000165411635034716010605 0ustar Source: mg Section: editors Priority: optional Maintainer: Trent W. Buck DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), libncurses-dev Standards-Version: 3.8.0 Homepage: http://www.han.dds.nl/software/mg/ Vcs-Darcs: https://darcs.debian.org/collab-maint/mg Vcs-Browser: https://darcs.debian.org/collab-maint/mg Package: mg Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Provides: editor Description: microscopic GNU Emacs-style editor This program is intended to be a small, fast, and portable editor for people who can't (or don't want to) run real Emacs for one reason or another. It is compatible with GNU because there shouldn't be any reason to learn more than one Emacs flavor. . Packages which provide editors with broadly similar goals include . * e3; * joe; * jove and xjove; * ng-cjk, ng-cjk-canna and ng-latin; * qemacs and qemacs-nox; and * zile debian/copyright0000644000000000000000000002134211635034430011122 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=227 Upstream-Name: mg Upstream-Maintainer: Han Boetes Upstream-Source: http://homepage.boetes.org/software/mg/ Files: * License: PD The exact wording differs between files, but this is common: This file is in the public domain. Files: debian/* Copyright: Copyright 2005, Trent W. Buck License: other Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: basename.c, dirname.c Copyright: Copyright (c) 1997, 2004 Todd C. Miller License: other Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: fgetln.c Copyright: Copyright (c) 2007 Thorsten Glaser License: other Provided that these terms and disclaimer and all copyright notices are retained or reproduced in an accompanying document, permission is granted to deal in this work without restriction, including un- limited rights to use, publicly perform, distribute, sell, modify, merge, give away, or sublicence. This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to the utmost extent permitted by applicable law, neither express nor implied; without malicious intent or gross negligence. In no event may a licensor, author or contributor be held liable for indirect, direct, other damage, loss, or other issues arising in any way out of dealing in the work, even if advised of the possibility of such damage or existence of a defect, except proven that it results out of said person's immediate fault when using the work as intended. Files: queue.h Copyright: Copyright (c) 1991, 1993 The Regents of the University of California. License: BSD-C3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: strlcat.c, strlcpy.c Copyright: Copyright (c) 1998 Todd C. Miller License: other Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: strtonum.c Copyright: Copyright (c) 2004 Ted Unangst and Todd Miller License: other Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: theo.c Copyright: Copyright (c) 2002 Artur Grabowski License: other Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. The name of the author 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 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: undo.c Copyright: Copyright (c) 2002 Vincent Labrecque License: other Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/rules0000755000000000000000000000141311533064554010253 0ustar #!/usr/bin/make -f %: +dh $@ --parallel # mg's ./configure script is not made by autoconf, and it does not # accept arguments. To make users realize this, ./configure exits if # it is passed arguments -- which dh_auto_configure does. Therefore, # we need an exception to invoke it manually. override_dh_auto_configure: ./configure # Because --prefix=/usr and such are not set up by ./configure, we # need to invoke "make install" manually, too. override_dh_auto_install: +$(MAKE) install DESTDIR=debian/mg prefix=/usr mandir=/usr/share/man # For use with a new clone of debian/ from darcs.debian.org. get-orig-source: uscan --download-current-version tar --transform 's|^[^/]\+||' -xf ../mg_`dpkg-parsechangelog | sed -rn 's/^Version: ((\d+):)?(.*)-.*/\3/p'`.orig.tar.gz debian/docs0000644000000000000000000000002111533064222010030 0ustar README tutorial debian/postinst0000755000000000000000000000027111533064222010775 0ustar #!/bin/sh set -e update-alternatives --install /usr/bin/editor editor /usr/bin/mg 30 \ --slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/mg.1.gz #DEBHELPER# debian/patches/0000755000000000000000000000000011533070147010616 5ustar debian/patches/series0000644000000000000000000000003511533066543012036 0ustar 573447-huge-terminal-support debian/patches/573447-huge-terminal-support0000644000000000000000000000225011533070147015566 0ustar Description: support terminals bigger than 129 lines mg segfaults when the terminal is very wide. Using a larger datatype is reported to fix this. Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=12;bug=573447 Bug-Debian: http://bugs.debian.org/573447 Forwarded: mailto:han@mijncomputer.nl (Han Boetes) Reviewed-By: Trent W. Buck Last-Update: 2010-03-19 Author: xavier.hienne@free.fr Index: mg-20110120/def.h =================================================================== --- mg-20110120.orig/def.h 2011-03-01 15:04:31.418745025 +1100 +++ mg-20110120/def.h 2011-03-01 15:04:48.431449555 +1100 @@ -204,9 +204,9 @@ struct line *w_markp; /* Line containing "mark" */ int w_doto; /* Byte offset for "." */ int w_marko; /* Byte offset for "mark" */ - char w_toprow; /* Origin 0 top row of window */ - char w_ntrows; /* # of rows of text in window */ - char w_frame; /* #lines to reframe by. */ + int w_toprow; /* Origin 0 top row of window */ + int w_ntrows; /* # of rows of text in window */ + int w_frame; /* #lines to reframe by. */ char w_rflag; /* Redisplay Flags. */ char w_flag; /* Flags. */ struct line *w_wrapline; debian/menu0000644000000000000000000000013511533064222010052 0ustar ?package(mg):needs="text" section="Applications/Editors"\ title="Mg" command="/usr/bin/mg" debian/source/0000755000000000000000000000000011533064222010464 5ustar debian/source/format0000644000000000000000000000001411533064222011672 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000010011533064222010204 0ustar version=3 http://homepage.boetes.org/software/mg/mg-(.*).tar.gz