From f70be2965113ca9fb00d876def8a51a9de3b09c4 Mon Sep 17 00:00:00 2001 From: sponge Date: Sun, 1 Feb 2009 11:04:42 +0000 Subject: [PATCH] small change so that the version number makes more sense --- Slackware/i2p/i2p.SlackBuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Slackware/i2p/i2p.SlackBuild b/Slackware/i2p/i2p.SlackBuild index ed76417689..bc077b53c9 100755 --- a/Slackware/i2p/i2p.SlackBuild +++ b/Slackware/i2p/i2p.SlackBuild @@ -28,9 +28,9 @@ ARCH=noarch # This mess is here due to the totally moronic way i2p does versioning. # We correct it here. # -ROUTER=$(echo -ne "-")$(cat ../../router/java/src/net/i2p/router/RouterVersion.java | grep -e "public final static long BUILD" | cut -f2 -d"=" | cut -f1 -d";" | sed -re "s/ //g") -if [ "$ROUTER" == "-" ] ; then - ROUTER="-0" +ROUTER=$(echo -ne "_")$(cat ../../router/java/src/net/i2p/router/RouterVersion.java | grep -e "public final static long BUILD" | cut -f2 -d"=" | cut -f1 -d";" | sed -re "s/ //g") +if [ "$ROUTER" == "_" ] ; then + ROUTER="_0" fi #