summaryrefslogtreecommitdiff
path: root/development/p4v/p4v.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/p4v/p4v.SlackBuild')
-rw-r--r--development/p4v/p4v.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/development/p4v/p4v.SlackBuild b/development/p4v/p4v.SlackBuild
index 32ac6f7dcb..260e01ab63 100644
--- a/development/p4v/p4v.SlackBuild
+++ b/development/p4v/p4v.SlackBuild
@@ -23,8 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds.org --michiel
+#
+# Change History
+# ==========
+# Mon Aug 30 11:39:47 EDT 2010: add version discovery (rab)
+#
+
+set -e
+LOCALVER=`tar tf p4v.tgz 2> /dev/null | head -1 | cut -d- -f 2 | cut -d/ -f1`
PRGNAM=p4v
-VERSION=${VERSION:-2010.1.251161}
+VERSION=${VERSION:-$LOCALVER}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}