Compare commits
No commits in common. "c9b90637065befb96399d92b2dbbdbd77a661e19" and "5f5f6035acc8ba722e251ceca722ad6991b4b4d1" have entirely different histories.
c9b9063706
...
5f5f6035ac
2 changed files with 0 additions and 50 deletions
|
@ -115,22 +115,6 @@ exclude_regex = "^.*(alpha|beta|rc).*$"
|
||||||
|
|
||||||
# github
|
# github
|
||||||
|
|
||||||
[angband]
|
|
||||||
source = "github"
|
|
||||||
github = "angband/angband"
|
|
||||||
use_max_tag = true
|
|
||||||
|
|
||||||
[midnight-commander]
|
|
||||||
source = "github"
|
|
||||||
github = "MidnightCommander/mc"
|
|
||||||
use_max_tag = true
|
|
||||||
|
|
||||||
[dopewars]
|
|
||||||
source = "github"
|
|
||||||
github = "benmwebb/dopewars"
|
|
||||||
use_max_tag = true
|
|
||||||
prefix = "v"
|
|
||||||
|
|
||||||
[immudb]
|
[immudb]
|
||||||
source = "github"
|
source = "github"
|
||||||
github = "codenotary/immudb"
|
github = "codenotary/immudb"
|
||||||
|
@ -1281,10 +1265,6 @@ pypi = "pytest-check"
|
||||||
#source = "cmd"
|
#source = "cmd"
|
||||||
#cmd = './.repo/pkgver/firefox-nightly-en-gb.sh'
|
#cmd = './.repo/pkgver/firefox-nightly-en-gb.sh'
|
||||||
|
|
||||||
[enigma]
|
|
||||||
source = "cmd"
|
|
||||||
cmd = "./.repo/pkgver/enigma.sh"
|
|
||||||
|
|
||||||
[samhain]
|
[samhain]
|
||||||
source = "cmd"
|
source = "cmd"
|
||||||
cmd = "./.repo/pkgver/samhain.sh"
|
cmd = "./.repo/pkgver/samhain.sh"
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# check dependencies
|
|
||||||
count=0
|
|
||||||
for dependency in curl hxnormalize hxselect grep sed; do
|
|
||||||
if [ ! -x "$(command -v $dependency)" ]; then
|
|
||||||
echo "$dependency missing"
|
|
||||||
count=$((count+1))
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# exit script if any dependencies missing
|
|
||||||
if [ $count -ne 0 ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# upstream URL
|
|
||||||
UPSTREAM_URL="https://www.chiark.greenend.org.uk/~sgtatham/enigma/"
|
|
||||||
|
|
||||||
# options to pass to cURL, including custom user agent
|
|
||||||
USER_AGENT="enigma-version-checker/1.0 george@rawlinson.net.nz"
|
|
||||||
CURL_OPTS=(--silent --user-agent "$USER_AGENT")
|
|
||||||
|
|
||||||
curl "${CURL_OPTS[@]}" "$UPSTREAM_URL" | \
|
|
||||||
hxnormalize -x | \
|
|
||||||
hxselect -c 'a' -s '\n' | \
|
|
||||||
grep .tar.gz | \
|
|
||||||
sed -e "s/.*enigma-//" -e "s/\.tar.gz.*//"
|
|
||||||
exit 0
|
|
Loading…
Reference in a new issue