sunaku / dasht

💁 Search API docs offline, in terminal or browser
https://sunaku.github.io/dasht/man
827 stars 26 forks source link

Provide a URL that will always return the latest stable version of dasht #13

Closed lpil closed 8 years ago

lpil commented 8 years ago

I would like to add dasht installation to the scripts I use to build a new machine. Currently this would be fiddly as I would have to keep updating this script when a new version is released.

sunaku commented 8 years ago

Try parsing the newest release tag from this RSS feed and then resolve it to a download URL as follows:

https://github.com/sunaku/dasht/archive/${newest_release_tag}.tar.gz
lpil commented 8 years ago

That's far too much work to comfortably do in ansible scripts, I'll use master.

sunaku commented 8 years ago

Can you run shell commands from Ansible? If so, this ought to do the job:

wget -qO dasht.tgz "https://github.com/sunaku/dasht/archive/$(
  wget -qO- 'https://github.com/sunaku/dasht/tags.atom' |
  grep '<title>' | sed -n '2s/ *<[^>]*>//gp'
).tar.gz"

Alternatively, contribute a dasht package to your favorite package manager.

lpil commented 8 years ago

Alas, Debian moves slowly. Thank you :)