Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  6 Sep 2002 12:16:11 +0100 (BST)
From:      Bruce M Simpson <bms@spc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42474: New port: x11/wmoldmenu2new: convert WindowMaker menu formats
Message-ID:  <20020906111611.2ACF996B1@triage.dollah.com>

next in thread | raw e-mail | index | archive | help

>Number:         42474
>Category:       ports
>Synopsis:       New port: x11/wmoldmenu2new: convert WindowMaker menu formats
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 06 04:20:07 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bruce M Simpson
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD triage.dollah.com 4.6-STABLE FreeBSD 4.6-STABLE #2: Wed Sep 4 18:52:52 BST 2002 root@triage.dollah.com:/usr/src/sys/compile/TRIAGE i386


	
>Description:
	This is a port of a script to convert the old WindowMaker menu 
	format to the new one, which allows you to edit it with the WMPrefs
	utility.
>How-To-Repeat:
	
>Fix:

	

--- wmoldmenu2new.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wmoldmenu2new
#	wmoldmenu2new/Makefile
#	wmoldmenu2new/distinfo
#	wmoldmenu2new/pkg-comment
#	wmoldmenu2new/pkg-descr
#	wmoldmenu2new/pkg-plist
#	wmoldmenu2new/files
#	wmoldmenu2new/files/patch-wmoldmenu2new
#
echo c - wmoldmenu2new
mkdir -p wmoldmenu2new > /dev/null 2>&1
echo x - wmoldmenu2new/Makefile
sed 's/^X//' >wmoldmenu2new/Makefile << 'END-of-wmoldmenu2new/Makefile'
X# New ports collection makefile for:	wm-oldmenu2new.gz
X# Date created:		6 September 2002
X# Whom:			Bruce M Simpson <bms@spc.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wmoldmenu2new
XPORTVERSION=	20020609
XCATEGORIES=	x11
XMASTER_SITES=	http://largo.windowmaker.org/files/
XDISTNAME=	wm-oldmenu2new
XEXTRACT_SUFX=	.gz
X
XMAINTAINER=	bms@spc.org
X
XUSE_X_PREFIX=	yes
XNO_BUILD=	yes
XNO_WRKSUBDIR=	yes
XEXTRACT_AFTER_ARGS=	> ${PORTNAME}
X
XNOMAN=		# defined
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-wmoldmenu2new/Makefile
echo x - wmoldmenu2new/distinfo
sed 's/^X//' >wmoldmenu2new/distinfo << 'END-of-wmoldmenu2new/distinfo'
XMD5 (wm-oldmenu2new.gz) = 3786e5754904cd2e59c3263482e662d5
END-of-wmoldmenu2new/distinfo
echo x - wmoldmenu2new/pkg-comment
sed 's/^X//' >wmoldmenu2new/pkg-comment << 'END-of-wmoldmenu2new/pkg-comment'
XScript to convert WindowMaker RootMenu menus to new PropList format
END-of-wmoldmenu2new/pkg-comment
echo x - wmoldmenu2new/pkg-descr
sed 's/^X//' >wmoldmenu2new/pkg-descr << 'END-of-wmoldmenu2new/pkg-descr'
XFrom the web site:
X
X* wm-oldmenu2new is a script to convert from old-style Window Maker menu
X  file to the new PropertyList style of the WMRootMenu for use with WPrefs.
X
X  Thanks to Luke Kendall and Toby J Sargeant.
X
XNote that this script has to be run from within your home directory.
XOnce you've done this, you should be able to click 'Yes, Discard and Update'
Xwithin WMPrefs' Menu page to switch to the new PropList menu format.
X
XWWW: http://largo.windowmaker.org/files.php#wm-oldmenu2new
X
XBruce
Xbms@spc.org
END-of-wmoldmenu2new/pkg-descr
echo x - wmoldmenu2new/pkg-plist
sed 's/^X//' >wmoldmenu2new/pkg-plist << 'END-of-wmoldmenu2new/pkg-plist'
Xbin/wmoldmenu2new
END-of-wmoldmenu2new/pkg-plist
echo c - wmoldmenu2new/files
mkdir -p wmoldmenu2new/files > /dev/null 2>&1
echo x - wmoldmenu2new/files/patch-wmoldmenu2new
sed 's/^X//' >wmoldmenu2new/files/patch-wmoldmenu2new << 'END-of-wmoldmenu2new/files/patch-wmoldmenu2new'
X--- wmoldmenu2new.orig	Fri Sep  6 12:07:25 2002
X+++ wmoldmenu2new	Fri Sep  6 12:07:34 2002
X@@ -95,7 +95,7 @@
X #
X # Given the set -e, the exit 1 shouldn't be needed.  But it is, on my NeXT!
X #
X-$CC -E -I. $T-c > $T+c || exit 1
X+$CC -E -I. -x c $T-c > $T+c || exit 1
X sed '/^#/d;/^[ 	]*$/d' $T+c > $T
X rm $T-c $T+c
X set +e
END-of-wmoldmenu2new/files/patch-wmoldmenu2new
exit
--- wmoldmenu2new.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020906111611.2ACF996B1>