"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/release/mktag.sh" (16 Jan 2021, 551 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh -
    2 
    3 cd `dirname $0`/..
    4 REPOS=https://github.com/maranget/hevea/archive
    5 VERSIONFILE=version.ml
    6 VERSION=`sed -n -e 's/^let real_version = "\(.*\)".*$/\1/p' ${VERSIONFILE}`
    7 DATE=`date +%Y-%m-%d`
    8 echo DATE=$DATE
    9 echo VERSION=${VERSION}
   10 case $VERSION in
   11   *+*)
   12      echo DEV=true
   13      echo RELEASENAME=hevea-${DATE}
   14      ;;  
   15     *)
   16     echo DEV=false 
   17     echo RELEASENAME=hevea-${VERSION}
   18    ;;
   19 esac
   20 
   21 
   22 TMP=/tmp/tag.$$
   23 RELEASETAG=`sed -n -e 's/^let real_version = "\(.\)\.\(.*\)".*$/\1.\2/p' ${VERSIONFILE}`
   24 echo SRC=${REPOS}/v${VERSION}.tar.gz