From de05ef66de79acf2c2c1038688055967e0be45c2 Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 12 May 2008 10:57:37 +0000 Subject: [PATCH] debian, deb, rpm: moved docs/lazbuild.1 to install/man/man1 git-svn-id: trunk@15100 - --- docs/lazbuild.1 | 83 ------------------------- install/man/man1/lazbuild.1 | 43 +++++++++---- tools/install/create_lazarus_deb.sh | 4 +- tools/install/rpm/lazarus.spec.template | 4 +- 4 files changed, 37 insertions(+), 97 deletions(-) diff --git a/docs/lazbuild.1 b/docs/lazbuild.1 index 99ad1e438d..e69de29bb2 100644 --- a/docs/lazbuild.1 +++ b/docs/lazbuild.1 @@ -1,83 +0,0 @@ -.TH lazbuild 1 "9 Sep 2006" "Lazarus" "Lazarus build utility" -.SH NAME -lazbuild \- The Lazarus project and package build program. - -.SH SYNOPSIS - -.B lazbuild -.I "[options] filename..." - -.SH DESCRIPTION - -.B lazbuild -builds a Lazarus project or package. It compiles projects (.lpi) and packages -(.lpk). It checks and automatically compiles required packages. - -.SH USAGE - -lazbuild is a command-line tool that builds Lazarus projects and packages. It -checks recursively all dependencies and compiles needed packages first. It uses -the -.B Free Pascal compiler (fpc) -to compile. - -.SH OPTIONS - -.TP -.B \-h or --help -write the list of options. -.TP -.B \-B or --build-all -build all files of project/package. Normally the compiler only compiles the -main source and all sources with a newer date. -.TP -.B \-r or --recursive -apply build flags (-B) to dependencies too. -.TP -.B \-d or --skip-dependencies -do not compile dependencies -.TP -.B \-v or --version -show version and exit -.TP -.B \--primary-config-path= or --pcp= -primary config directory, where Lazarus stores its -config files. Default is $HOME/.lazarus -.TP -.B \--secondary-config-path= or --scp= -secondary config directory, where Lazarus searches -for config template files. Default is /etc/lazarus -.TP -.B \--operating-system= or --os= -override the project operating system. e.g. win32 or linux. -.TP -.B \--widgetset= or --ws= -override the project widgetset. e.g. gtk, gtk2, qt, win32, or carbon. -.TP -.B \--cpu= -override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc. -.TP -.B \--compiler= -override the default compiler. e.g. ppc386, ppcx64, ppcppc etc. -.TP -.B \--language= -Override language. For example --language=de. For -possible values see files in the lazarus/languages directory. - - -.SH .lpi and .lpk files -The .lpi and .lpk files are best created and edited with the Lazarus IDE. -The files are in xml. There is no reason to edit them manually, except for -very rare cases like renaming hundreds of files. - -.IP - -.SH SEE ALSO -.IP -.BR ppc386 (1) -.BR ld (1) - -.SH Websites -.IP -.BR http://www.lazarus.freepascal.org - diff --git a/install/man/man1/lazbuild.1 b/install/man/man1/lazbuild.1 index 9eb7ba04cc..e12a0804b5 100644 --- a/install/man/man1/lazbuild.1 +++ b/install/man/man1/lazbuild.1 @@ -1,30 +1,38 @@ .TH lazbuild 1 "19 April 2008" "Lazarus" "Lazarus Projects Builder" .SH NAME -lazbuild \- The Lazarus projects builder. +lazbuild \- The Lazarus project and package build program. .SH SYNOPSIS -.B lazbuild [options] +.B lazbuild +.I "[options] filename..." .SH DESCRIPTION .B lazbuild -TO BE FILLED. +builds a Lazarus project or package. It compiles projects (.lpi) and packages +(.lpk). It checks and automatically compiles required packages. .SH USAGE .B lazbuild +is a command-line tool that builds Lazarus projects and packages. It +checks recursively all dependencies and compiles needed packages first. It uses +the +.B Free Pascal compiler (fpc) +to compile. .SH OPTIONS -.B lazbuild -has a small number of options to control it's behaviour: .TP .BI "\-h, \-\-help" Displays a short help message. .TP .BI "-B, --build-all" -build all files of project/package +build all files of project/package. Has the same effect as option +.BI -B +of +.BR fpc (1). .TP .BI "-r, --recursive" apply build flags (-B) to dependencies too. @@ -42,23 +50,34 @@ primary config directory, where Lazarus stores its config files. Default is /hom secondary config directory, where Lazarus searches for config template files. Default is /etc/lazarus .TP .BI "--os=, --operating-system=" -override the project operating system. e.g. win32 linux. +override the project operating system. e.g. win32 or linux. .TP .BI "--ws=, --widgetset=" -override the project widgetset. e.g. gtk gtk2 qt win32 carbon. +override the project widgetset. e.g. gtk, gtk2, qt, win32 or carbon. .TP .BI "--cpu=" -override the project cpu. e.g. i386 x86_64 powerpc powerpc_64 etc. +override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc. .TP .BI "--compiler=" -override the default compiler. e.g. ppc386 ppcx64 ppcppc etc. +override the default compiler. e.g. ppc386, ppcx64, ppcppc etc. .TP .BI "--language=" -Override language. For example --language=de. For possible values see files in the languages directory. +Override language. For example --language=de. For possible values see files in the lazarus languages directory. + +.SH .lpi and .lpk files +The .lpi and .lpk files are best created and edited with the Lazarus IDE. +The files are in xml. There is no reason to edit them manually, except for +very rare cases like renaming hundreds of files. .SH SEE ALSO .IP .BR lazarus-ide (1) -.BR fpcmake (1) .BR fpc (1) +.BR ld (1) +.BR fpcmake (1) .BR make (1) + +.SH Websites +.IP +.BR http://www.lazarus.freepascal.org + diff --git a/tools/install/create_lazarus_deb.sh b/tools/install/create_lazarus_deb.sh index 4c7b987aa5..b92795fdbf 100755 --- a/tools/install/create_lazarus_deb.sh +++ b/tools/install/create_lazarus_deb.sh @@ -148,7 +148,9 @@ ln -s $LazDestDirInstalled/lazbuild $LazBuildDir/usr/bin/lazbuild # docs mkdir -p $LazBuildDir/usr/share/man/man1 -cat $LazDestDir/docs/lazbuild.1 | gzip > $LazBuildDir/usr/share/man/man1/lazbuild.1.gz +cat $LazDestDir/install/man/man1/lazbuild.1 | gzip > $LazBuildDir/usr/share/man/man1/lazbuild.1.gz +cat $LazDestDir/install/man/man1/lazarus-ide.1 | gzip > $LazBuildDir/usr/share/man/man1/lazarus-ide.1.gz +cat $LazDestDir/install/man/man1/startlazarus.1 | gzip > $LazBuildDir/usr/share/man/man1/startlazarus.1.gz # default configs mkdir -p $LazBuildDir/etc/lazarus diff --git a/tools/install/rpm/lazarus.spec.template b/tools/install/rpm/lazarus.spec.template index 974d34650c..a908490f44 100644 --- a/tools/install/rpm/lazarus.spec.template +++ b/tools/install/rpm/lazarus.spec.template @@ -59,7 +59,9 @@ cp -a lazarus/* %{buildroot}%{_libdir}/%{name}/ ln -sf ../%{_lib}/%{name}/lazarus %{buildroot}%{_bindir}/lazarus-ide ln -sf ../%{_lib}/%{name}/startlazarus %{buildroot}%{_bindir}/startlazarus ln -sf ../%{_lib}/%{name}/lazbuild %{buildroot}%{_bindir}/lazbuild -cat lazarus/docs/lazbuild.1 | gzip > %{buildroot}%{_mandir}/man1/lazbuild.1.gz +cat lazarus/install/man/man1/lazbuild.1 | gzip > %{buildroot}%{_mandir}/man1/lazbuild.1.gz +cat lazarus/install/man/man1/lazarus-ide.1 | gzip > %{buildroot}%{_mandir}/man1/lazarus-ide.1.gz +cat lazarus/install/man/man1/startlazarus.1 | gzip > %{buildroot}%{_mandir}/man1/startlazarus.1.gz install lazarus/tools/install/linux/editoroptions.xml %{buildroot}%{_sysconfdir}/lazarus/editoroptions.xml install lazarus/tools/install/linux/environmentoptions.xml %{buildroot}%{_sysconfdir}/lazarus/environmentoptions.xml