Browse Source

Plugin jars now have version=0 if they're not versioned by SVN

tags/0.6.3m1rc1
Chris Smith 15 years ago
parent
commit
15c5382138
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      createPluginJar.sh

+ 6
- 1
createPluginJar.sh View File

@@ -32,7 +32,12 @@ if ! grep "^version=" META-INF/plugin.info >/dev/null; then
32 32
 	SVNREV=`$SVN info $srcdir/src/$foldername 2>&1 | grep "Last Changed Rev"`
33 33
         SVNREV=${SVNREV##*: }
34 34
         echo "" >> META-INF/plugin.info
35
-	echo "version=$SVNREV" >> META-INF/plugin.info
35
+
36
+	if [ -n "$SVNREV" ]; then
37
+		echo "version=$SVNREV" >> META-INF/plugin.info;
38
+	else
39
+		echo "version=0" >> META-INF/plugin.info;
40
+	fi
36 41
 
37 42
 	if ! grep "^friendlyversion=" META-INF/plugin.info >/dev/null; then
38 43
 		echo "friendlyversion=$SVNREV" >> META-INF/plugin.info

Loading…
Cancel
Save