Bug 52900 - wmaker.inst is broken
wmaker.inst is broken
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: WindowMaker (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
David Lawrence
:
: 53093 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-30 14:06 EDT by Ben Levenson
Modified: 2007-04-18 12:36 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-09-08 17:19:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ben Levenson 2001-08-30 14:06:49 EDT
Description of Problem:
WindowMaker will not start for first time users due to a syntax error
in wmaker.inst. copy() is broken:
<snip>
copy() {
        source=$1
        target=$2
        file=`basename $source`
        rm -f $target
        if [ "$file" = "WindowMaker" ]; then
                sed -e "s|~/GNUstep|$GSDIR|g" $source > $target
        elif [ "$file" = "WMRootMenu" ]; then
                if [ "$LOCALE" ]; then
                    if [ -f $GLOBALDIR/plmenu.${LOCALE} ]; then
                        source=$GLOBALDIR/plmenu.${LOCALE}
                    if [ -f $GLOBALDIR/plmenu.${LOCALE%_*} ]; then
                        source=$GLOBALDIR/plmenu.${LOCALE%_*}
                    if [ -f $GLOBALDIR/plmenu.${LOCALE%_*.*} ]; then
                        source=$GLOBALDIR/plmenu.${LOCALE%_*.*}
                    elif [ -f $GLOBALDIR/menu.${LOCALE} ]; then
                        source=$GLOBALDIR/menu.${LOCALE}
                    elif [ -f $GLOBALDIR/menu.${LOCALE%_*} ]; then
                        source=$GLOBALDIR/menu.${LOCALE%_*}
                    elif [ -f $GLOBALDIR/menu.${LOCALE%_*.*} ]; then
                        source=$GLOBALDIR/menu.${LOCALE%_*.*}
                    else
                        source=$GLOBALDIR/plmenu
                    fi
                else
                    source=$GLOBALDIR/plmenu
                fi
                sed -e "s:#wmdatadir#:$GLOBALDIR:g" \
                        $source > $GSDIR/Defaults/WMRootMenu
        else
                if test "x$GNUSTEP_USER_ROOT" = "x"; then
                        sed -e "s:#wmdatadir#:$GLOBALDIR:g" \
                                        $source > $target
                else
                        sed -e "s|\$HOME/GNUstep|$GSDIR|g" \
                                -e "s:#wmdatadir#:$GLOBALDIR:g" \
                                        $source > $target
                fi
        fi
}
<snip>


to fix:
    :71,73s/if/elif/
 
Version-Release number of selected component (if applicable):
WindowMaker-0.65.1-2

How Reproducible:
100%
Comment 1 Bill Nottingham 2001-09-03 20:27:44 EDT
*** Bug 53093 has been marked as a duplicate of this bug. ***
Comment 2 Crutcher Dunnavant 2001-09-04 10:22:16 EDT
you're fix is correct, and I introduced this bug.
Thanks.
Comment 3 Chris Ricker 2001-09-08 17:19:07 EDT
This is still broken in RC2 (0.65.1-2).  Is the RawHide fix before or after RC2?
Comment 4 Jeremy Katz 2001-09-08 22:26:47 EDT
After RC2 (WindowMaker-0.65.1-3)

Note You need to log in before you can comment on or make changes to this bug.