From fc54954d0f6da51ea05f83002dca47b4a276e16f Mon Sep 17 00:00:00 2001 From: Simon John Date: Sat, 12 Apr 2014 00:36:11 +0200 Subject: [PATCH] Add manpage back to specfile Includes following changes - change author info - add examples section Fix #188 --- ard-reset-arduino.1 | 48 ++++++++++++++++++++++++++++++++ packaging/fedora/arduino-mk.spec | 5 ++++ 2 files changed, 53 insertions(+) create mode 100644 ard-reset-arduino.1 diff --git a/ard-reset-arduino.1 b/ard-reset-arduino.1 new file mode 100644 index 0000000..fa05597 --- /dev/null +++ b/ard-reset-arduino.1 @@ -0,0 +1,48 @@ +.TH ARD-RESET-ARDUINO "1" "April 2014" "ard-reset-arduino 1.3.2" "Arduino CLI Reset" + +.SH NAME +ard-reset-arduino \- Reset Arduino board + +.SH SYNOPSIS +.B ard-reset-arduino +[OPTION]... [PORT] + +.SH DESCRIPTION +To reset Arduinos, we either pulse the DTR line or open the USB port +at 1200 baud and close it again. + +.SH OPTIONS +.B --verbose +Watch what's going on on STDERR. + +.B --period +Specify the DTR pulse width in seconds. + +.B --caterina +Reset a Leonardo, Micro, Robot, LilyPadUSB or similar 32u4-based device. + +.SH EXAMPLES +ard-reset-arduino /dev/ttyACM0 +.PP +ard-reset-arduino --verbose --period=0.1 /dev/cu.usb* +.PP +ard-reset-arduino --verbose --caterina /dev/ttyUSB0 + +.SH BUGS +There are no known bugs in this application. Please report problems +to the author. Patches are welcome. + +.SH AUTHOR +Simon John, git@the-jedi.co.uk + +.SH LICENSE +Copyright (c) 2014, Simon John. All rights reserved. +.PP +This file is free software; you can redistribute it and/or modify it +under the terms of the GNU Lesser General Public License as published +by the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. +.PP +This 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. diff --git a/packaging/fedora/arduino-mk.spec b/packaging/fedora/arduino-mk.spec index 5fdbed7..febd3b3 100644 --- a/packaging/fedora/arduino-mk.spec +++ b/packaging/fedora/arduino-mk.spec @@ -27,6 +27,7 @@ Arduino platform. %install mkdir -p %{buildroot}/%{_datadir}/arduino mkdir -p %{buildroot}/%{_bindir} +mkdir -p %{buildroot}/%{_mandir}/man1 mkdir -p %{buildroot}/%{_docdir}/%{name}/examples install -m 755 -d %{buildroot}/%{_docdir}/%{name} install -m 755 -d %{buildroot}/%{_docdir}/%{name}/examples @@ -35,6 +36,7 @@ for file in `find examples -type f ! -name .gitignore` ; do install -m 644 $file install -m 644 *.mk arduino-mk-vars.md %{buildroot}/%{_datadir}/arduino install -m 644 licence.txt %{buildroot}/%{_docdir}/%{name} install -m 755 bin/ard-reset-arduino %{buildroot}/%{_bindir}/ard-reset-arduino +install -m 644 ard-reset-arduino.1 %{buildroot}/%{_mandir}/man1 %clean rm -rf %{buildroot} @@ -42,6 +44,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/ard-reset-arduino +%{_mandir}/man1/ard-reset-arduino.1* %{_datadir}/arduino/*.mk %{_datadir}/arduino/arduino-mk-vars.md %doc %{_docdir}/%{name}/licence.txt @@ -49,6 +52,8 @@ rm -rf %{buildroot} %{_docdir}/%{name}/examples %changelog +* Sat Apr 12 2014 Simon John +- Put manpage back. * Fri Apr 04 2014 Simon John - Removed BuildRequires of python3/pyserial. * Wed Apr 02 2014 Simon John