Skip to content

Commit

Permalink
Merge branch 'write-proper-manual-pages'
Browse files Browse the repository at this point in the history
  • Loading branch information
brlin-tw committed Jul 31, 2017
2 parents 7c491d8 + 353d7db commit 96faac7
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 22 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ If you are an user of non-English locale you may help this project by translate

Also you may translate our documentation to the language you are acquainted of.

## Improving Documentation
The documentation of this project may be outdated through time, and needs help to make it updated.

### Manual Pages(manpages)
Refer following articles for reference on writing manpages:

* [Linux Man Page Howto](http://www.schweikhardt.net/man_page_howto.html)
* [The GNU Troff Manual: Macro Packages » man » Usage](https://www.gnu.org/software/groff/manual/html_node/Man-usage.html#Man-usage)

## Improving Code
There's so many aspects of the code that can be improved, however please consider the following topics while doing so.

Expand Down
116 changes: 105 additions & 11 deletions src/woeusb.1
Original file line number Diff line number Diff line change
@@ -1,15 +1,109 @@
.\" woeusb man page.
.TH man 6 "3 October 2010" "1.0" "woeusb"
.TH woeusb 1 "@@WOEUSB_VERSION@@" "WoeUSB" "WoeUSB User Manual"
.SH NAME
woeusb \- A simple command line tool to create Windows Installation's USB stick under Linux.
woeusb \- Bootable Windows installation/PE USB storage creator

.SH SYNOPSIS
.\" Syntax goes here.
.B woeusb
[OPTIONS] --device|--partition
.I source_media target_media

.SH DESCRIPTION
This manpage is currently not completed, refer `woeusb --help` for usage of woeusb
.SH AUTHOR
.nf
Colin GILLE / congelli501 (colingille@hotmail.com)
.fi
.SH HISTORY
2011 \- Initial version
.B woeusb
is an command-line utility that enables you to create your own bootable Windows installation USB storage device from an existing Windows Installation DVD or its ISO image.
.PP

It mainly extracts all files from
.I source_media
to
.I target_media
, then installs GNU GRUB bootloader and a small configuration into it to support chainloading Windows BOOTMGR.
.PP

It also supports UEFI bootstrap scheme, however in this case Windows UEFI bootloader is used instead.
.PP

Currently
.B woeusb
only support FAT32 filesystem, thus the generated filesystem has a 4GiB single file size limit. NTFS may be supported in the future.

.SH COMMAND\-LINE OPTIONS
.SS INSTALLATION MODE
.TP
.B --device / -d
Drop
.I target_media
\'s partition table, recreate a new PC/Legacy/MBR partition table, create a FAT32 partition spanning (almost) the full disk, then setup bootable Windows on it.

WARNING: ALL PREVIOUS DATA ON TARGET MEDIA WILL BE DROPPED!

COMPATIBILITY: This mode is previously named
.B --format
, which will be obselute in future release.

.TP
.B --partition / -p
Mount
.I target_media
\'s file system, extracts all files from
.I source_media
, then make it bootable.

WARNING: ALL FILES EXISTING ON DISK WITH THE SAME FILENAME IN SOURCE MEDIA WILL BE OVERWRITTEN!

NOTE: UEFI bootability is available only when removable booting spec. is matched.

COMPATIBILITY: This mode is previously named
.B --install
, which will be obselute in future release.

.SS MISCELLANEOUS
.TP
.B --verbose / -v
Be more verbose
.TP
.B --debug / -d
Enable script debugging
.TP
.B --no-color
Disable color message
.TP
.B --label / -l
Label for the newly created file system in
.B --device
installation mode.

Note that the label is not verified for validity and may be illegal for the filesystem

.SH EXAMPLES
We love examples!

Completely DESTROY all previous data on an USB storage and recreate partition table and target partition, copy Windows files and make it bootable
.EX
# woeusb --device win7_amd64.iso /dev/sdX
# woeusb --device /dev/sr0 /dev/sdX
.EE

Copy Windows files to an existing FAT partition of an USB storage and make it bootable
.EX
# woeusb --partition win7_amd64.iso /dev/sdX1
# woeusb --partition /dev/sr0 /dev/sdX1
.EE

.SH EXIT STATUS
0 when success, 1 (and non-zero if there's any) when failure

.SH BUGS
Refer our
.UR https://github.com/slacka/WoeUSB/issues
issue tracker
.UE
for any known issues
.br

.SH SEE ALSO
woeusbgui(1)

.SH AUTHORS
Colin GILLE / congelli501 <colingille@hotmail.com>
.br
林博仁 <Buo.Ren.Lin@gmail.com>
39 changes: 28 additions & 11 deletions src/woeusbgui.1
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
.\" woeusbgui man page.
.TH man 6 "3 October 2010" "1.0" "woeusbgui"
.TH woeusbgui 1 "@@WOEUSB_VERSION@@" "WoeUSB" "WoeUSB User Manual"
.SH NAME
woeusbgui \- A graphical interface for woeusb(1).
woeusbgui \- A GUI wrapper for woeusb(1)

.SH SYNOPSIS
.\" Syntax goes here.
.B woeusbgui

.SH DESCRIPTION
There are no command line switches yet.
.SH AUTHOR
.nf
Colin GILLE / congelli501 (colingille@hotmail.com)
.fi
.SH HISTORY
2011 \- Initial version
This is a GUI wrapper for woeusb(1), currently it only support
.B --device
installation mode.
.PP
It is advised to use woeusb(1) instead, as it is more will-maintained and support more installation mode.

.SH OPTIONS
There are no command line options yet.

.SH BUGS
Refer our
.UR https://github.com/slacka/WoeUSB/issues
issue tracker
.UE
for any known issues
.br

.SH SEE ALSO
woeusb(1)

.SH AUTHORS
Colin GILLE / congelli501 <colingille@hotmail.com>
.br
林博仁 <Buo.Ren.Lin@gmail.com>

0 comments on commit 96faac7

Please sign in to comment.