[Pkg-jed-commit] r524 - in jedstate/trunk: . debian

Rafael Laboissiere rafael at alioth.debian.org
Mon Feb 5 16:14:19 CET 2007


Author: rafael
Date: 2007-02-05 16:14:18 +0100 (Mon, 05 Feb 2007)
New Revision: 524

Added:
   jedstate/trunk/debian/
   jedstate/trunk/debian/99jedstate_hook.sl
   jedstate/trunk/debian/README.Debian
   jedstate/trunk/debian/changelog
   jedstate/trunk/debian/control
   jedstate/trunk/debian/copyright
   jedstate/trunk/debian/dirs
   jedstate/trunk/debian/docs
   jedstate/trunk/debian/jedstate.1
   jedstate/trunk/debian/postrm
   jedstate/trunk/debian/preinst
   jedstate/trunk/debian/rules
Log:
Added files for last released version of jedstate


Added: jedstate/trunk/debian/99jedstate_hook.sl
===================================================================
--- jedstate/trunk/debian/99jedstate_hook.sl	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/99jedstate_hook.sl	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,65 @@
+%% -*- SLang -*-
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Copyright © 1996-99 Klaus Alexander Seistrup @ Magnetic Ink, DK-2860
+%%
+%%   Author: Klaus Alexander Seistrup
+%%  Created: Sun Oct 20 23:48:27 MET DST 1996
+%% @(#) $Id: sample-hook-1.sl,v 1.2 1999/07/21 18:57:07 kas Exp $
+%%
+%% This program 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 program is distributed in the hope that it will be useful, but with-
+%% out 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, please write to the Free Software Foundation,
+%% Inc., 59 Temple Place, Suite 330, Boston MA 02111-1307, USA.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+variable Jed_State_File = dircat (getenv ("HOME"), ".jedstate.sl");
+
+% Startup hook that utilizes getjedstate
+
+	define getjedstate_hook ()
+	{
+   	!if (BATCH) % not evaluated for batch processes
+		 {
+			$1 = Sprintf ("getjedstate \"%s\"", buffer_filename, 1);
+			() = system ($1);
+                   
+			if (file_status (Jed_State_File) == 1)    % if we have a .jedstate.sl
+		  	{
+				 () = evalfile (Jed_State_File);       % evaluate command
+			 	() = delete_file (Jed_State_File);    % - then delete source
+		  	}
+	 	}
+	}
+	   add_to_hook ("_jed_find_file_after_hooks", &getjedstate_hook);
+% Exit hook that utilizes setjedstate
+  static define setjedstate_hook ()
+{
+   !if (BATCH)                           % not evaluated for batch processes
+	 {
+		variable fname = buffer_filename ();
+		
+		if (strlen (fname))% only if we actually have a file name
+		  {
+			 variable line = what_line ();% active line
+			 variable col = what_column ();% - and column
+				  
+			 $1 = Sprintf ("setjedstate \"%s\" %d %d", fname, line, col, 3);
+			 () = system ($1);% do it
+		  }
+		
+	 }
+}
+
+   add_to_hook ("_jed_save_buffer_after_hooks", &setjedstate_hook);
+  
+
+%% EOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Added: jedstate/trunk/debian/README.Debian
===================================================================
--- jedstate/trunk/debian/README.Debian	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/README.Debian	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,6 @@
+1) Jedstate will now run as a default-hook. The first time you start the
+   editor your personal database will be created.
+
+2) For sample cron entries to maintain your database look at
+jedstate.cron or jedstate.crontab.
+

