Issue 28381

Summary: configure.pl 'head' call fix:
Product: App Dev Reporter: mmeeks <mmeeks>
Component: apiAssignee: svante.schubert
Status: CLOSED FIXED QA Contact: issues@api <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: PATCH Latest Confirmation in: ---
Developer Difficulty: ---

Description mmeeks 2004-04-26 16:19:03 UTC
--- odk/configure.pl
+++ odk/configure.pl
@@ -251,7 +251,7 @@
     } else 
     {
 		#check version
-		my $testVersion = `$main::OO_SDK_JAVA_HOME/bin/java -version 2>&1 | egrep
"java version" | head -1 | sed -e 's#.*version "##' | sed -e 's#".*##'`;
+		my $testVersion = `$main::OO_SDK_JAVA_HOME/bin/java -version 2>&1 | egrep
"java version" | head -n 1 | sed -e 's#.*version "##' | sed -e 's#".*##'`;
 
 		$main::correctVersion = testVersion($main::javaVersion, $testVersion,
"$main::OO_SDK_JAVA_HOME/bin/java");
 		if ( !$main::correctVersion )
Comment 1 stephan.wunderlich 2004-04-26 16:27:34 UTC
SW->JSC: seems to be one for you
Comment 2 jsc 2004-05-17 16:18:01 UTC
accepted, use of -n option would be better even  -1 works as well (on my system)
Comment 3 jsc 2004-06-01 08:52:16 UTC
fixed in cws sdksample
Comment 4 svante.schubert 2005-01-04 13:22:34 UTC
QA: Used for new ZIP path:
my $testVersion = `$OO_SDK_ZIP_HOME/zip -h 2>&1 | egrep Zip | head -n 1`;
but not used for JAVA path:
my $testVersion = `$main::OO_SDK_JAVA_HOME/bin/java -version 2>&1 | egrep "java
version" | head -1 | sed -e 's#.*version "##' | sed -e 's#".*##'`;

Therefore I reopen this issue and removed it from CWS.
Comment 5 jsc 2005-01-11 09:42:17 UTC
seems to be a merge problem, fix again
Comment 6 jsc 2005-01-11 09:42:50 UTC
set resolution
Comment 7 svante.schubert 2005-01-26 17:05:51 UTC
verified
Comment 8 svante.schubert 2005-02-15 13:50:46 UTC
Verified in m76 -> closed