Issue 28381 - configure.pl 'head' call fix:
Summary: configure.pl 'head' call fix:
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: svante.schubert
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-26 16:19 UTC by mmeeks
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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