Skip to content

Commit 8dfa664

Browse files
authored
update cli metainfo and (#1422)
add a script to generate it.
1 parent fd3b5c1 commit 8dfa664

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

org.gpsbabel.cli.metainfo.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<p>GPSBabel supports the following formats:</p>
2222

2323
<ul>
24+
<li>70mai: 70mai Dash Cam</li>
2425
<li>arc: GPSBabel arc filter file</li>
2526
<li>csv: Comma separated values</li>
2627
<li>cup: See You flight analysis data</li>

tools/gen_cli_metainfo.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash -e
2+
# this generates the lists in org.gpsbabel.cli.metainfo.xml
3+
4+
cat <<"EOF"
5+
<?xml version="1.0" encoding="UTF-8"?>
6+
<!-- reference: https://freedesktop.org/software/appstream/docs/index.html -->
7+
<component type="console-application">
8+
<id>org.gpsbabel.cli</id>
9+
<metadata_license>MIT</metadata_license>
10+
<project_license>GPL-2.0</project_license>
11+
<name>gpsbabel</name>
12+
<summary>GPS file conversion plus transfer to/from GPS units</summary>
13+
<description>
14+
<p>GPSBabel converts waypoints, tracks, and routes from one common
15+
mapping format to another or a serial upload or download to a GPS
16+
unit such as those from Garmin.</p>
17+
18+
<p>GPSBabel supports several data formats and will be useful for
19+
tasks such as geocaching, mapping, and converting from one GPS
20+
unit to another. Among the interesting formats it supports are
21+
the GPS Exchange Format (GPX), Keyhole Markup Language (KML), several
22+
GPS devices via a serial link, and various Geocaching data formats.
23+
GPSBabel also supports various filters to manipulate the data.</p>
24+
25+
<p>GPSBabel supports the following formats:</p>
26+
27+
<ul>
28+
EOF
29+
30+
# generate list items for the formats
31+
gpsbabel -^1 | grep -v internal | cut -f 2,4 | sed -e 's/ /: /' -e 's/^/ <li>/' -e 's/$/<\/li>/' | sort -k 1
32+
33+
cat <<"EOF"
34+
</ul>
35+
36+
<p>GPSBabel supports the following filters:</p>
37+
<ul>
38+
EOF
39+
40+
# generate list items for the filters
41+
gpsbabel -%1 | grep -v option | sed -e 's/ +/ /' | cut -f 1,2 | sed -e 's/ /: /' -e 's/^/ <li>/' -e 's/$/<\/li>/' | sort -k 1
42+
43+
cat <<"EOF"
44+
</ul>
45+
</description>
46+
<url type="homepage">https://www.gpsbabel.org</url>
47+
<url type="vcs-browser">https://github.com/GPSBabel/gpsbabel</url>
48+
<provides>
49+
<binary>gpsbabel</binary>
50+
<modalias>usb:v091Ep0003d*</modalias>
51+
</provides>
52+
</component>
53+
EOF

0 commit comments

Comments
 (0)