Commit b002a7b6 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Denis Brækhus

Retire the venerable common.sh

parent a8e0ca7c
function findversion() {
tarfile=$1
# This looks like something that should work, but I can't get it right.
# tar -zxf sources/varnish-4.1.0.tar.gz --wildcards-match^Clash --wildcards '*figure';
# Workaround follows.
TMP=tmp.$$.$RANDOM
mkdir -p $TMP
tar zxf $tarfile -C $TMP
mv $TMP/*/configure .
rm -rf $TMP
V=$(grep PACKAGE_VERSION= configure | sed "s/.*=//;s/'//g")
RELEASE=""
if [ "$V" = "trunk" ]; then
V="5.1"
MINOR="0"
else
# 4.1.1
# 4.1.1-beta1
MINOR="${V:4:1}"
RELEASE="${V:6}"
V="${V:0:3}"
fi
rm configure
}
#findversion sources/varnish-4.1*gz
#echo "V is: $V"
#echo "MINOR is $MINOR"
#echo "RELEASE is $RELEASE"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment