Kaynağa Gözat

JWrappingLabel no longer breaks the wizards

Windows installer won't build if wget.exe or 7zS.sfx are not found
Linux launcher now passes params with spaces in them correctly to the client
DoReports now also sources ${HOME}/.bashrc to get the correct classpath


git-svn-id: http://svn.dmdirc.com/trunk@3140 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 yıl önce
ebeveyn
işleme
1d74c2fa8a

+ 5
- 2
DoReports.sh Dosyayı Görüntüle

@@ -1,7 +1,8 @@
1 1
 #!/bin/sh
2 2
 
3
-# cron doesn't seem to like doing this iself...
3
+# cron doesn't do this
4 4
 . /etc/profile
5
+. ${HOME}/.bashrc
5 6
 
6 7
 # Path to trunk
7 8
 MYDIR="/home/dmdirc/google"
@@ -25,7 +26,9 @@ else
25 26
 fi
26 27
 
27 28
 # Run junit issue notifier
28
-$SCRIPTDIR/junit-failures.php
29
+if [ -e "$SCRIPTDIR/junit-failures.php" ]; then
30
+	$SCRIPTDIR/junit-failures.php
31
+fi
29 32
 
30 33
 # Oblong junit announcement
31 34
 LINE=`cat junitreports/overview-summary.html | grep "%</td"`

+ 10
- 0
installer/windows/makeInstallerWindows.sh Dosyayı Görüntüle

@@ -472,6 +472,11 @@ if [ ! -e "wget.exe" ]; then
472 472
 	wget "http://users.ugent.be/~bpuype/cgi-bin/fetch.pl?dl=wget/wget.exe"
473 473
 fi;
474 474
 
475
+if [ ! -e "wget.exe" ]; then
476
+	echo "wget.exe not found, unable to continue."
477
+	exit 1;
478
+fi;
479
+
475 480
 FILES="${FILES} wget.exe"
476 481
 
477 482
 compress $FILES
@@ -495,6 +500,11 @@ if [ ! -e "7zS.sfx" ]; then
495 500
 	rm 7zextra.tar.bz2
496 501
 fi
497 502
 
503
+if [ ! -e "7zS.sfx" ]; then
504
+	echo "7zS.sfx not found, unable to continue."
505
+	exit 1;
506
+fi;
507
+
498 508
 echo "Creating .exe"
499 509
 cat 7zS.sfx 7zip.conf "${INTNAME}" > "${RUNNAME}"
500 510
 

+ 12
- 1
launcher/linux/DMDirc.sh Dosyayı Görüntüle

@@ -25,7 +25,18 @@
25 25
 
26 26
 LAUNCHERVERSION="1"
27 27
 
28
-params="${@}"
28
+params=""
29
+
30
+# Store params so that we can pass them back to the client
31
+for param in "$@"; do
32
+	SPACE=`echo "${param}" | grep " "`
33
+	if [ "${SPACE}" != "" ]; then
34
+		niceParam=`echo "${param}" | sed 's/"/\\\\"/g'`
35
+		params=${params}" \"${niceParam}\""
36
+	else
37
+		params=${params}" ${param}"
38
+	fi;
39
+done;
29 40
 
30 41
 # Check for some CLI params
31 42
 profiledir="${HOME}/.DMDirc/"

+ 6
- 1
src/com/dmdirc/ui/swing/JWrappingLabel.java Dosyayı Görüntüle

@@ -130,7 +130,12 @@ public class JWrappingLabel extends JComponent {
130 130
 
131 131
 	/** {@inheritDoc} */
132 132
 	public Dimension getMinimumSize() {
133
-		return getPreferredSize();
133
+		if (isMinimumSizeSet()) {
134
+			return super.getMinimumSize();
135
+		} else {
136
+			doPaint(getGraphics(), true);
137
+			return new Dimension(0, myPreferredHeight);
138
+		}
134 139
 	}
135 140
 
136 141
 	/** {@inheritDoc} */

Loading…
İptal
Kaydet