debian/0000755000000000000000000000000012253141105007160 5ustar debian/changelog0000644000000000000000000001051312253140605011036 0ustar whichman (2.4-8) unstable; urgency=medium * Add 11-CPPFLAGS-and-LDFLAGS.patch to pass the two variables to compiler. * Cleanup debian/rules, add support for cross-compiling, and enable LFS support. * Standards-Version: 3.9.5 (no changes). -- Robert Luberda Sat, 14 Dec 2013 21:35:44 +0100 whichman (2.4-7) unstable; urgency=low * Switch to debhelper v9 and tiny rules file. * Rename & refresh patches with gbp-pq import/export. * Fix lintian's `spelling-error-in-copyright'. * debian/rules: remove .pc/.dpkg-source-unapply file in rules. This fixes broken behaviour of dpkg-buildpackage (see Bug#649521). * debian/control: + Standards-Version: 3.9.2 (no changes); + add VCS fields; + sort dependency fields with wrap-and-sort. -- Robert Luberda Sun, 19 Feb 2012 16:05:46 +0100 whichman (2.4-6) unstable; urgency=low * Switch to the `3.0 (quilt)' format. * Bump to debhelper v8. * Standards-Version: 3.9.1 (no changes). * Split the previous 01_debian.patch into 3 patches: 00_Makefile.patch, 01_documentation.patch, and 02_no_warn.patch. * debian/rules: + use dpkg-buildflags for getting CFLAGS/LDFLAGS (also added versioned build-dependency on dpkg-dev for this); + call dh_auto_{configure,build,clean} commands; + provide build-{arch,indep} targets. -- Robert Luberda Tue, 15 Feb 2011 22:29:25 +0100 whichman (2.4-5) unstable; urgency=low * Add copyright notice (lintian), -- Robert Luberda Sat, 19 Apr 2008 16:04:29 +0200 whichman (2.4-4) unstable; urgency=low * Use quilt to manage patches, move old debian patch to 01_debian.patch. * Build with debhelper v6. * 10_skip_duplicates.patch: Avoid duplicated files from `ftwhich' and `whichman' output (closes: #452068). * Standards-Version: 3.7.3 (no changes). * debian/control: Add Homepage URL. -- Robert Luberda Tue, 29 Jan 2008 22:39:17 +0100 whichman (2.4-3) unstable; urgency=low * Fix the `debian-rules-ignores-make-clean-error'. and manpage-has-errors-from-man' lintian errors. * Bump debhelper compat version to 6. * Standards-Version: 3.7.2 (no changes). -- Robert Luberda Mon, 15 Oct 2007 21:37:39 +0200 whichman (2.4-2) unstable; urgency=low * Fix typos in ftwhich(1) and ftff(1) man pages. (Closes: #306727,#306728). * Add debian/watch file. -- Robert Luberda Fri, 29 Apr 2005 19:06:43 +0200 whichman (2.4-1) unstable; urgency=low * New upstream version. -- Robert Luberda Tue, 20 Apr 2004 19:48:32 +0200 whichman (2.3-2) unstable; urgency=low * Opps, man pages went to /usr/share/man/man1/man1. Fixed. -- Robert Luberda Sun, 28 Mar 2004 23:15:17 +0200 whichman (2.3-1) unstable; urgency=low * New upstream version. * Standards-Version: 3.6.1 (no changes). -- Robert Luberda Wed, 24 Mar 2004 19:39:44 +0100 whichman (2.2-1) unstable; urgency=low * New upstream version. * debian/control: remove ending dot from the first line of the description field (lintian). * debian/copyright: update URLs. * Standards-Version: 3.5.8 (no changes). -- Robert Luberda Thu, 9 Jan 2003 00:01:13 +0100 whichman (2.0-3) unstable; urgency=low * Upgrade to Standards: 3.5.7 * Build in debhelper in v4 mode. -- Robert Luberda Tue, 22 Oct 2002 22:20:23 +0200 whichman (2.0-2) unstable; urgency=low * Corrected spelling error in description (closes: #125481) and upstream README file. Thanks to Matt Ziemmerman. * Standards-Version: 3.5.6 (no changes). -- Robert Luberda Sat, 22 Dec 2001 22:22:00 +0100 whichman (2.0-1) unstable; urgency=low * New upstream version. * Fixed gcc 3.0 warnings. -- Robert Luberda Fri, 6 Jul 2001 22:49:21 +0200 whichman (1.9-2) unstable; urgency=low * Some fixes in manpages. * Updated debian/rules to the newest debhelper. * Standards-Version: 3.5.5. -- Robert Luberda Wed, 4 Jul 2001 22:58:46 +0200 whichman (1.9-1) unstable; urgency=low * Initial release (closes: #83624). * Use default Debian manpath if environment variable MANPATH is not set. -- Robert Luberda Mon, 29 Jan 2001 20:30:47 +0100 debian/compat0000644000000000000000000000000212253140605010362 0ustar 9 debian/control0000644000000000000000000000204412253140605010567 0ustar Source: whichman Section: utils Priority: optional Maintainer: Robert Luberda Build-Depends: debhelper (>= 9) Standards-Version: 3.9.5 Homepage: http://linuxfocus.org/~guido/#whichman Vcs-Git: git://anonscm.debian.org/users/robert/whichman.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/robert/whichman.git Package: whichman Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Fault tolerant search utilities: whichman, ftff, ftwhich whichman uses a fault tolerant approximate matching algorithm to search for man-pages that match approximately the specified name. The fault tolerant matching is very useful in cases where you remember only roughly the name of a command. . Example: whichman netwhat This finds netstat.8: /usr/share/man/man8/netstat.8 . ftff searches the directory tree. This is a case in-sensitive and fault tolerant way of 'find . -name xxxx -print'. . ftwhich finds files which are in one of the directories in your PATH and uses a fault tolerant search algorithm. debian/copyright0000644000000000000000000000127212253140605011121 0ustar whichman was debianized by Robert Luberda on Thu, 25 Jan 2001 22:29:16 +0100. whichman's home is ftp://www.ibiblio.org/pub/Linux/apps/doctools/ or http://www.ibiblio.org/pub/Linux/apps/doctools/ or http://linuxfocus.org/~guido/ Upstream Author: Guido Socher © 1998-2004 Guido Socher Copyright: This utility set is free software and comes without any warrenty. It falls under the terms of the GNU General Public License (GPL). You can get a copy of the GPL at sunsite.unc.edu /pub/Linux/LICENSES/gpl.license On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in file /usr/share/common-licenses/GPL. debian/docs0000644000000000000000000000000712253140605010034 0ustar README debian/patches/0000755000000000000000000000000012253140605010613 5ustar debian/patches/00-Makefile.patch0000644000000000000000000000144012253140605013565 0ustar From: Robert Luberda Date: Mon, 29 Jan 2001 20:31:00 +0100 Subject: 00 Makefile. Upstream Makefile fixes. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 79beb49..8ab2933 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ CFLAGS= -Wall -O2 #sun c/c++-compiler: #CC=CC #CFLAGS= -O +STRIP=strip + all:whichman ftff ftwhich @@ -31,9 +33,9 @@ levdist.o: levdist.c levdist.h $(CC) $(CFLAGS) -c levdist.c install: whichman ftff ftwhich $(MANP) - strip whichman - strip ftwhich - strip ftff + $(STRIP) whichman + $(STRIP) ftwhich + $(STRIP) ftff [ -d "$(prefix)/bin" ] || $(INSTALL) -d $(prefix)/bin [ -d "$(mandir)/man1" ] || $(INSTALL) -d $(mandir)/man1 $(INSTALL) -m 755 whichman $(prefix)/bin debian/patches/01-Documentation.patch0000644000000000000000000001411512253140605014665 0ustar From: Robert Luberda Date: Fri, 29 Apr 2005 19:08:00 +0200 Subject: 01 Documentation. Fix typos in documentation, update paths for FHS. --- README | 2 +- man1/ftff.1 | 8 ++++---- man1/ftwhich.1 | 22 +++++++++++----------- man1/whichman.1 | 20 ++++++++++++-------- 4 files changed, 28 insertions(+), 24 deletions(-) diff --git a/README b/README index 20e74ba..8c21b4d 100644 --- a/README +++ b/README @@ -44,7 +44,7 @@ tree. This is a case in-sensitive and fault tolerant way of ftwhich -- a fault tolerant "which" command ftwhich finds files (programs) which are in one of the directories in -your PATH and uses a fault tolerant search algorithem. +your PATH and uses a fault tolerant search algorithm. Example, search all clocks: > ftwhich -0 '*clock*' diff --git a/man1/ftff.1 b/man1/ftff.1 index 1c1645d..82f5e50 100644 --- a/man1/ftff.1 +++ b/man1/ftff.1 @@ -4,7 +4,7 @@ .\" .TH FTFF 1 "August 1998" "Search utilities" \" -*- nroff -*- .SH NAME -ftff \- fault tolerant file find utiltiy +ftff \- fault tolerant file find utility .SH SYNOPSIS .B ftff [\-#fFhIpq][\-t#][start_directory] file_to_find @@ -110,8 +110,8 @@ The directory to start the search. The current directory is the default. .PP The last argument to ftff is not parsed for options as the program needs at least one file-name argument. This means that -.I ftff -x -will not complain about a wrong option but search for the file named -x. +.I ftff \-x +will not complain about a wrong option but search for the file named \-x. .SH EXAMPLE .I ftff .RB samething @@ -139,5 +139,5 @@ normally hardly any file that has these characters in its name. .SH AUTHOR Guido Socher (guido@linuxfocus.org) .SH SEE ALSO -whichman(1) find(1) +.BR whichman "(1), " find (1) diff --git a/man1/ftwhich.1 b/man1/ftwhich.1 index ba4d203..0b149c5 100644 --- a/man1/ftwhich.1 +++ b/man1/ftwhich.1 @@ -2,7 +2,7 @@ .\" This is free software and distributed under the .\" terms of the Gnu Public License. .\" -.TH ftwhich 15 "January 1999" "Search utilities" \" -*- nroff -*- +.TH FTWHICH 1 "January 1999" "Search utilities" \" -*- nroff -*- .SH NAME ftwhich \- fault tolerant search for a command name .SH SYNOPSIS @@ -15,7 +15,7 @@ is a fault tolerant version of the which(1) command. searches for a given program in all directories included in your PATH environment variable and reports all files with a name that approximately matches the given -.B program_name. +.I program_name. .PP .B ftwhich achieves fault tolerance by calculating the so called @@ -27,9 +27,9 @@ a string into a string .I B. .PP -.I ftwhich +.B ftwhich is similar to the -.I which +.B which command with the following differences: .TP \- @@ -40,15 +40,15 @@ ftwhich is fault tolerant .TP \- Some shells have a build in -.I which +.B which command that will also search aliases. -.I ftwhich -can naturaly not search for aliases as it does not know +.B ftwhich +can naturally not search for aliases as it does not know about alias definitions. .TP \- .B ftwhich -lists all files that approximatly match. The files first +lists all files that approximately match. The files first shown take preference over files of the same name printed later as they are from directories listed earlier in the PATH. .TP @@ -93,8 +93,8 @@ denotes an arbitrary number of characters. .PP The last argument to ftwhich is not parsed for options as the program needs at least one program_name argument. This means that -.I ftwhich -x -will not complain about a wrong option but search for the program named -x. +.I ftwhich \-x +will not complain about a wrong option but search for the program named \-x. .SH EXAMPLE Search for all programs like gcc in your PATH: .br @@ -131,5 +131,5 @@ normally hardly any command that has these characters in its name. .SH AUTHOR Guido Socher (guido@linuxfocus.org) .SH SEE ALSO -whichman(1) ftff(1) +.BR whichman "(1), " ftff (1) diff --git a/man1/whichman.1 b/man1/whichman.1 index f2111c1..799d4e7 100644 --- a/man1/whichman.1 +++ b/man1/whichman.1 @@ -2,7 +2,7 @@ .\" This is free software and only distributed under the .\" terms of the Gnu Public License. Author: Guido Socher .\" -.TH whichman 1 "April 1998" "Search utilities" \" -*- nroff -*- +.TH WHICHMAN 1 "April 1998" "Search utilities" \" -*- nroff -*- .SH NAME whichman \- show the location of a man page using a fault tolerant approximate matching algorithm .SH SYNOPSIS @@ -15,6 +15,10 @@ is a "which" alike search command for man pages. searches the .B MANPATH environment variable. +If this variable is not defined, then it uses +.I "/usr/share/man:/usr/man:/usr/X11R6/man:" +.I "/usr/local/share/man:/usr/local/man" +by default. .PP Unlike "which" this program does not stop on the first match. The name should probably have been something like whereman as this is not a @@ -51,7 +55,7 @@ integer # in the range 0-255. It specifies the maximum number of errors permitted in finding the approximate match. A tolerance_level of zero allows exact matches only but does NOT disable the wildcards * and ?. .PP -The search key may contain the wildcards * and ? (but see -e option): +The search key may contain the wildcards * and ? (but see \-e option): .TP .BR '*' any arbitrary number of character @@ -61,19 +65,19 @@ one character .PP The last argument to whichman is not parsed for options as the program needs at least one man-page-name argument. This means that -.I whichman -x -will not complain about a wrong option but search for the man-page named -x. +.I whichman \-x +will not complain about a wrong option but search for the man-page named \-x. .SH EXAMPLE .I whichman .RB print .PP This will e.g. find the man-pages: .br -/usr/man/man1/printf.1.gz +/usr/share/man/man1/printf.1.gz .br -/usr/man/man3/printf.3.gz +/usr/share/man/man3/printf.3.gz .br -/usr/man/man3/rint.3.gz +/usr/share/man/man3/rint.3.gz .SH BUGS The wildcards .BR '?' @@ -85,4 +89,4 @@ hardly any man-page that has these characters in its name. .SH AUTHOR Guido Socher (guido@linuxfocus.org) .SH SEE ALSO -ftff(1) man(1) +.BR ftff "(1), " man (1) debian/patches/02-No-warn.patch0000644000000000000000000000155512253140605013402 0ustar From: Robert Luberda Date: Mon, 29 Jan 2001 20:31:00 +0100 Subject: 02 No warn. Don't warn about empty MANPATH. Update man pages path for FHS. --- whichman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whichman.c b/whichman.c index 931c00d..586f57b 100644 --- a/whichman.c +++ b/whichman.c @@ -399,8 +399,8 @@ char **splitman() mpath = (char *) getenv("MANPATH"); if (mpath == NULL || *mpath == '\0') { - fprintf(stderr,"Warning: MANPATH not defined, using /usr/man:/usr/share/man\n"); - mpath="/usr/man:/usr/share/man"; +/* fprintf(stderr,"Warning: MANPATH not defined, using /usr/man:/usr/share/man\n"); */ + mpath="/usr/share/man:/usr/man:/usr/X11R6/man:/usr/local/man"; } /* make a copy that is static */ cmpath = (char *)malloc(sizeof(char)*(strlen(mpath) + 2)); debian/patches/10-Skip-duplicates.patch0000644000000000000000000001260312253140605015115 0ustar From: Robert Luberda Date: Tue, 29 Jan 2008 22:40:00 +0100 Subject: 10 Skip duplicates. Patch for #452068: wanted: 'ftwhich' option to not print links or symlinks --- Makefile | 10 +++++--- ftwhich.c | 9 +++++-- statduplcheck.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ statduplcheck.h | 11 ++++++++ whichman.c | 5 +++- 5 files changed, 108 insertions(+), 7 deletions(-) create mode 100644 statduplcheck.c create mode 100644 statduplcheck.h diff --git a/Makefile b/Makefile index 8ab2933..8f717ca 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,11 @@ STRIP=strip all:whichman ftff ftwhich -whichman: whichman.o levdist.o - $(CC) -o $@ whichman.o levdist.o +whichman: whichman.o levdist.o statduplcheck.o + $(CC) -o $@ whichman.o levdist.o statduplcheck.o -ftwhich: ftwhich.o levdist.o - $(CC) -o $@ ftwhich.o levdist.o +ftwhich: ftwhich.o levdist.o statduplcheck.o + $(CC) -o $@ ftwhich.o levdist.o statduplcheck.o ftff: ftff.o levdist.o $(CC) -o $@ ftff.o levdist.o @@ -31,6 +31,8 @@ ftff.o: ftff.c $(CC) $(CFLAGS) -c ftff.c levdist.o: levdist.c levdist.h $(CC) $(CFLAGS) -c levdist.c +statduplcheck.o: statduplcheck.c statduplcheck.h + $(CC) $(CFLAGS) -c statduplcheck.c install: whichman ftff ftwhich $(MANP) $(STRIP) whichman diff --git a/ftwhich.c b/ftwhich.c index bdbe383..d77867d 100644 --- a/ftwhich.c +++ b/ftwhich.c @@ -11,6 +11,7 @@ #include #include #include "levdist.h" +#include "statduplcheck.h" static void help(); static char **splitpath(); @@ -125,6 +126,9 @@ int main(int argc, char *argv[]) matchfilename(*pathcomp, searchkey); pathcomp++; } + + free_statduplicates(); + return (nomatchfound); } /*__END OF MAIN__*/ @@ -161,8 +165,9 @@ int checkftype(char *path, char *filename) if ((stbuf.st_mode & S_IFREG)==0) return(0); /* test if executable for user or grp or others */ if ((stbuf.st_mode & S_IXUSR) || (stbuf.st_mode & S_IXGRP)\ - ||(stbuf.st_mode & S_IXOTH)) return(1); - return(0); + ||(stbuf.st_mode & S_IXOTH)) + if (is_statduplicate(&stbuf)) return(0); + return(1); } /* * match all entries in the directory variable path points to diff --git a/statduplcheck.c b/statduplcheck.c new file mode 100644 index 0000000..ed69a73 --- /dev/null +++ b/statduplcheck.c @@ -0,0 +1,80 @@ +#define _GNU_SOURCE /* for tdestroy */ +#include "statduplcheck.h" +#include +#include +#include +#include +#include + +struct stat_info { + dev_t st_dev; + ino_t st_ino; +}; + +static void * info_root = NULL; + +/* compare function passed to tsearch */ +static int stat_info_compare(const void *si1, const void * si2) +{ + int res; + + res = ((struct stat_info*)si1)->st_dev - ((struct stat_info*)si2)->st_dev; + if (!res) + res = ((struct stat_info*)si1)->st_ino - ((struct stat_info*)si2)->st_ino; + return res; +} + +int is_statduplicate(const struct stat *st) { + static struct stat_info * stinfo = NULL; + struct stat_info ** res; + + if (!stinfo) { + stinfo = (struct stat_info*) malloc (sizeof(*stinfo)); + + if (!stinfo) { + fprintf(stderr, "cannot allocate memory\n"); + exit(1); + } + + } + + stinfo->st_dev = st->st_dev; + stinfo->st_ino = st->st_ino; + + if (!(res = tsearch(stinfo, &info_root, stat_info_compare))) { + fprintf(stderr, "cannot allocate memory\n"); + exit(1); + } + + if (*res == stinfo) { + // new record + stinfo = NULL; + return 0; + } + + return 1; +} + +int is_fileduplicate(const char *dir, const char *name) { + static struct stat stbuf; + static char fullpath[255]; + + if (strlen(dir) + strlen(name) + 2 > sizeof(fullpath)) return (-1); + strcpy(fullpath, dir); + strcat(fullpath, "/"); + strcat(fullpath, name); + + if (stat(fullpath,&stbuf)!=0) return(-1); /* file does not exists */ + + return is_statduplicate(&stbuf); + +} + +void free_statduplicates(void) { + + if (!info_root) return; + + tdestroy(info_root, free); + info_root = NULL; + +} diff --git a/statduplcheck.h b/statduplcheck.h new file mode 100644 index 0000000..c1a28c8 --- /dev/null +++ b/statduplcheck.h @@ -0,0 +1,11 @@ +#ifndef STATDUPLCHECK_H +#define STATDUPLCHECK_H + +#include + +extern int is_statduplicate(const struct stat *st); +extern int is_fileduplicate(const char *dir, const char *name); +extern void free_statduplicates(void); + + +#endif diff --git a/whichman.c b/whichman.c index 586f57b..5278397 100644 --- a/whichman.c +++ b/whichman.c @@ -11,6 +11,7 @@ #include #include #include "levdist.h" +#include "statduplcheck.h" static void help(); static char **splitman(); @@ -143,6 +144,8 @@ int main(int argc, char *argv[]) findmandir(*pathcomp, searchkey); pathcomp++; } + + free_statduplicates(); return (nomanfilefound); } /*__END OF MAIN__*/ @@ -249,7 +252,7 @@ void matchfilename(char *path, char *key) /* xxxxx.1.gz ->xxxxx :*/ manname=removemanextesions(entry->d_name); d=stringmatch(manname,key); - if (d != -1){ + if (d != -1 && !is_fileduplicate(path, entry->d_name) ){ if (printdist) printf("%03d ",d); printf("%s/%s\n", path, entry->d_name); nomanfilefound = 0; debian/patches/11-CPPFLAGS-and-LDFLAGS.patch0000644000000000000000000000326312253140605015070 0ustar From: Robert Luberda Date: Sat, 14 Dec 2013 21:16:19 +0100 Subject: 11 CPPFLAGS and LDFLAGS Pass CPPFLAGS and LDFLAGS to compiler --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8f717ca..d583b51 100644 --- a/Makefile +++ b/Makefile @@ -15,24 +15,24 @@ STRIP=strip all:whichman ftff ftwhich whichman: whichman.o levdist.o statduplcheck.o - $(CC) -o $@ whichman.o levdist.o statduplcheck.o + $(CC) $(LDFLAGS) -o $@ whichman.o levdist.o statduplcheck.o ftwhich: ftwhich.o levdist.o statduplcheck.o - $(CC) -o $@ ftwhich.o levdist.o statduplcheck.o + $(CC) $(LDFLAGS) -o $@ ftwhich.o levdist.o statduplcheck.o ftff: ftff.o levdist.o - $(CC) -o $@ ftff.o levdist.o + $(CC) $(LDFLAGS) -o $@ ftff.o levdist.o whichman.o: whichman.c - $(CC) $(CFLAGS) -c whichman.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c whichman.c ftwhich.o: ftwhich.c - $(CC) $(CFLAGS) -c ftwhich.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c ftwhich.c ftff.o: ftff.c - $(CC) $(CFLAGS) -c ftff.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c ftff.c levdist.o: levdist.c levdist.h - $(CC) $(CFLAGS) -c levdist.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c levdist.c statduplcheck.o: statduplcheck.c statduplcheck.h - $(CC) $(CFLAGS) -c statduplcheck.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c statduplcheck.c install: whichman ftff ftwhich $(MANP) $(STRIP) whichman @@ -57,7 +57,7 @@ install_with_cp: whichman ftff ftwhich $(MANP) cp $(MANP) $(mandir)/man1 debug: levdist.c - $(CC) $(CFLAGS) -o levdebug -DDEBUG -DRETURNVALUE levdist.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o levdebug -DDEBUG -DRETURNVALUE levdist.c clean: rm -f whichman ftff ftwhich *.o levdebug debian/patches/series0000644000000000000000000000016112253140605012026 0ustar 00-Makefile.patch 01-Documentation.patch 02-No-warn.patch 10-Skip-duplicates.patch 11-CPPFLAGS-and-LDFLAGS.patch debian/rules0000755000000000000000000000132312253140605010243 0ustar #!/usr/bin/make -f DH_AUTO_OPTIONS := -v -Smakefile --parallel DESTDIR := $(CURDIR)/debian/$(shell dh_listpackages) export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell getconf LFS_CFLAGS) -Wall -Wextra include /usr/share/dpkg/architecture.mk ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) export CC := $(DEB_HOST_GNU_TYPE)-gcc else export CC := gcc endif %: dh "$@" override_dh_auto_build: dh_auto_build $(DH_AUTO_OPTIONS) -- \ STRIP=: CFLAGS="$(CFLAGS)" CC=$(CC) override_dh_auto_clean: dh_auto_clean $(DH_AUTO_OPTIONS) override_dh_auto_install: dh_auto_install $(DH_AUTO_OPTIONS) --destdir="$(DESTDIR)" -- \ STRIP=: CFLAGS="$(CFLAGS)" CC=$(CC) debian/source/0000755000000000000000000000000012253140605010464 5ustar debian/source/format0000644000000000000000000000001412253140605011672 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000010412253140605010210 0ustar version=2 http://linuxfocus.org/~guido/whichman-([\d\.]+)\.tar\.gz