ソースを参照

Plugins that don't have version/friendly version specified now have their version/friendly version set to their SVN revision


git-svn-id: http://svn.dmdirc.com/trunk@3635 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16年前
コミット
e050d96cb4
1個のファイルの変更14行の追加1行の削除
  1. 14
    1
      createPluginJar.sh

+ 14
- 1
createPluginJar.sh ファイルの表示

@@ -25,6 +25,19 @@ cd $TMPDIR
25 25
 
26 26
 mkdir META-INF
27 27
 cp ${srcdir}/src/${foldername}/plugin.info META-INF/
28
+
29
+# Add the SVN version if there's no version specified and we know the SVN rev
30
+if ! grep "^version=" META-INF/plugin.info >/dev/null; then
31
+	SVN=`which svn`	
32
+	SVNREV=`$SVN info $srcdir/src/$foldername 2>&1 | grep "Last Changed Rev"`
33
+        SVNREV=${SVNREV##*: }
34
+	echo "version=$SVNREV" >> META-INF/plugin.info
35
+
36
+	if ! grep "^frieldyversion=" META-INF/plugin.info >/dev/null; then
37
+		echo "friendlyversion=$SVNREV" >> META-INF/plugin.info
38
+	fi
39
+fi
40
+
28 41
 foo=`echo $foldername | sed -e 's/\/[^\/]*$//g'`
29 42
 mkdir -p $foo
30 43
 cd ${foo}
@@ -40,7 +53,7 @@ while [ 1 -eq 1 ]; do
40 53
 	if [ ${?} -ne 0 ]; then
41 54
 		break;
42 55
 	else
43
-		for thisfile in `ls -1 ${foo}${bit}/*.class ${foo}${bit}/*.png`; do
56
+		for thisfile in `ls -1 ${foo}${bit}/*.class ${foo}${bit}/*.png 2>/dev/null`; do
44 57
 			jar -uvf ${srcdir}/src/${foldername}/${2}.jar ${thisfile} >/dev/null
45 58
 		done
46 59
 	fi

読み込み中…
キャンセル
保存