Skip to content
Snippets Groups Projects
Select Git revision
  • ss15
  • tardis default
  • online-lip-2020
  • ss18
  • ws18
  • master protected
  • ws17
  • ss17
  • ws16
  • ss16
  • ws15 protected
  • ws14 protected
  • buildhauer protected
  • ss14 protected
14 results

liblapack-dev.tex

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    check-phpwebapp-update.sh 571 B
    #!/bin/bash
    
    if [ "$#" -ne 4 ]; then
        echo "Usage: $0 Name URL pattern version" >&2
        exit 1
    fi
    
    software=$1
    url=$2
    pattern=$3
    version=$4
    
    page=$(curl "$url" 2>/dev/null)
    if [[ $? -ne 0 ]]; then
    	echo "Querying ${url} (for ${software}) failed."
    	exit 1
    fi
    match=$(echo $page | grep -Po "${pattern}")
    if [[ $? -ne 0 ]]; then
    	echo "Version pattern '${pattern}' not found in ${url} (for ${software})."
    	exit 1
    fi
    echo $match | grep -qF $version
    if [[ $? -ne 0 ]]; then
    	echo "${software} requires update: \"${version}\" does not match \"${match}\"."
    	exit 0
    fi
    exit 0