From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39425 Path: main.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.general Subject: [patch] make-x.bat and directory-structure Date: Thu, 18 Oct 2001 23:55:37 +0200 Organization: Hamme net, kren mer och nimmi Sender: owner-ding@hpc.uh.edu Message-ID: Reply-To: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035175131 27765 80.91.224.250 (21 Oct 2002 04:38:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:38:51 +0000 (UTC) Return-Path: Original-Received: (qmail 10584 invoked from network); 18 Oct 2001 22:19:43 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 18 Oct 2001 22:19:43 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15uLUp-0005rQ-00; Thu, 18 Oct 2001 17:18:35 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 18 Oct 2001 17:18:12 -0500 (CDT) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA09856 for ; Thu, 18 Oct 2001 17:18:05 -0500 (CDT) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id f9IMIM431785 for ding@hpc.uh.edu; Thu, 18 Oct 2001 17:18:22 -0500 Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA09732 for ; Thu, 18 Oct 2001 16:53:53 -0500 (CDT) Original-Received: (qmail 10011 invoked by alias); 18 Oct 2001 21:54:00 -0000 Original-Received: (qmail 10003 invoked from network); 18 Oct 2001 21:54:00 -0000 Original-Received: from quimby.gnus.org (195.204.10.139) by gnus.org with SMTP; 18 Oct 2001 21:54:00 -0000 Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id XAA01719 for ding@gnus.org; Thu, 18 Oct 2001 23:53:56 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 172 Original-NNTP-Posting-Host: pppin16.max-hochsimmer.rz-online.net Original-X-Trace: quimby.gnus.org 1003442036 13541 212.7.169.16 (18 Oct 2001 21:53:56 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 18 Oct 2001 21:53:56 GMT User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor) Hamster/1.3.23.0 X-Face: "?Hv7MyYveeGDm66,O\f[l6!L*,`Q)c&3'8{9UGIM`EO8<3ASfX`8}W+u;F},&V%/y+cz(z&spQ(`CkKzCJY/@0R]aM#[W7*$(,QA-oO0f}Z2S0Y0~b5}|XDhQds[9}=t$Hf%G2c;zR%;$"~eI+dw3Gy!xKw=oduK(-, Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39425 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39425 --=-=-= If you installed XEmacs via the setup.exe, (You see I'm talking about M$ Windows.) the gnus lisp-files are installed in %emacs-working-dir%/../../xemacs-packages/lisp/gnus but the make-x.bat copies the files to %emacs-working-dir%/../lisp/gnus This directory will not exist and therefor it will fail. The same for the info and etc files. The following patch fixes this and reduces the number of arguments for the batch file: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=make-x.diff Content-Description: Fix for make-x.bat --- make-x.bat Thu Oct 18 21:40:58 2001 +++ make-x.bat.old Thu Oct 18 21:31:40 2001 @@ -1,5 +1,6 @@ -@echo off +rem @echo off +rem Modified once more by Frank Schmitt (ich@Frank-Schmitt.net) rem Modified by ShengHuo Zhu (zsh@cs.rochester.edu) rem Originally from make.bat by David Charlap (shamino@writeme.com) rem @@ -9,43 +10,41 @@ set PWD= if "%1" == "" goto usage -if "%2" == "" goto usage set emacs=xemacs.exe cd lisp -call %1\%2\%emacs% -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-compile -if not "%3" == "copy" goto info -attrib -r %1\lisp\gnus\* -copy *.el* %1\lisp\gnus +call %1\%emacs% -batch -nw -q -no-site-file -l ./dgnushack.el -f dgnushack-compile +if not "%2" == "copy" goto info +attrib -r %1\..\..\xemacs-packages\lisp\gnus\*.* +copy *.el* %1\..\..\xemacs-packages\lisp\gnus :info -set EMACSINFO=call %1\%2\%emacs% -no-site-file -no-init-file -batch -q -l infohack.el -f batch-makeinfo +set EMACSINFO=call %1\%emacs% -no-site-file -no-init-file -batch -nw -q -l infohack.el -f batch-makeinfo cd ..\texi %EMACSINFO% message.texi %EMACSINFO% emacs-mime.texi %EMACSINFO% gnus.texi -if not "%3" == "copy" goto done -copy gnus %1\info -copy gnus-?? %1\info -copy message %1\info -copy emacs-mime %1\info +if not "%2" == "copy" goto done +copy gnus %1\..\..\xemacs-packages\info +copy gnus-?? %1\..\..\xemacs-packages\info +copy message %1\..\..\xemacs-packages\info +copy emacs-mime %1\..\..\xemacs-packages\info :etc cd ..\etc -copy gnus-tut.txt %1\etc +copy gnus-tut.txt %1\..\..\xemacs-packages\etc :done cd .. goto end :usage -echo Usage: make :xemacs-dir: :xemacs-arch: [copy] +echo Usage: make :xemacs-dir: [copy] echo. -echo where: :xemacs-dir: is the directory you installed xemacs in -echo eg. C:\Progra~1\XEmacs\XEmacs-21.4.3 -echo :xemacs-arch: is the xemacs architecture you installed -echo eg. i586-pc-win32 +echo where: :xemacs-dir: is the directory you installed xemacs in +echo (the directory where xemacs.exe is situated) +echo eg. C:\Programme\XEmacs\XEmacs-21.4.3\i586-pc-win32 echo copy indicates that the compiled files should be copied to your echo emacs lisp, info, and etc directories echo. --=-=-= Further on I suggest to rename the file to something like make-xemacs.bat and make.bat to make-emacs.bat. Make-x.bat sounds as if it had something to do with a X-server and long filenames shouldn't be a problem since many files in the lisp dir have more than 8+3 characters, so it there's no harm if those two have long filenames, too. -- One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them In the Land of Mordor where the Shadows lie. 19. Dezember 2001 --=-=-=--