From 7cbb7832af98b6b435cd8ea785e11319c5b15706 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Wed, 22 Apr 2009 23:54:38 +0200 Subject: [PATCH] Build System: gzip man page with CMakelist.txt --- CMakeLists.txt | 16 +++-- wmfs.1 | 173 +++++++++++++++++++++++++++++++++++++++++++++++++ wmfs.1.gz | Bin 1171 -> 0 bytes 3 files changed, 185 insertions(+), 4 deletions(-) create mode 100644 wmfs.1 delete mode 100644 wmfs.1.gz diff --git a/CMakeLists.txt b/CMakeLists.txt index 652a4fd..431f5e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,11 +119,11 @@ macro(a_find_program var prg req) endmacro() find_program(GIT_EXECUTABLE git) +# program needed for man pages +a_find_program(GZIP_EXECUTABLE gzip TRUE) + # Generating CHANGELOG - if(EXISTS ${SOURCE_DIR}/.git/HEAD AND GIT_EXECUTABLE) - - # generate message("Git dir -- Generating changelog...") execute_process( COMMAND ${GIT_EXECUTABLE} log @@ -142,6 +142,14 @@ execute_process( endif() +# gzip man pages +execute_process( + COMMAND ${GZIP_EXECUTABLE} -c ${SOURCE_DIR}/wmfs.1 + OUTPUT_FILE ${BUILD_DIR}/wmfs.1.gz + ) + + + # sets # {{{ Install path and configuration variables if(DEFINED PREFIX) @@ -220,7 +228,7 @@ set(PROJECT_TODO ${SOURCE_DIR}/TODO) set(PROJECT_README ${SOURCE_DIR}/README) set(PROJECT_CHANGELOG ${SOURCE_DIR}/CHANGELOG) set(PROJECT_DEFAULT_CONF ${SOURCE_DIR}/wmfsrc) -set(WMFS_MAN1_FILES ${SOURCE_DIR}/wmfs.1.gz) +set(WMFS_MAN1_FILES ${BUILD_DIR}/wmfs.1.gz) # installs install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) diff --git a/wmfs.1 b/wmfs.1 new file mode 100644 index 0000000..038fe04 --- /dev/null +++ b/wmfs.1 @@ -0,0 +1,173 @@ +.\" Title: wmfs +.\" Author: +.\" Generator: DocBook XSL Stylesheets v1.73.2 +.\" Date: 04/22/2009 +.\" Manual: manual of wmfs +.\" Source: wmfs 0.1rc4 (On The Run) +.\" +.TH "WMFS" "1" "04/22/2009" "wmfs 0\&.1rc4 (On The Run)" "manual of wmfs" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +wmfs \- Window Manager From Scratch +.SH "SYNOPSIS" +\fBwmfs\fR [\fB\-v\fR | \fB\-\-version\fR] [\fB\-h\fR | \fB\-\-help\fR] [ \fB\-i\fR | \fB\-\-info\fR] +.sp +.SH "DESCRIPTION" +\fBWMFS\fR is a basic, lightweight and dynamic tiling windows manager for X\&. +.sp +.SH "OPTIONS" +.PP +\fB\-v\fR, \fB\-\-version\fR +.RS 4 +Print version information to standard output, then exit\&. +.RE +.PP +\fB\-h\fR, \fB\-\-help\fR +.RS 4 +Print help information, then exit\&. +.RE +.PP +\fB\-i\fR, \fB\-\-info\fR +.RS 4 +Print WMFS informations +.RE +.SH "DEFAULT KEY BINDINGS" +.PP +\fBControl + Return\fR +.RS 4 +Run a terminal (urxvt by default) +.RE +.PP +\fBAlt + q\fR +.RS 4 +Quit the selected client +.RE +.PP +\fBControl\-Alt\-Shift + q\fR +.RS 4 +Exit WMFS +.RE +.PP +\fBControl + m \fR +.RS 4 +Toggle maximize the selected client +.RE +.PP +\fBControl + b \fR +.RS 4 +Toggle the bar position between top and bottom +.RE +.PP +\fBAlt + Tab\fR +.RS 4 +Give the focus to the next client +.RE +.PP +\fBAlt\-Shift + Tab\fR +.RS 4 +Give the focus to the previous client +.RE +.PP +\fBControl + Right\fR +.RS 4 +Next tag +.RE +.PP +\fBControl + Left\fR +.RS 4 +Previous tag +.RE +.PP +\fBControl + Up\fR +.RS 4 +Next layout +.RE +.PP +\fBControl + Down\fR +.RS 4 +Previous layout +.RE +.PP +\fBAlt + l\fR +.RS 4 +Increase the mwfact (+0\&.025) +.RE +.PP +\fBAlt + h\fR +.RS 4 +Decrease the mwfact (\-0\&.025) +.RE +.PP +\fBControl\-Alt + Left\fR +.RS 4 +Move the selected client to the left +.RE +.PP +\fBControl\-Alt + Right\fR +.RS 4 +Move the selected client to the right +.RE +.PP +\fBControl\-Alt + Up\fR +.RS 4 +Up the selected client +.RE +.PP +\fBControl\-Alt + Down\fR +.RS 4 +Down the selected client +.RE +.PP +\fBShift+Alt + Left\fR +.RS 4 +Decrease the selected client size (horizontally) +.RE +.PP +\fBShift+Alt + Right\fR +.RS 4 +Increase the selected client size (horizontally) +.RE +.PP +\fBShift+Alt + Up\fR +.RS 4 +Decrease the selected client size (vertically) +.RE +.PP +\fBShift+Alt + Down\fR +.RS 4 +Increase the selected client size (vertically) +.RE +.PP +\fBAlt + F[1\&.\&.9]\fR +.RS 4 +Change tag view +.RE +.PP +\fBControl\-Shift +F[1\&.\&.9]\fR +.RS 4 +Transfert the selected client to the wanted tag +.RE +.SH "CONFIGURATION" +WMFS is configured by \fI$HOME/\&.config/wmfs/wmfsrc\fR\&. +.sp +.SH "BUGS" +WMFS isn\'t stable for now\&. So it certainly contains some bugs\&. +.sp +.SH "AUTHORS" +Martin Duquesnoy <\fIxorg62@gmail\&.com\fR\&[1]> for the code\&. +.sp +.SH "WWW" +Main site: \fIhttp://wmfs\&.malikania\&.org\fR Bug tracker: \fIhttp://wmfs\&.malikania\&.org/projects/wmfs/issues\fR +.sp +.SH "COPYING" +WMFS is under the BSD license\&. See COPYING for more informations\&. +.sp +.SH "NOTES" +.IP " 1." 4 +xorg62@gmail.com +.RS 4 +\%mailto:xorg62@gmail.com +.RE diff --git a/wmfs.1.gz b/wmfs.1.gz deleted file mode 100644 index 30e406adb8774a2d557a23b24b3530533bd8a0c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1171 zcmV;E1Z?{siwFpOckf9619xp^b1pFerB-cI<2Dffo?o$(X|LP>4oPV{$K2dBkN}yI zm&VC(4CaI4$hHn!%1LrUZu;Z9lFivBzCfo87`^O1yZh`)E5~bs`I#{t(=*s4foeF} zS~t~^kY`}$SCmspw3+vWe=fu$e0FcZ)!Ue=h*GU!-FE)?)#<>;NbA*EtF;vV0_7YP zIGpO%r)OM%9?@v)uiX(m#cRF^5@1 zVVd&yMy}z^uAzB5ymXt;Y~x>H1SgrM_ik4gH>*aQ*6NZevWO`}+f_t4(M<4$!=uXH zmsDvMFyHRN0a=;_(DVsE0%96yj7NrygW&NNy(CMB8;*;9j=IBsvthmRj^UQ^rPvq} zNJu4IN|Au;Bk6vWiMw~B@x&dt&4w488!a!G!aa_?BL;iy$+xYu_tri00BFdkXkhF_z?6cAVt#rz|PSs3XJHD4fn3Ck@f z3G+d-nDG!cHaKNcYoiNdIg$)6ZDG z?9Ojy@K^s1&IhC3V02ZmaUr;tB8EelQk}{Y4_LmK1x;nbIM(k$DxcOG7F$@-fTXd0 zU-qyYYlQe(X#bruZQ=n%W9n#|aA+dD>W@7Rr4@B*ZdRM^OBv`{jELUbm= z5D!g4o>;=Z(Knh#ki{;D(OnP;E1{T8{DNWyQd0mcTZ0RswMcg3pOHlYcE#2iR3Q9R znc^`MZqDznKNSYv0JD;G%>>T(g*G*Zra&6mtAm8~!Z&!Kl#43I|DpVR^#VC2TRar? z!acF!HQ>7{8IN%xJK(;gL}e5tn}GNl4i3#-d(!!>rUauxwMT1Iz2iFFawYC?F%;|C zdV0=o-y`tJGMw3!@QOX5FL`MN@DCB+v^ zLq=1JDTOZEj6J(>F`nFEPcB$b`I2Vtp1VDK0Qr