[Pkg-jed-commit] r526 - jedstate/trunk/debian
Rafael Laboissiere
rafael at alioth.debian.org
Mon Feb 5 17:49:44 CET 2007
Author: rafael
Date: 2007-02-05 17:49:43 +0100 (Mon, 05 Feb 2007)
New Revision: 526
Added:
jedstate/trunk/debian/NEWS
jedstate/trunk/debian/compat
jedstate/trunk/debian/install
jedstate/trunk/debian/jedstate-to-gdbmrecent
jedstate/trunk/debian/manpages
Removed:
jedstate/trunk/debian/99jedstate_hook.sl
jedstate/trunk/debian/README.Debian
jedstate/trunk/debian/dirs
jedstate/trunk/debian/docs
jedstate/trunk/debian/jedstate.1
jedstate/trunk/debian/postrm
jedstate/trunk/debian/preinst
Modified:
jedstate/trunk/debian/changelog
jedstate/trunk/debian/control
jedstate/trunk/debian/copyright
jedstate/trunk/debian/rules
Log:
Preparation for release 0.5.4.transitional.1-1
Deleted: jedstate/trunk/debian/99jedstate_hook.sl
===================================================================
--- jedstate/trunk/debian/99jedstate_hook.sl 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/99jedstate_hook.sl 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,65 +0,0 @@
-%% -*- 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/NEWS
===================================================================
--- jedstate/trunk/debian/NEWS 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/NEWS 2007-02-05 16:49:43 UTC (rev 526)
@@ -0,0 +1,33 @@
+jedstate (0.5.4.transitional.1-1) unstable; urgency=low
+
+ The functionalities of jedstate have been superseded by the gdbmrecent
+ module in the jed-extra package. Therefore, this package has been
+ transformed into a transition package in order to help users to
+ migrate their jedstate databases into gdbmrecent ones.
+
+ The migration is done by the jedstate-to-gdbmrecent script provided in
+ the package. Under normal conditions, a simple call like this should
+ be enough:
+
+ $ jedstate-to-gdbmrecent
+
+ However, if the databases are in non-standards places, you could also
+ call:
+
+ $ jedstate-to-gdbmrecent ~/.jedstate.db ~/.jed/recent_db
+
+ (Notice that the arguments above correspond to the standard, default file
+ names.)
+
+ In order to activate the use of the gdbmrecent, install the jed-extra
+ package and add the following to your ~/.jed/jed.rc (or whichever
+ initialization file):
+
+ require ("gdbmrecent")
+
+ After that, the jedstate package can be safely removed.
+
+ -- Rafael Laboissiere <rafael at debian.org> Mon, 5 Feb 2007 17:10:59 +0100
+
+
+
Deleted: jedstate/trunk/debian/README.Debian
===================================================================
--- jedstate/trunk/debian/README.Debian 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/README.Debian 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,6 +0,0 @@
-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.
-
Modified: jedstate/trunk/debian/changelog
===================================================================
--- jedstate/trunk/debian/changelog 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/changelog 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,3 +1,15 @@
+jedstate (0.5.4.transitional.1-1) unstable; urgency=low
+
+ NOT YET RELEASED!
+
+ * Adoption by the Debian JED Group (closes: #385744)
+ * New "upstream release". Actually, the upstream tarball is empty now.
+ * This package is actually a transitional package, to help users
+ migrating from the obsolete jedstate database into the new gdbmrecent
+ one. (closes: #406815)
+
+ --
+
jedstate (0.5.4-6) unstable; urgency=low
* QA upload. (Ack NMU; Closes: #325212)
@@ -35,10 +47,10 @@
(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
@@ -49,7 +61,7 @@
-- 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 ...)
@@ -60,17 +72,17 @@
jedstate (0.5.3-2) unstable; urgency=low
* Removed path from "dh_installman"
-
- * (closes: #95949)
+ * (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
@@ -79,7 +91,7 @@
* 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
Added: jedstate/trunk/debian/compat
===================================================================
--- jedstate/trunk/debian/compat 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/compat 2007-02-05 16:49:43 UTC (rev 526)
@@ -0,0 +1 @@
+5
Modified: jedstate/trunk/debian/control
===================================================================
--- jedstate/trunk/debian/control 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/control 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,16 +1,21 @@
Source: jedstate
Section: editors
Priority: optional
-Maintainer: Debian QA Group <packages at qa.debian.org>
-Build-Depends: debhelper (>> 4.0.0), libgdbm-dev
+Maintainer: Debian JED Group <pkg-jed-devel at lists.alioth.debian.org>
+Uploaders: Rafael Laboissiere <rafael at debian.org>
+Build-Depends: debhelper (> 5), cdbs
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.
+Architecture: all
+Recommends: jed-extra (>= 2.2.1)
+Description: extended mind for John E. Davis' text editor jed
+ Jedstate used to be some sort of an extended mind for John E. Davis'
+ splendid text editor jed. Its functionality has been superseded by
+ the gdbmrecent module in the jed-extra package. Therefore, this
+ package is now just a transition package to help users migrate from
+ their old jedstate database to a gdbmrecent one. Once the migration
+ is done, this package can be safely removed.
+ .
+ If you have never used jedstate before, this package is not for you.
+ Install jed-extra instead.
Modified: jedstate/trunk/debian/copyright
===================================================================
--- jedstate/trunk/debian/copyright 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/copyright 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,15 +1,8 @@
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/
+It has been adopted by the Debian JED Group and transformed into a
+transition package to allow smooth migration from jedstate to gdbmrecent
+databases.
-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.
-
-
+In its current incarnation, there are no "upstream" files in the package.
Deleted: jedstate/trunk/debian/dirs
===================================================================
--- jedstate/trunk/debian/dirs 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/dirs 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,3 +0,0 @@
-usr/bin
-usr/sbin
-etc/jed-init.d
Deleted: jedstate/trunk/debian/docs
===================================================================
--- jedstate/trunk/debian/docs 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/docs 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,6 +0,0 @@
-BUGS
-LSM
-README
-HISTORY
-jedstate.cron
-jedstate.crontab
Added: jedstate/trunk/debian/install
===================================================================
--- jedstate/trunk/debian/install 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/install 2007-02-05 16:49:43 UTC (rev 526)
@@ -0,0 +1 @@
+debian/jedstate-to-gdbmrecent usr/bin
Added: jedstate/trunk/debian/jedstate-to-gdbmrecent
===================================================================
--- jedstate/trunk/debian/jedstate-to-gdbmrecent 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/jedstate-to-gdbmrecent 2007-02-05 16:49:43 UTC (rev 526)
@@ -0,0 +1,76 @@
+#!/usr/bin/perl -w
+
+# jedstate-to-gdbmrecent: migrate from jedstate to gdbmrecent databases
+# Copyright (C) 2007 Rafael Laboissiere
+
+# This script 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 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.
+
+=head1 NAME
+
+jedstate-to-gdbmrecent - migrate from jedstate to gdbmrecent databases
+
+=head1 SYNOPSIS
+
+ jedstate-to-gdbmrecent [JEDSTATE-DB [GDBMRECENT-DB]]
+
+=head1 DESCRIPTION
+
+B<jedstate-to-gdbmrecent> is a tool to help users to mirate from a
+jedstate database into a gdbmrecent one. It can be called with 0, 1
+or 2 arguments. When present, the first and second arguments are the
+file names of the jedstate database (defaults to F<~/.jedstate.db>)
+and the gdbmrecent one (defaults to F<~/.jed/recent_db>). If
+C<GDBMRECENT-DB> does not exist, then it will be created. Otherwise,
+the contents of C<JEDSTATE-DB> will be added to it.
+
+In order to use the gdbmrecent database, install the jed-extra Debian
+package and add the following to your F<~/.jed/jed.rc> initialization
+file (or whichever name it has):
+
+ require ("gdbmrecent");
+
+=head1 SEE ALSO
+
+L<jed (1)>
+
+=head1 AUTHOR
+
+Rafael Laboissiere
+
+=cut
+
+use GDBM_File;
+
+(my $prog = $0) =~ s{.*/}{};
+
+die "Usage: $prog [~/.jedstate.db [~/.jed/recent_db]]"
+ if $#ARGV > 1;
+
+my $jedstate_db = ($#ARGV >= 0 ? $ARGV [0] : "$ENV{HOME}/.jedstate.db");
+my $gdbmrecent_db = ($#ARGV == 1 ? $ARGV [1] : "$ENV{HOME}/.jed/recent_db");
+
+tie %jedstate, 'GDBM_File', $jedstate_db , &GDBM_READER, 0644
+ or die "$prog: Cannot open file $jedstate_db for reading\n";
+
+tie %gdbmrecent, 'GDBM_File', $gdbmrecent_db , &GDBM_WRCREAT, 0644
+ or die "$prog: Cannot open file $gdbmrecent_db for reading/writing\n";
+
+while ((my $k, $v) = each %jedstate) {
+ ## Remove leading ^@ character
+ $k = substr ($k, 0, -1);
+ $v = substr ($v, 0, -1);
+ ## Store values : jedstate is <column>\t<line>\t<time>
+ ## gdbmrecent is <time>:<line>:<column>
+ $gdbmrecent {$k} = join (":", reverse (split (/\s+/, $v)));
+}
+
+untie %jedstate;
+untie %gdbmrecent;
Property changes on: jedstate/trunk/debian/jedstate-to-gdbmrecent
___________________________________________________________________
Name: svn:executable
+ *
Deleted: jedstate/trunk/debian/jedstate.1
===================================================================
--- jedstate/trunk/debian/jedstate.1 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/jedstate.1 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,113 +0,0 @@
-.\" 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/manpages
===================================================================
--- jedstate/trunk/debian/manpages 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/manpages 2007-02-05 16:49:43 UTC (rev 526)
@@ -0,0 +1 @@
+jedstate-to-gdbmrecent.1
Deleted: jedstate/trunk/debian/postrm
===================================================================
--- jedstate/trunk/debian/postrm 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/postrm 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,54 +0,0 @@
-#! /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#
-
-
Deleted: jedstate/trunk/debian/preinst
===================================================================
--- jedstate/trunk/debian/preinst 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/preinst 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,47 +0,0 @@
-#! /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
-
-
Modified: jedstate/trunk/debian/rules
===================================================================
--- jedstate/trunk/debian/rules 2007-02-05 15:15:22 UTC (rev 525)
+++ jedstate/trunk/debian/rules 2007-02-05 16:49:43 UTC (rev 526)
@@ -1,86 +1,14 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# debian/rules for the jedstate package
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+include /usr/share/cdbs/1/rules/debhelper.mk
-# This is the debhelper compatability version to use.
-export DH_COMPAT=4
+script := jedstate-to-gdbmrecent
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
-
+%.1: debian/%
+ pod2man --center="User Commands" $< > $@
- touch configure-stamp
+build/jedstate:: $(script).1
-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
+clean::
+ rm -rf $(script).1
\ No newline at end of file
More information about the Pkg-jed-commit
mailing list