Revision 50d91bdfc94cb9d3aa01634ac0b003d76e799bf1 authored by Tobias Ellinghaus on 04 May 2017, 21:56:48 UTC, committed by Tobias Ellinghaus on 04 May 2017, 21:56:48 UTC
1 parent c2e0a27
Raw File
parse_version_c.sh
#!/bin/sh

set -e

H_FILE=$1

# version.c exists => check if it containts the up-to-date version
if [ -f "$H_FILE" ]; then
  OLD_VERSION=`tr '"' '\n' < "$H_FILE" | sed '8q;d'`

  echo $OLD_VERSION
fi
back to top