Summary: | The script kexi/examples/build_kexi_file.sh doesn't work on Solaris 8 when building | ||
---|---|---|---|
Product: | [Applications] KEXI | Reporter: | Steve Evans <stevee> |
Component: | General | Assignee: | Jarosław Staniek <staniek> |
Status: | CLOSED LATER | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Steve Evans
2007-02-23 14:16:27 UTC
Thanks for reporting. I guess I cannot add dependency on bash but instead find a replacement for not portable commands. Before I am able to do this, I need assistance of a sh user. Note that all scripts in examples/ and tools/ need to be reviewed. Same system, problem and solution here. any assistance from solaris user on how to keep the script portable? /bin/sh on Solaris does not support the -ot and -nt test operators. /usr/bin/test can be used instead while retaining /bin/sh. Here is a suggested patch: --- koffice-1.6.3/kexi/examples/build_kexi_file.sh 2008-01-30 12:19:04.582001168 +0530 +++ koffice-1.6.3/kexi/examples/build_kexi_file.sh.new 2008-01-30 12:45:58.466988954 +0530 @@ -22,7 +22,7 @@ kexi_file=$2 fi -if test -f "$kexi_file" -a ! "$kexi_file" -ot "$1" ; then +if /usr/bin/test -f "$kexi_file" -a "$kexi_file" -nt "$1" ; then echo "Local $kexi_file is newer than $1 - skipping it" exit 0 fi |