Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=264e10d81b44bbd45a4fd1164389ce8bc5f14b4e
commit 264e10d81b44bbd45a4fd1164389ce8bc5f14b4e
Author: VMiklos <[EMAIL PROTECTED]>
Date: Sat Sep 29 17:36:16 2007 +0200
chkdep: replace help2man's manpage with an asciidoc one
diff --git a/Makefile b/Makefile
index 906b0bd..10c95e2 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,6 @@ compile: genauthors apidocs fwmakepkg.3 docs
help2man -n "Writes FrugalBuild scripts for PHP PEAR/PECL packages" -S
Frugalware -N ./pear-makefb \
|sed 's/\\(co/(c)/' >pear-makefb.1
help2man -n "searches for common FrugalBuild problems" -S Frugalware -N
./fblint |sed 's/\\(co/(c)/' >fblint.1
- help2man -n "Checks a package or directory for possible depends" -S
Frugalware -N ./chkdep |sed 's/\\(co/(c)/' >chkdep.1
help2man -n "Converts a README.Frugalware to HTML" -S Frugalware -N ./mkpkghtml
|sed 's/\\(co/(c)/' >mkpkghtml.1
help2man -n "A darcs-like interface for git" -S Frugalware -N ./darcs-git.py
|sed 's/\\(co/(c)/' >darcs-git.1
@@ -67,7 +66,6 @@ install:
$(INSTALL) chkworld $(DESTDIR)$(bindir)/chkworld
$(INSTALL) -m644 chkworld.1 $(DESTDIR)$(man1dir)
$(INSTALL) chkdep $(DESTDIR)$(bindir)/chkdep
- $(INSTALL) -m644 chkdep.1 $(DESTDIR)$(man1dir)
$(INSTALL) mkpkghtml $(DESTDIR)$(bindir)/mkpkghtml
$(INSTALL) -m644 mkpkghtml.1 $(DESTDIR)$(man1dir)
$(INSTALL) pud $(DESTDIR)$(bindir)
diff --git a/chkdep b/chkdep
index 183f3c2..6dfc09a 100755
--- a/chkdep
+++ b/chkdep
@@ -1,21 +1,5 @@
#!/usr/bin/env python
-"""Checks a package or directory for possible depends
-
-Usage: chkdep [options]
-
-Options:
- -d ..., --dir=... name od the dir to check
- -n ..., --name=... ignore the given package (optional, useful when a
- package links to itself)
- -m ..., --method=... method to use to detect the deps (default: elf,
- possible values: elf, python, mono, perl)
- -p ..., --package=... name of the fpm to check
- -i ... does nothing (for backward compat)
-
-You should at least use the -d or the -p option.
-"""
-
__author__ = "Miklos Vajna <[EMAIL PROTECTED]>, Marcus Habermehl <[EMAIL
PROTECTED]>"
__version__ = "0.8.8"
__date__ = "Fri, 20 Apr 2007 21:43:12 +0200"
@@ -27,7 +11,7 @@ import tarfile, tempfile, shutil, os, stat, re, pacman,
getopt, sys
from modulefinder import ModuleFinder
def usage():
- print __doc__
+ os.system("man chkdep")
def rmdupdeps(deps):
depdeps = []
diff --git a/chkdep.txt b/chkdep.txt
new file mode 100644
index 0000000..0f8e98b
--- /dev/null
+++ b/chkdep.txt
@@ -0,0 +1,34 @@
+= chkdep(1)
+
+== NAME
+
+chkdep - checks a package or directory for possible depends
+
+== SYNOPSIS
+
+chkdep [ -d | -p ] <path> [options]
+
+== OPTIONS
+
+-d, --dir <dir>::
+ Name of the directory to check.
+
+-h, --help::
+ Display this manpage.
+
+-n, --name <package>::
+ Ignore the given package (optional, useful when a package links to
+ itself).
+
+-m, --method <name>::
+ Method to use to detect the dependencies (default: `elf`, possible
values: `elf`,
+ `python`, `mono` and `perl`).
+
+-p, --package <path>::
+ Name of the FPM package to check.
+
+-i::
+ Does nothing (for backward compatibility).
+
+-v, --version::
+ Display the package version.
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git