Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pkg-varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
pkg-varnish-cache
Commits
b002a7b6
Commit
b002a7b6
authored
Mar 02, 2018
by
Dridi Boukelmoune
Committed by
Denis Brækhus
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retire the venerable common.sh
parent
a8e0ca7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
common.sh
common.sh
+0
-34
No files found.
common.sh
deleted
100644 → 0
View file @
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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment