[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 1.24.3-42-g91b1018



The following commit has been merged in the master branch:
commit 9f54cc3945fbd22640caa19e4d907fbf0a8dce0f
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Fri Aug 15 11:59:33 2008 -0300

    doc/README: generate list of options dynamically
    
    Move README to README.in and add the listing of lintian
    options on build time from lintian --help.

diff --git a/debian/changelog b/debian/changelog
index df55070..5c262c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -45,6 +45,10 @@ lintian (1.24.4) UNRELEASED; urgency=low
   * debian/rules:
     + [FL] Use $(PERL) instead of a hardcoded path.
   
+  * doc/README{,.in}:
+    + [FL] Move README to README.in and add the listing of lintian
+      options on build time from lintian --help.
+  
   * frontend/lintian:
     + [FL] Do not try to use fail() before the lintian libraries are
       loaded.
diff --git a/debian/rules b/debian/rules
index 1669cfa..a440e6c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,12 +24,16 @@ build: $(neededfiles)
 	dh_testdir
 	cd doc && LANG=C debiandoc2html lintian.sgml
 	cd doc && LANG=C debiandoc2text lintian.sgml
+	LINTIAN_ROOT="" ./frontend/lintian --help \
+		| tail -n +3 | $(PERL) -n -e 'print "  $$_"' >doc/help.tmp
+	$(PERL) -p -e 'BEGIN { open HELP, "<", "doc/help.tmp" or die; local $$/ = undef; $$h = <HELP> }; s/%LINTIAN_HELP%/$$h/' doc/README.in >doc/README
 
 clean: $(neededfiles)
 	@echo .... cleaning ....
 	dh_testdir
 	dh_testroot
 	rm -f runtests
+	rm -f doc/help.tmp doc/README
 	rm -rf doc/lintian.html/ doc/lintian.txt
 	rm -rf debian/tests
 	find -name "*.py?" -print0 | xargs -0r rm
diff --git a/doc/README b/doc/README
deleted file mode 100644
index c221ae3..0000000
--- a/doc/README
+++ /dev/null
@@ -1,126 +0,0 @@
-README file for Lintian
-=======================
-
-Disclaimer
-----------
-
-IMPORTANT NOTES ABOUT THE USE OF LINTIAN:
-
-  1. Lintian is not finished yet and will probably never be. Please don't
-    use Lintian as a reference for Debian policy. Lintian might miss a lot
-    of policy violations while it might also report some violations by
-    mistake. If in doubt, please check out the policy manuals.
-
-  2. The Debian policy gives the maintainers a lot of freedom. In most
-    cases, the guidelines included in the manuals allow exceptions. Thus,
-    if Lintian reports a policy violation on a package and you think this
-    is such an exception (or if you think Lintian has a bug itself) please
-    contact the authors of Lintian about this. There is an `override'
-    file which tells Lintian about policy exceptions.
-
-  3. Please DO NOT use Lintian to file bug reports (neither single ones nor
-    mass bug reports). This is done by authors of Lintian already and
-    duplication of efforts and bug reports should be avoided! If you think
-    a certain bug is `critical', and should be reported/fixed immediately,
-    please contact the maintainer of the corresponding package and/or the
-    Lintian maintainers.
-
-  4. Any feedback about Lintian is welcomed! Please send your comments to
-    <lintian-maint@debian.org>.
-
-
-Running Lintian for the first time
-----------------------------------
-
-Here is what you have to do at minimum to get lintian up and running:
-
-  1. Install the `lintian' package
-
-  2. Run lintian over your packages:
-
-	$ lintian <something>.deb
-	$ lintian <something>.udeb
-	$ lintian <something>.dsc
-	$ lintian <something>.changes
-
-(Yes, Lintian is really easy to use! ;-)
-
-
-Command line options of the lintian command
--------------------------------------------
-
-  Syntax: lintian [action] [options] [--] [packages] ...
-
-  (Please refer to the manual page lintian(1) for details.)
-
-  Actions:
-    -S, --setup-lab            set up static lab
-    -R, --remove-lab           remove static lab
-    -c, --check                check packages (default action)
-    -C X, --check-part X       check only certain aspects
-    -X X, --dont-check-part X  don't check certain aspects
-    -T X, --tags X             only run checks needed for requested tags
-    --tags-from-file X         like --tags, but read list from file
-    -u, --unpack               only unpack packages in the lab
-    -r, --remove               remove package from the lab
-  General options:
-    -h, --help                 display short help text
-    -v, --verbose              verbose messages
-    -V, --version              display Lintian version and exit
-    -d, --debug                turn Lintian's debug messages ON
-    --print-version            print unadorned version number and exit
-  Behaviour options:
-    -i, --info                 give detailed info about tags
-    -I, --display-info         display "I:" tags (normally suppressed)
-    -E, --display-experimental display "X:" tags (normally suppressed)
-    -l X, --unpack-level X     set default unpack level to X
-    -o, --no-override          ignore overrides
-    --show-overrides           output tags that have been overriden
-    --color never/always/auto   disable, enable, or enable color for TTY
-    -U X, --unpack-info X      specify which info should be collected
-    -m, --md5sums              check md5sums when processing a .changes file
-    --allow-root               suppress lintian's warning when run as root
-  Configuration options:
-    --cfg CONFIGFILE           read CONFIGFILE for configuration
-    --lab LABDIR               use LABDIR as permanent laboratory
-    --archivedir ARCHIVEDIR    location of Debian archive to scan for packages
-    --dist DIST                scan packages in this distribution (e.g. sid)
-    --section RELEASE          scan packages in this section (e.g. main)
-    --arch ARCH                scan packages with architecture ARCH
-    --root ROOTDIR             use ROOTDIR instead of /usr/share/lintian
-  Package selection options:
-    -a, --all                  process all packages in distribution
-    -b, --binary               process only binary packages
-    -s, --source               process only source packages
-    --udeb                     process only udeb packages
-    -p X, --packages-file X    process all files in file (special syntax!)
-
-
-Where to find more information
-------------------------------
-
-Details about the `lintian' and the `lintian-info' commands can be
-found in the manual pages lintian(1) and lintian-info(1),
-respectively.
-
-General information about Lintian and how to use it can be found in
-the `Lintian User's Manual' at
-file:/usr/share/doc/lintian/lintian.html/index.html
-
-Weekly updated Lintian reports from all packages in the Debian
-distribution can be found at the Lintian home page at
-
-      http://www.debian.org/lintian/
-
-
-Feedback
---------
-
-Any comments, critics, or suggestions about Lintian or related topics
-are highly appreciated by the authors! Please contact
-<lintian-maint@debian.org>.  Thanks!
-
-
-
-Christian Schwarz <schwarz@debian.org>, Mar 14, 1998.
-Updated by Frank Lichtenheld, Apr 14, 2004 (Lintian 1.23.0).
diff --git a/doc/README.in b/doc/README.in
new file mode 100644
index 0000000..8e7707a
--- /dev/null
+++ b/doc/README.in
@@ -0,0 +1,86 @@
+README file for Lintian
+=======================
+
+Disclaimer
+----------
+
+IMPORTANT NOTES ABOUT THE USE OF LINTIAN:
+
+  1. Lintian is not finished yet and will probably never be. Please don't
+    use Lintian as a reference for Debian policy. Lintian might miss a lot
+    of policy violations while it might also report some violations by
+    mistake. If in doubt, please check out the policy manuals.
+
+  2. The Debian policy gives the maintainers a lot of freedom. In most
+    cases, the guidelines included in the manuals allow exceptions. Thus,
+    if Lintian reports a policy violation on a package and you think this
+    is such an exception (or if you think Lintian has a bug itself) please
+    contact the authors of Lintian about this. There is an `override'
+    file which tells Lintian about policy exceptions.
+
+  3. Please DO NOT use Lintian to file bug reports (neither single ones nor
+    mass bug reports). This is done by authors of Lintian already and
+    duplication of efforts and bug reports should be avoided! If you think
+    a certain bug is `critical', and should be reported/fixed immediately,
+    please contact the maintainer of the corresponding package and/or the
+    Lintian maintainers.
+
+  4. Any feedback about Lintian is welcomed! Please send your comments to
+    <lintian-maint@debian.org>.
+
+
+Running Lintian for the first time
+----------------------------------
+
+Here is what you have to do at minimum to get lintian up and running:
+
+  1. Install the `lintian' package
+
+  2. Run lintian over your packages:
+
+	$ lintian <something>.deb
+	$ lintian <something>.udeb
+	$ lintian <something>.dsc
+	$ lintian <something>.changes
+
+(Yes, Lintian is really easy to use! ;-)
+
+
+Command line options of the lintian command
+-------------------------------------------
+
+  Syntax: lintian [action] [options] [--] [packages] ...
+
+  (Please refer to the manual page lintian(1) for details.)
+
+%LINTIAN_HELP%
+
+
+Where to find more information
+------------------------------
+
+Details about the `lintian' and the `lintian-info' commands can be
+found in the manual pages lintian(1) and lintian-info(1),
+respectively.
+
+General information about Lintian and how to use it can be found in
+the `Lintian User's Manual' at
+file:/usr/share/doc/lintian/lintian.html/index.html
+
+Weekly updated Lintian reports from all packages in the Debian
+distribution can be found at the Lintian home page at
+
+      http://www.debian.org/lintian/
+
+
+Feedback
+--------
+
+Any comments, critics, or suggestions about Lintian or related topics
+are highly appreciated by the authors! Please contact
+<lintian-maint@debian.org>.  Thanks!
+
+
+
+Christian Schwarz <schwarz@debian.org>, Mar 14, 1998.
+Updated by Frank Lichtenheld, Apr 14, 2004 (Lintian 1.23.0).

-- 
Debian package checker


Reply to: