Ticket #55 (closed: fixed)
The script src/kdesvnd/test.kde.sh doesn't work on Solaris
| Reported by: | Gorbag | Owned by: | alwin |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.7.x |
| Component: | All | Version: | 0.7.x |
| Severity: | minor | Keywords: | RESOLVED |
| Cc: |
Description
When building kdesvn 0.7.4 on Solaris 8 I get this error:
Moving to kdesvn_subversion.desktop sed: command garbled: s/ ../../src/kdesvnd/test.kde.sh: Actions/#Actions/g: not found gmake[3]: *** [kdesvn_subversion.desktop] Error 1 gmake[3]: Leaving directory `/export/home/stevee/kde_build/kdesvn-0.7.4/src/kdesvnd'
It appears that the script runs as /bin/sh, which on Solaris is a Bourne shell, not Bash. The lines:
if [ "${mi}" = "5" ]; then
cat ${1} | sed s/Actions/#Actions/g > $n
else
cat ${1} | sed s/X-KDE-GetActionMenu/#X-KDE-GetActionMenu/g > $n
fi
are incorrectly quoted for Bourne, changing them to:
if [ "${mi}" = "5" ]; then
cat ${1} | sed 's/Actions/#Actions/g' > $n
else
cat ${1} | sed 's/X-KDE-GetActionMenu/#X-KDE-GetActionMenu/g' > $n
fi
fixes the problem and should also work in bash.