Added: jedstate/trunk/debian/changelog
===================================================================
--- jedstate/trunk/debian/changelog	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/changelog	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,93 @@
+jedstate (0.5.4-6) unstable; urgency=low
+
+  * QA upload. (Ack NMU; Closes: #325212)
+  * Set maintainer to QA Group; Orphaned: #385744
+  * Bump compat level, depend on at least dh 4.0.0
+  * Remove jedstate binary on clean
+
+ -- Michael Ablassmeier <abi at debian.org>  Mon, 18 Sep 2006 09:58:04 +0200
+
+jedstate (0.5.4-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Define _GNU_SOURCE to avoid an implicitly converted return pointer from
+    basename().  Closes: #325212
+
+ -- dann frazier <dannf at debian.org>  Sun,  2 Oct 2005 10:48:21 -0600
+
+jedstate (0.5.4-5) unstable; urgency=low
+
+  * Updating build-depends to libgdbm-dev
+
+ -- Michael Hummel <mhummel at debian.org>  Fri,  6 Jun 2003 06:18:42 +0200
+
+jedstate (0.5.4-4) unstable; urgency=low
+
+  * Moving /etc/jed-init.d/ hook out of the way, when removing the package
+    in the postrm script (closes: #172632)
+  * Migrating to Standards version 3.5.8
+
+ -- Michael Hummel <mhummel at debian.org>  Fri, 13 Dec 2002 16:30:35 +0100
+
+jedstate (0.5.4-3) unstable; urgency=low
+
+  * Should work with multiple files now
+  (changed sl_hook definitions: now adds itself to
+    "_jed_find_file_after_hooks" and "_jed_save_buffer_after_hooks")
+   (closes: #145741)
+  
+  * Clean-ups: removing .ex files and lowering parsing priority at jed-startup
+  
+  
+ -- Michael Hummel <mhummel at debian.org>  Sat,  4 May 2002 08:51:36 +0200
+
+jedstate (0.5.4-2) unstable; urgency=low
+
+  * Conformation to the new jed-startup-process.
+  *  (closes: #119746)
+
+ -- Michael Hummel <mhummel at debian.org>  Thu, 15 Nov 2001 22:52:47 +0100
+
+jedstate (0.5.4-1) unstable; urgency=low
+  
+  * Applied a patch from Nick Rusnov to allow jedstate to compile on the hurd
+    (no opportunity to check this myself, at least it should work on other
+    architectures like before ...)
+  *  (closes: #106477)
+
+ -- Michael Hummel <mhummel at debian.org>  Sun,  5 Aug 2001 15:13:28 +0200
+
+jedstate (0.5.3-2) unstable; urgency=low
+
+  * Removed path from "dh_installman"
+  
+  * (closes: #95949) 
+
+ -- Michael Hummel <mhummel at debian.org>  Tue,  1 May 2001 17:36:01 +0200
+
+jedstate (0.5.3-1) unstable; urgency=medium
+
+  * New upstream version
+  
+  * It should build now on other architectures
+  
+  * (closes: #93498)
+
+ -- Michael Hummel <mhummel at debian.org>  Sun, 29 Apr 2001 20:26:36 +0200
+
+jedstate (0.5.2-2) unstable; urgency=high
+
+  * Added libgdbmg1-dev to build-depends; gdbm.h header was missing; I
+    will check the migration to libdb with the upstream author  anyway.
+     
+  *  (closes: #93320)
+
+ -- Michael Hummel <mhummel at debian.org>  Sun,  8 Apr 2001 22:12:40 +0200
+
+jedstate (0.5.2-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Michael Hummel <mhummel at debian.org>  Mon,  2 Apr 2001 20:49:32 +0200
+
+

Added: jedstate/trunk/debian/control
===================================================================
--- jedstate/trunk/debian/control	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/control	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,16 @@
+Source: jedstate
+Section: editors
+Priority: optional
+Maintainer: Debian QA Group <packages at qa.debian.org>
+Build-Depends: debhelper (>> 4.0.0), libgdbm-dev 
+Standards-Version: 3.7.2
+
+Package: jedstate
+Architecture: any
+Depends: ${shlibs:Depends}, jed-common (>= 0.99.15-2)
+Description: Extended mind for John E. Davis' text editor jed
+ Jedstate is some sort of an extended mind for John E. Davis' splendid text
+ editor jed. Using jedstate and jed's startup and exit hooks as a glue jed
+ "remembers" the position of the cursor for all visited files and will
+ automagically jump to that position whenever the file is revisited.  The
+ database is purgeable based on a time-since-last-view criterion. 

Added: jedstate/trunk/debian/copyright
===================================================================
--- jedstate/trunk/debian/copyright	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/copyright	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,15 @@
+This package was debianized by Michael Hummel <mhummel at debian.org> on
+Sun, 03 Mar 2001 10:59:39 +0100.
+
+It was downloaded from: http://www.magnetic-ink.dk/pub/
+
+Upstream Author:  Klaus Alexander Seistrup <kseis at magnetic-ink.dk>
+
+Copyright: GPL 
+
+You are free to distribute this software under the terms of
+the GNU General Public License. On Debian systems, the complete text of the
+GNU General Public License can be found in /usr/share/common-licenses/GPL
+file.
+
+

Added: jedstate/trunk/debian/dirs
===================================================================
--- jedstate/trunk/debian/dirs	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/dirs	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,3 @@
+usr/bin
+usr/sbin
+etc/jed-init.d

Added: jedstate/trunk/debian/docs
===================================================================
--- jedstate/trunk/debian/docs	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/docs	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,6 @@
+BUGS
+LSM
+README
+HISTORY
+jedstate.cron
+jedstate.crontab

Added: jedstate/trunk/debian/jedstate.1
===================================================================
--- jedstate/trunk/debian/jedstate.1	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/jedstate.1	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,113 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH JEDSTATE 1 "February 24, 2001"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+jedstate \- an add-on for the text-editor \fIjed\fP
+.SH SYNOPSIS
+
+Usually you won't have to invoke \fBjedstate\fP manually.
+For sample crontab entries to maintain your database see the
+\fBExamples\fP section.
+.\".B jedstate
+.\".RI [ options ] " files" ...
+.\".br
+.\".B bar
+.\".RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+\fBjedstate\fP command.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.\"Instead, it has documentation in the GNU Info format; see below.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invoke bold face and italics,
+.\" respectively.
+\fBjedstate\fP is some sort of an extended mind for John E. Davis' splendid text
+editor jed. Using jedstate and jed's startup and exit hooks as a glue jed
+"remembers" the position of the cursor for all visited files and will
+automagically jump to that position whenever the file is revisited.  The
+database is purgeable based on a time-since-last-view criterion.
+
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+.\"For a complete description, see the Info files.
+.TP
+.B \-xN \-\-example=[N]
+print sample startup/exit hooks (1|2)
+.TP
+.B \-h \-\-help
+Show summary of options.
+.TP
+.B \-pAGE \-\-purge=AGE
+Purge database entries older than AGE
+.sp
+Where AGE is age-since-last-view in seconds unless appended with `Y' (years),
+`W' (weeks), `D' (days), `H' (hours) or `M' (minutes), e.g., "2w" (2 weeks) or
+"19d" (19 days).
+.br
+Be careful not to overflow an int.  If AGE is negative no
+purging will take place.  If age is zero the database will be cleared
+(this is useful when installing jedstate for the first time)!
+.br
+To purge only non-existent files set AGE=0x7FFFFFFF or some other large number.
+.TP
+.B \-q \-\-quiet
+Suppress normal output
+.TP
+.B \-Q \-\-really-quiet
+Suppress even error messages
+.TP
+.B  \-V \-\-version
+Show version of program.
+.SH EXAMPLES
+
+Sample crontab entries for database maintenance:
+
+# Keep four weeks' worth of data
+.br
+02 00  *  *  *  /usr/bin/jedstate --purge=4w
+.sp
+# Keep four weeks' worth of data and shut your mouth
+.br
+02 00  *  *  *  /usr/bin/jedstate --purge=4w -q
+.sp
+# Purge only non-existent files
+.br
+02 00  *  *  *  /usr/bin/jedstate --purge=0x7fffffff
+
+# Reset database every Monday
+.br
+02 00  *  *  1  /usr/bin/jedstate --purge=0
+
+# Don't do anything
+.br
+02 00  *  *  *  /usr/bin/jedstate --purge=-1
+
+.SH SEE ALSO
+.BR jed (1).
+.br
+.\"The programs are documented fully by
+.\".IR "The Rise and Fall of a Fooish Bar" ,
+.\"available via the Info system.
+.SH AUTHOR
+Klaus Alexander Seistrup <kseis at magnetic-ink.dk>
+
+This manual page was written by Michael Hummel, <mh at seitung.net>,
+for the Debian GNU/Linux system (but may be used by others).

Added: jedstate/trunk/debian/postrm
===================================================================
--- jedstate/trunk/debian/postrm	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/postrm	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,54 @@
+#! /bin/sh
+# postrm script for jedstate
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    remove|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+       if [ -f "/etc/jed-init.d/99jedstate_hook.sl" ] ; then
+	   mv /etc/jed-init.d/99jedstate_hook.sl /etc/jed-init.d/99jedstate_hook.sl.dpkg-old
+       fi
+       if [ -f "/etc/jed-init.d/01jedstate_hook.sl.old" ]; then
+	   rm /etc/jed-init.d/01jedstate_hook.sl.old
+       fi
+       ;;
+    upgrade)
+	if [ -f "/etc/jed-init.d/01jedstate_hook.sl.old" ]; then
+	    rm /etc/jed-init.d/01jedstate_hook.sl.old
+	fi
+	;;
+    purge)
+
+	if [ -f "/etc/jed-init.d/99jedstate_hook.sl.dpkg-old" ]; then
+	    rm /etc/jed-init.d/99jedstate_hook.sl.dpkg-old
+	fi
+	if [ -f "/etc/jed-init.d/01jedstate_hook.sl.old" ]; then
+	   rm /etc/jed-init.d/01jedstate_hook.sl.old
+	fi
+	;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 0
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+

Added: jedstate/trunk/debian/preinst
===================================================================
--- jedstate/trunk/debian/preinst	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/preinst	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,47 @@
+#! /bin/sh
+# preinst script for jedstate
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+#
+# For details see /usr/share/doc/packaging-manual/
+old_hook="/etc/jed-init.d/01jedstate_hook.sl"
+backup="/etc/jed-init.d/01jedstate_hook.sl.old"
+case "$1" in
+    install|upgrade)
+#        if [ "$1" = "upgrade" ]
+#        then
+#            start-stop-daemon --stop --quiet --oknodo  \
+#                --pidfile /var/run/jedstate.pid  \
+#                --exec /usr/sbin/jedstate 2>/dev/null || true
+#        fi 
+	  if [ -e "$old_hook" ]
+	  	then
+		    mv $old_hook $backup && echo "Old jedstate_hook backed up to $backup just in case ..."
+	  fi	
+	;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: jedstate/trunk/debian/rules
===================================================================
--- jedstate/trunk/debian/rules	2007-02-05 15:08:59 UTC (rev 523)
+++ jedstate/trunk/debian/rules	2007-02-05 15:14:18 UTC (rev 524)
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=4
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/jedstate.sgml > jedstate.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+	rm -f jedstate
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/jedstate.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/jedstate
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installcron
+	dh_installman jedstate.1
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs 
+	dh_link usr/share/man/man1/jedstate.1 usr/share/man/man1/setjedstate.1 \
+	 usr/share/man/man1/jedstate.1 usr/share/man/man1/getjedstate.1
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: jedstate/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-jed-commit mailing list