From c90ac9ee6ca7ebeff277f2dbe2884a7dc3e4d1ae Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Sat, 20 Aug 2011 20:03:47 +0000
Subject: [PATCH] I created this script for my own convenience. It isn't used
 by the Debian packaging in any way.

Now that I know about ant getBuildNumber, I'll just use that.
---
 debian/i2pversion | 25 -------------------------
 1 file changed, 25 deletions(-)
 delete mode 100755 debian/i2pversion

diff --git a/debian/i2pversion b/debian/i2pversion
deleted file mode 100755
index 8c7a821faf..0000000000
--- a/debian/i2pversion
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-ROUTER=$(/bin/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
-
-#
-# That was the easy one, now for the tough one.
-#
-
-CORE=$(cat core/java/src/net/i2p/CoreVersion.java | grep -e "public final static String VERSION" | cut -f2 -d'"' | sed -re "s/ //g")
-CORE1=$(/bin/echo -n $CORE.x.x | sed -re "s/(.*)\.(.*)\.(.*)\.(.*)/\1/")
-CORE2=$(/bin/echo -n $CORE.x | sed -re "s/(.*)\.(.*)\.(.*)\.(.*)/\1/")
-
-if [ "$CORE.x.x" = "$CORE1" ] ; then
-	CORE=$(/bin/echo -ne $CORE".0.0")
-fi
-if [ "$CORE.x" = "$CORE2" ] ; then
-	CORE=$(/bin/echo -ne $CORE".0")
-fi
-
-VERSION=$(/bin/echo $CORE$ROUTER)
-
-echo $VERSION
-- 
GitLab