Viktor Szakatsmore URL updates45d34aa9 years agoHistory
36 lines · 1.2 KB · Text
RawDownload
#!/bin/sh# This file is part of MXE. See LICENSE.md for licensing information.## Script to automatically update GNU Make Standard Library# (https://gmsl.sourceforge.io/) clean(){    rm -rf tmp-gmsl.tar.gz gmsl-*} . tools/compat-init.sh # Current GMSL version. E.g. '1.1.5'current_version=$(grep 'gmsl_version.*=' 'ext/__gmsl' | \                  cut -d'=' -f2 | $SED -e 's/^ //' -e 's/ *$//' | tr ' ' '.')# Latest GMSL version fetched from SourceForgelatest_version=$(    $WGET -q -O- https://sourceforge.net/projects/gmsl/files/GNU%20Make%20Standard%20Library/ | \    $SED -n 's,.*/v\([0-9][^"]*\)/".*,\1,p' | \    $SORT -V | \    tail -1) cleanif [ $current_version != $latest_version ]; then    echo "New version found: $current_version --> $latest_version"    $WGET -q -O tmp-gmsl.tar.gz \        "https://downloads.sourceforge.net/project/gmsl/GNU%20Make%20Standard%20Library/v${latest_version}/gmsl-${latest_version}.tar.gz"    tar xzf tmp-gmsl.tar.gz    rm -f ext/*gmsl docs/gmsl*    cp -a gmsl-${latest_version}/gmsl ext/    cp -a gmsl-${latest_version}/__gmsl ext/    cp -a gmsl-${latest_version}/index.html docs/gmsl.html    cleanelse    echo "No new version available: $current_version"fi

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t