diff --git a/.gitignore b/.gitignore index 2a26f68..695fe88 100644 --- a/.gitignore +++ b/.gitignore @@ -19,11 +19,13 @@ /beelib.config.sh /bee.1 /bee-check.1 +/bee-download.1 /bee-init.1 /bee-install.1 /bee-list.1 /bee-query.1 /bee-remove.1 +/bee-update.1 /beefind.sh /bee-cache-inventory /bee-cache-update.sh @@ -32,7 +34,6 @@ /content2filelist.sh /filelist2content.sh /buildtypes/*.sh -/manpages/*.1 /.beerc *.tar.gz *.o diff --git a/Makefile b/Makefile index 3875459..1a4f61d 100644 --- a/Makefile +++ b/Makefile @@ -136,12 +136,11 @@ BEEGETOPT_OBJECTS=bee_getopt.o beegetopt.o BEEFLOCK_OBJECTS=bee_getopt.o beeflock.o BEECACHEINVENTORY_OBJECTS=bee-cache-inventory.o bee_getopt.o -bee_MANPAGES=$(addprefix manpages/,${MANPAGES}) bee_BUILDTYPES=$(addsuffix .sh,$(addprefix buildtypes/,$(BUILDTYPES))) shellscripts: $(addsuffix .sh,$(SHELLSCRIPTS)) $(LIBRARY_SHELL) cprograms: $(PROGRAMS_C) ${HELPER_C} -manpages: ${bee_MANPAGES} +manpages: $(MANPAGES) buildtypes: ${bee_BUILDTYPES} beesep: $(addprefix src/, ${BEESEP_OBJECTS}) @@ -174,7 +173,7 @@ bee-cache-inventory: $(addprefix src/, ${BEECACHEINVENTORY_OBJECTS}) %.sh: src/%.sh.in $(call quiet-command,sed ${sed-rules} $< >$@,"SED $@") -%.1: %.1.in +%.1: manpages/%.1.in $(call quiet-command,sed ${sed-rules} $< >$@,"SED $@") %.sh: %.sh.in @@ -185,7 +184,7 @@ clean: $(call quiet-command,rm -f ${PROGRAMS_C},"CLEAN ${PROGRAMS_C}") $(call quiet-command,rm -f ${HELPER_C},"CLEAN ${HELPER_C}") $(call quiet-command,rm -f src/*.o,"CLEAN c object files") - $(call quiet-command,rm -f ${bee_MANPAGES},"CLEAN manpages") + $(call quiet-command,rm -f ${MANPAGES},"CLEAN manpages") $(call quiet-command,rm -f ${bee_BUILDTYPES},"CLEAN buildtypes") install: install-core install-config @@ -254,7 +253,7 @@ install-man: $(addprefix ${DESTDIR}${MANDIR}/man1/,${MANPAGES}) install-dir-mandir: $(call quiet-installdir,0755,${DESTDIR}${MANDIR}/man1) -${DESTDIR}${MANDIR}/man1/%.1: manpages/%.1 install-dir-mandir +${DESTDIR}${MANDIR}/man1/%.1: %.1 install-dir-mandir $(call quiet-install,0644,$<,$@) install-dir-config: diff --git a/manpages/Makefile b/manpages/Makefile new file mode 100644 index 0000000..1326e0d --- /dev/null +++ b/manpages/Makefile @@ -0,0 +1,32 @@ +quiet-command = $(if ${V},${1},$(if ${2},@echo ${2} && ${1}, @${1})) + +MANPAGES += bee +MANPAGES += bee-check +MANPAGES += bee-download +MANPAGES += bee-list +MANPAGES += bee-init +MANPAGES += bee-install +MANPAGES += bee-query +MANPAGES += bee-remove + +XMLTO = xmlto +XMLTO_FLAGS = --stringparam man.output.quietly=1 + +.PHONY: all +all: + @echo "Following targets are availabe:" + @echo " xml2man - update manpages" + +.PHONY: xml2man +xml2man: force-clean $(addsuffix .1.in,$(MANPAGES)) + +.PHONY: force-clean +force-clean: + $(call quiet-command,rm -f $(addsuffix .1.in,$(MANPAGES)),"CLEAN *.1.in") + $(call quiet-command,rm -f $(addsuffix .1, $(MANPAGES)),"CLEAN *.1") + +%.1: %.xml + $(call quiet-command,$(XMLTO) $(XMLTO_FLAGS) man $<,"XMLTO $<") + +%.1.in: %.1 + $(call quiet-command,mv $< $@,"RENAME $<") diff --git a/manpages/bee-check.1.in b/manpages/bee-check.1.in index 6fd11e3..83a0470 100644 --- a/manpages/bee-check.1.in +++ b/manpages/bee-check.1.in @@ -1,93 +1,82 @@ -." manpage of bee-check -." -." Copyright (C) 2009-2012 -." Marius Tolzmann -." Tobias Dreyer -." and other bee developers -." -." This file is part of bee. -." -." bee 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 3 of the License, or -." (at your option) any later version. -." -." 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. -." -." You should have received a copy of the GNU General Public License -." along with this program. If not, see . - -.TH "bee-check" "1" "2012-08-31" "bee @BEE_VERSION@" "bee - bau et einfach" - +'\" t +.\" Title: bee-check +.\" Author: Marius Tolzmann +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 04/24/2013 +.\" Manual: bee - bau et einfach +.\" Source: bee @BEE_VERSION@ +.\" Language: English +.\" +.TH "BEE\-CHECK" "1" "04/24/2013" "bee @BEE_VERSION@" "bee - bau et einfach" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- .SH "NAME" -bee\-check \- Perform some consistency checks on a bee package - +bee-check \- perform some consistency checks on a bee package .SH "SYNOPSIS" -.SY "bee check" -.OP options -.I -.YS - +.HP \w'\fBbee\ check\fR\ 'u +\fBbee check\fR [options] \fI\fR .SH "DESCRIPTION" -.P -.B bee-check +.PP +\fBbee\-check\fR is used to perform consistency checks on a bee package matching -.I -and shows missing link targets, missing files and directories or changed md5 sums. - +\fIpattern\fR +and shows missing link targets, missing files and directories or changed md5 sums\&. .SH "OPTIONS" -.TP -.B \-d, \-\-deps, \-\-dependencies -Print package dependencies. -.TP -.B \-f, \-\-force -Use -.B \-\-force -to check all packages matching -.IR , -if it does not match a full packagename. -.TP -.B \-h, \-\-help -Print a little help screen. - +.PP +\fB\-d, \-\-deps, \-\-dependencies\fR +.RS 4 +Print package dependencies\&. +.RE +.PP +\fB\-f, \-\-force\fR +.RS 4 +Check all packages matching +\fIpattern\fR +if it does not match a full packagename\&. +.RE +.PP +\fB\-h, \-\-help\fR +.RS 4 +Print a usage message\&. +.RE .SH "ENVIRONMENT" -.TP -.B BEE_METADIR -.RS +.PP +\fBBEE_METADIR\fR +.RS 4 Directory searched for installed bee packages +.RE +.SH "BUGS" +.PP +Please report bugs to bee\-dev@googlegroups\&.com or directly to the authors\&. +.SH "SEE ALSO" +.PP +\fBbee\fR(1), +\fBbee-download\fR(1), +\fBbee-init\fR(1), +\fBbee-install\fR(1), +\fBbee-list\fR(1), +\fBbee-query\fR(1), +\fBbee-remove\fR(1), +\fBbee-update\fR(1) .SH "AUTHORS" -.P -.MT tolzmann@molgen.mpg.de -Marius Tolzmann -.ME -.br -.MT dreyer@molgen.mpg.de -Tobias Dreyer -.ME -.br -.MT ruester@molgen.mpg.de -Matthias Ruester -.ME -.br -and other bee developers - -.SH "BEE" -.P -This file is part of bee. -.P -Please report bugs to bee-dev@googlegroups.com or directly to the authors. - -.SH "SEE ALSO" -.BR bee (1) -.BR bee\-check (1) -.BR bee\-download (1) -.BR bee\-init (1) -.BR bee\-install (1) -.BR bee\-list (1) -.BR bee\-query (1) -.BR bee\-remove (1) -.BR bee\-update (1) +.PP +\fBMarius Tolzmann\fR <\&tolzmann@molgen\&.mpg\&.de\&> +.RS 4 +.RE +.PP +\fBTobias Dreyer\fR <\&dreyer@molgen\&.mpg\&.de\&> +.RS 4 +.RE +.PP +\fBand other bee developers\fR +.RS 4 +.RE diff --git a/manpages/bee-check.xml b/manpages/bee-check.xml new file mode 100644 index 0000000..87c8f8c --- /dev/null +++ b/manpages/bee-check.xml @@ -0,0 +1,138 @@ + + + + + + + + bee - bau et einfach + bee @BEE_VERSION@ + + + + + Marius + Tolzmann + tolzmann@molgen.mpg.de + + + + + Tobias + Dreyer + dreyer@molgen.mpg.de + + + + + and other bee developers + + + + + + bee-check + 1 + + + + bee-check + perform some consistency checks on a bee package + + + + + bee check + options + <pattern> + + + + + Description + + bee-check is used to perform + consistency checks on a bee package matching + pattern and shows missing link + targets, missing files and directories or changed + md5 sums. + + + + Options + + + + + + Print package dependencies. + + + + + + Check all packages matching pattern if it does not match a full packagename. + + + + + + Print a usage message. + + + + + + Environment + + + + + Directory searched for installed bee packages + + + + + + Bugs + + Please report bugs to bee-dev@googlegroups.com or directly to the authors. + + + + + See Also + + bee1, + bee-download1, + bee-init1, + bee-install1, + bee-list1, + bee-query1, + bee-remove1, + bee-update1 + + + diff --git a/manpages/bee-download.1.in b/manpages/bee-download.1.in index 16b2907..4fad1bc 100644 --- a/manpages/bee-download.1.in +++ b/manpages/bee-download.1.in @@ -1,95 +1,90 @@ -." manpage of bee-download -." -." Copyright (C) 2009-2012 -." Marius Tolzmann -." Tobias Dreyer -." and other bee developers -." -." This file is part of bee. -." -." bee 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 3 of the License, or -." (at your option) any later version. -." -." 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. -." -." You should have received a copy of the GNU General Public License -." along with this program. If not, see . - -.TH "bee-download" "1" "2012-08-31" "bee @BEE_VERSION@" "bee - bau et einfach" - +'\" t +.\" Title: bee-download +.\" Author: Marius Tolzmann +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 04/24/2013 +.\" Manual: bee - bau et einfach +.\" Source: bee @BEE_VERSION@ +.\" Language: English +.\" +.TH "BEE\-DOWNLOAD" "1" "04/24/2013" "bee @BEE_VERSION@" "bee - bau et einfach" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- .SH "NAME" -bee\-download \- Download a repository and convert it into a source tarball - +bee-download \- Download a repository and convert it into a source tarball .SH "SYNOPSIS" -.SY "bee download" -.OP options -.I -.YS - +.HP \w'\fBbee\ download\fR\ 'u +\fBbee download\fR [options] \fI\fR .SH "DESCRIPTION" -.P -.B bee-download -is used to download a repository and convert it into a source tarball. This tarball can be used to -create a beefile via -.BR "bee init" . +.PP +\fBbee\-download\fR +is used to download a repository and convert it into a source tarball\&. This tarball can be used to create a beefile via +\fBbee\-init\fR\&. .SH "OPTIONS" -.TP -.BI "\-n, \-\-pkgname" " " -Specifiy the tarballs package name. -.TP -.BI "\-v, \-\-pkgversion" " " -Specifiy the tarballs package version. -.TP -.BI "\-c, \-\-commit" " " -When downloading from a git repository: Use a certain commit as the HEAD revision. -.TP -.B \-t, \-\-type -Specify the type of download (http, https or git). -.TP -.B \-h, \-\-help -Print a little help screen. - +.PP +\fB\-n\fR, \fB\-\-pkgname \fR\fB\fI\fR\fR +.RS 4 +Specify the tarball\'s package name\&. +.RE +.PP +\fB\-v\fR, \fB\-\-pkgversion \fR\fB\fI\fR\fR +.RS 4 +Specify the tarball\'s package version\&. +.RE +.PP +\fB\-c\fR, \fB\-\-commit \fR\fB\fI\fR\fR +.RS 4 +When downloading from a git repository: Use a certain commit as the HEAD revision\&. +.RE +.PP +\fB\-t\fR, \fB\-\-type\fR +.RS 4 +Specify the type of download (http, https or git)\&. +.RE +.PP +\fB\-h\fR, \fB\-\-help\fR +.RS 4 +Print a usage message\&. +.RE .SH "ENVIRONMENT" -.TP -.B BEE_DOWNLOADDIR -.RS -The downloaded file is placed here. +.PP +\fBBEE_DOWNLOADDIR\fR +.RS 4 +The downloaded file is placed here\&. +.RE +.SH "BUGS" +.PP +Please report bugs to bee\-dev@googlegroups\&.com or directly to the authors\&. +.SH "SEE ALSO" +.PP +\fBbee\fR(1), +\fBbee-check\fR(1), +\fBbee-init\fR(1), +\fBbee-install\fR(1), +\fBbee-list\fR(1), +\fBbee-query\fR(1), +\fBbee-remove\fR(1), +\fBbee-update\fR(1) .SH "AUTHORS" -.P -.MT tolzmann@molgen.mpg.de -Marius Tolzmann -.ME -.br -.MT dreyer@molgen.mpg.de -Tobias Dreyer -.ME -.br -.MT ruester@molgen.mpg.de -Matthias Ruester -.ME -.br -and other bee developers - -.SH "BEE" -.P -This file is part of bee. -.P -Please report bugs to bee-dev@googlegroups.com or directly to the authors. - -.SH "SEE ALSO" -.BR bee (1) -.BR bee\-check (1) -.BR bee\-download (1) -.BR bee\-init (1) -.BR bee\-install (1) -.BR bee\-list (1) -.BR bee\-query (1) -.BR bee\-remove (1) -.BR bee\-update (1) +.PP +\fBMarius Tolzmann\fR <\&tolzmann@molgen\&.mpg\&.de\&> +.RS 4 +.RE +.PP +\fBTobias Dreyer\fR <\&dreyer@molgen\&.mpg\&.de\&> +.RS 4 +.RE +.PP +\fBand other bee developers\fR +.RS 4 +.RE diff --git a/manpages/bee-download.xml b/manpages/bee-download.xml new file mode 100644 index 0000000..c6f88e7 --- /dev/null +++ b/manpages/bee-download.xml @@ -0,0 +1,159 @@ + + + + + + + + bee - bau et einfach + bee @BEE_VERSION@ + + + + + Marius + Tolzmann + tolzmann@molgen.mpg.de + + + + + Tobias + Dreyer + dreyer@molgen.mpg.de + + + + + and other bee developers + + + + + + bee-download + 1 + + + + bee-download + Download a repository and convert it into a source tarball + + + + + bee download + options + <repository-url> + + + + + Description + + + bee-download is used to download a repository and convert it + into a source tarball. This tarball can be used to create a beefile via + bee-init. + + + + + Options + + + + + + + Specify the tarball's package name. + + + + + + + Specify the tarball's package version. + + + + + + + + When downloading from a git repository: Use a certain commit + as the HEAD revision. + + + + + + + + + Specify the type of download (http, https or git). + + + + + + + + Print a usage message. + + + + + + Environment + + + + + The downloaded file is placed here. + + + + + + Bugs + + Please report bugs to bee-dev@googlegroups.com or directly to the authors. + + + + + See Also + + bee1, + bee-check1, + bee-init1, + bee-install1, + bee-list1, + bee-query1, + bee-remove1, + bee-update1 + + + diff --git a/manpages/bee-init.1.in b/manpages/bee-init.1.in index 3d7953c..635b30f 100644 --- a/manpages/bee-init.1.in +++ b/manpages/bee-init.1.in @@ -1,149 +1,137 @@ -." manpage of bee-init -." -." Copyright (C) 2009-2012 -." Marius Tolzmann -." Tobias Dreyer -." and other bee developers -." -." This file is part of bee. -." -." bee 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 3 of the License, or -." (at your option) any later version. -." -." 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. -." -." You should have received a copy of the GNU General Public License -." along with this program. If not, see . - -.TH "bee-init" "1" "2012-08-31" "bee @BEE_VERSION@" "bee - bau et einfach" - +'\" t +.\" Title: bee-init +.\" Author: Marius Tolzmann +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 04/24/2013 +.\" Manual: bee - bau et einfach +.\" Source: bee @BEE_VERSION@ +.\" Language: English +.\" +.TH "BEE\-INIT" "1" "04/24/2013" "bee @BEE_VERSION@" "bee - bau et einfach" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- .SH "NAME" -bee\-init \- Create a bee file for building a bee package - +bee-init \- Create a bee file for building a bee package .SH "SYNOPSIS" -.SY "bee init" -.OP options -.I -.OP "-- configure options" -.YS - +.HP \w'\fBbee\ init\fR\ 'u +\fBbee init\fR [options] \fI\fR [\-\-\ configure\ options] .SH "DESCRIPTION" -.P -.B bee-init -is used to create a file, that is run in order to build a bee package. - +.PP +\fBbee\-init\fR +is used to create a file, that is run in order to build a bee package\&. .SH "OPTIONS" -.TP -.BI \-\-configure " " -Use the configure mode 'compat' if DATAROOTDIR is not supported in your build process. -.TP -.BI \-\-buildtype " " -Force buildtype: configure, cmake, make, autogen, perl-module, perl-module-makemaker, python-module -.TP -.B \-\-disable-versionify -Do not substitute version numbers in the source url. -.TP -.BI "\-t, \-\-template" "