changed build system, added manpage
authorMichael Gebetsroither <michael.geb@gmx.at>
Mon, 26 Dec 2005 20:31:57 +0000 (21:31 +0100)
committerMichael Gebetsroither <michael.geb@gmx.at>
Mon, 26 Dec 2005 20:31:57 +0000 (21:31 +0100)
Makefile [new file with mode: 0644]
debian/changelog
debian/rules
grml-shlib.3.txt [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d6ba8dc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,51 @@
+install_ = install
+name_ = grml-shlib
+
+etc = ${DESTDIR}/etc/
+usr = ${DESTDIR}/usr
+usrbin = $(usr)/bin
+usrsbin = $(usr)/sbin
+usrshare = $(usr)/share/$(name_)
+usrdoc = $(usr)/share/doc/$(name_)
+man1 = $(usr)/share/man/man1/
+man3 = $(usr)/share/man/man3/
+man8 = $(usr)/share/man/man8/
+
+
+%.html : %.txt ;
+       asciidoc -b xhtml11 $^
+
+%.gz : %.txt ;
+       asciidoc -d manpage -b docbook $^
+       xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'`
+       gzip -f --best `echo $^ |sed -e 's/.txt//'`
+
+
+all: doc
+
+doc: doc_man doc_html
+
+doc_html: $(name_).3.html
+grml-shlib.3.html: $(name_).3.txt
+
+doc_man: $(name_).3.gz TODO.gz
+grml-shlib.3.gz: $(name_).3.txt
+
+TODO.gz: TODO
+       gzip --best -c $^ >$@
+
+
+install: all
+       $(install_) -d -m 755 $(usrdoc)
+       $(install_) -m 644 $(name_).1.html $(usrdoc)
+       $(install_) -m 644 TODO.gz $(usrdoc)
+
+       $(install_) -d -m 755 $(man3)
+       $(install_) -m 644 $(name_).1.gz $(man3)
+
+       $(install_) -m 755 -d /etc/grml
+       $(install_) -m 755 sh-lib /etc/grml
+
+clean:
+       rm -rf $(name_).1.html $(name_).1.xml $(name_).1 $(name_).1.gz
+
index a29d910..c033615 100644 (file)
@@ -1,3 +1,10 @@
+grml-shlib (1.02.07) unstable; urgency=low
+
+  * changed build system
+  * added Manpage 
+
+ -- Michael Gebetsroither <michael.geb@gmx.at>  Mon, 26 Dec 2005 21:31:32 +0100
+
 grml-shlib (1.02.06) unstable; urgency=low
 
   * trim the list of nameservers from netGetNameserers (no ending whitespace)
index 7270d14..6cb353f 100755 (executable)
@@ -30,11 +30,11 @@ configure-stamp:
 
 build: build-stamp
 
-build-stamp: configure-stamp 
+build-stamp: configure-stamp
        dh_testdir
 
        # Add here commands to compile the package.
-       #$(MAKE)
+       $(MAKE)
        #docbook-to-man debian/sh-lib.sgml > sh-lib.1
 
        touch build-stamp
@@ -47,17 +47,16 @@ clean:
        # Add here commands to clean up after the build process.
        #-$(MAKE) clean
 
-       dh_clean 
+       dh_clean
 
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k 
+       dh_clean -k
        dh_installdirs
 
        # Add here commands to install the package into debian/sh-lib.
-       #$(MAKE) install DESTDIR=$(CURDIR)/debian/sh-lib
-       cp sh-lib $(CURDIR)/debian/grml-shlib/etc/grml/
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/grml-shlib
 
 
 # Build architecture-independent files here.
@@ -68,12 +67,12 @@ binary-indep: build install binary-arch
 binary-arch: build install
        dh_testdir
        dh_testroot
-       dh_installchangelogs 
-       dh_installdocs
+       dh_installchangelogs
+#      dh_installdocs
 #      dh_installexamples
 #      dh_install
 #      dh_installmenu
-#      dh_installdebconf       
+#      dh_installdebconf
 #      dh_installlogrotate
 #      dh_installemacsen
 #      dh_installpam
@@ -82,7 +81,7 @@ binary-arch: build install
 #      dh_installcron
 #      dh_installinfo
 #      dh_installman
-#      dh_link etc/grml/sh-lib-1.00 etc/grml/sh-lib
+#      dh_link
        dh_strip
        dh_compress
        dh_fixperms
diff --git a/grml-shlib.3.txt b/grml-shlib.3.txt
new file mode 100644 (file)
index 0000000..b710de3
--- /dev/null
@@ -0,0 +1,30 @@
+GRML-SHLIB(3)
+=============
+Michael Gebetsroither <michael.geb@gmx.at>
+
+NAME
+----
+grml-shlib - Shell script library
+
+
+SYNOPSIS
+--------
+*source /etc/grml/shlib*
+
+
+DESCRIPTION
+-----------
+*grml-shlib* is a Shell script library
+
+
+SEE ALSO
+--------
+/etc/grml/sh-lib
+
+
+AUTHOR
+------
+grml-shlib was written by Michael Gebetsroither <michael.geb@gmx.at>.
+
+This manual page was written by Michael Gebetsroither <gebi@grml.org>.
+