Skip to content

Commit

Permalink
- updated debian/scripts/history.sh to fetch changelog information from
Browse files Browse the repository at this point in the history
  matomo.org websiute
- related to #62
  • Loading branch information
aureq committed Mar 30, 2018
1 parent 9f16d44 commit 774e2b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/scripts/history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ then
exit 1
fi

CHANGELOG_URL=$(wget -O - -q 'http://piwik.org/changelog/' | grep "Piwik $1" | sed 's/.*<a href=\([^>]*\).*/\1/' | sed -e 's/"//g' -e "s/'//g" | grep ^http | grep "$1/")
CHANGELOG_URL=$(wget -O - -q 'http://matomo.org/changelog/' | grep "Matomo $1" | sed 's/.*<a href=\([^>]*\).*/\1/' | sed -e 's/"//g' -e "s/'//g" | grep ^http | grep "$1/")

if [ -z "$(echo $CHANGELOG_URL | grep -i http)" ]
then
Expand All @@ -41,8 +41,8 @@ fi
echo "Changelog url found at $CHANGELOG_URL"

wget -O - -q "$CHANGELOG_URL" | \
sed -n "/List of.*in Piwik $1.*>$/,/<\/ul>/p;" | \
grep -e 'dev.piwik.org/trac/ticket' -e 'github.com/piwik' | \
sed -n "/List of.*in Matomo $1.*>$/,/<\/ul>/p;" | \
grep -e 'dev.matomo.org/trac/ticket' -e 'github.com/matomo-org' | \
sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | \
sed '/^$/d' | \
recode --silent --force UTF-8..ascii | recode UTF-8..HTML | sed -e "${UTF8_ALIENS}" | \
Expand Down

0 comments on commit 774e2b6

Please sign in to comment.