From owner-freebsd-ports Fri Sep 6 4:20:27 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 466B937B41B for ; Fri, 6 Sep 2002 04:20:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BDA543E72 for ; Fri, 6 Sep 2002 04:20:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g86BK8JU034844 for ; Fri, 6 Sep 2002 04:20:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g86BK8lp034843; Fri, 6 Sep 2002 04:20:08 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0D7437B400 for ; Fri, 6 Sep 2002 04:16:17 -0700 (PDT) Received: from bigboy.spc.org (dolly.good1.com [195.206.69.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96EA443E4A for ; Fri, 6 Sep 2002 04:16:16 -0700 (PDT) (envelope-from bms@spc.org) Message-Id: <20020906111611.2ACF996B1@triage.dollah.com> Date: Fri, 6 Sep 2002 12:16:11 +0100 (BST) From: Bruce M Simpson Reply-To: Bruce M Simpson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42474: New port: x11/wmoldmenu2new: convert WindowMaker menu formats Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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 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