-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lasse Karstensen
committed
Nov 20, 2015
1 parent
dcba986
commit b8b5239
Showing
4 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
/sources | ||
/build | ||
/rpm-build | ||
/deb-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
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") | ||
if [ "$V" = "trunk" ]; then | ||
V="5.0" | ||
MINOR="0" | ||
else | ||
MINOR="${V##*.}" | ||
V="${V%.*}" | ||
fi | ||
rm configure | ||
} | ||
|
||
#findversion sources/varnish-4.1.0.tar.gz | ||
#echo $V | ||
#echo $MINOR | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters