Skip to content

Commit fc54954

Browse files
sej7278sudar
authored andcommitted
Add manpage back to specfile
Includes following changes - change author info - add examples section Fix #188
1 parent ba2b27d commit fc54954

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

ard-reset-arduino.1

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.TH ARD-RESET-ARDUINO "1" "April 2014" "ard-reset-arduino 1.3.2" "Arduino CLI Reset"
2+
3+
.SH NAME
4+
ard-reset-arduino \- Reset Arduino board
5+
6+
.SH SYNOPSIS
7+
.B ard-reset-arduino
8+
[OPTION]... [PORT]
9+
10+
.SH DESCRIPTION
11+
To reset Arduinos, we either pulse the DTR line or open the USB port
12+
at 1200 baud and close it again.
13+
14+
.SH OPTIONS
15+
.B --verbose
16+
Watch what's going on on STDERR.
17+
18+
.B --period
19+
Specify the DTR pulse width in seconds.
20+
21+
.B --caterina
22+
Reset a Leonardo, Micro, Robot, LilyPadUSB or similar 32u4-based device.
23+
24+
.SH EXAMPLES
25+
ard-reset-arduino /dev/ttyACM0
26+
.PP
27+
ard-reset-arduino --verbose --period=0.1 /dev/cu.usb*
28+
.PP
29+
ard-reset-arduino --verbose --caterina /dev/ttyUSB0
30+
31+
.SH BUGS
32+
There are no known bugs in this application. Please report problems
33+
to the author. Patches are welcome.
34+
35+
.SH AUTHOR
36+
Simon John, git@the-jedi.co.uk
37+
38+
.SH LICENSE
39+
Copyright (c) 2014, Simon John. All rights reserved.
40+
.PP
41+
This file is free software; you can redistribute it and/or modify it
42+
under the terms of the GNU Lesser General Public License as published
43+
by the Free Software Foundation; either version 2.1 of the License, or
44+
(at your option) any later version.
45+
.PP
46+
This program is distributed in the hope that it will be useful, but
47+
WITHOUT ANY WARRANTY; without even the implied warranty of
48+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

packaging/fedora/arduino-mk.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Arduino platform.
2727
%install
2828
mkdir -p %{buildroot}/%{_datadir}/arduino
2929
mkdir -p %{buildroot}/%{_bindir}
30+
mkdir -p %{buildroot}/%{_mandir}/man1
3031
mkdir -p %{buildroot}/%{_docdir}/%{name}/examples
3132
install -m 755 -d %{buildroot}/%{_docdir}/%{name}
3233
install -m 755 -d %{buildroot}/%{_docdir}/%{name}/examples
@@ -35,20 +36,24 @@ for file in `find examples -type f ! -name .gitignore` ; do install -m 644 $file
3536
install -m 644 *.mk arduino-mk-vars.md %{buildroot}/%{_datadir}/arduino
3637
install -m 644 licence.txt %{buildroot}/%{_docdir}/%{name}
3738
install -m 755 bin/ard-reset-arduino %{buildroot}/%{_bindir}/ard-reset-arduino
39+
install -m 644 ard-reset-arduino.1 %{buildroot}/%{_mandir}/man1
3840

3941
%clean
4042
rm -rf %{buildroot}
4143

4244
%files
4345
%defattr(-,root,root,-)
4446
%{_bindir}/ard-reset-arduino
47+
%{_mandir}/man1/ard-reset-arduino.1*
4548
%{_datadir}/arduino/*.mk
4649
%{_datadir}/arduino/arduino-mk-vars.md
4750
%doc %{_docdir}/%{name}/licence.txt
4851
%docdir %{_docdir}/%{name}/examples
4952
%{_docdir}/%{name}/examples
5053

5154
%changelog
55+
* Sat Apr 12 2014 Simon John <git@the-jedi.co.uk>
56+
- Put manpage back.
5257
* Fri Apr 04 2014 Simon John <git@the-jedi.co.uk>
5358
- Removed BuildRequires of python3/pyserial.
5459
* Wed Apr 02 2014 Simon John <git@the-jedi.co.uk>

0 commit comments

Comments
 (0)