Gnus development mailing list
 help / color / mirror / Atom feed
* [patch] make-x.bat and directory-structure
@ 2001-10-18 21:55 Frank Schmitt
  2001-10-18 22:54 ` Frank Schmitt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Frank Schmitt @ 2001-10-18 21:55 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix for make-x.bat --]
[-- Type: text/x-patch, Size: 2346 bytes --]

--- 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.


[-- Attachment #3: Type: text/plain, Size: 406 bytes --]

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] make-x.bat and directory-structure
  2001-10-18 21:55 [patch] make-x.bat and directory-structure Frank Schmitt
@ 2001-10-18 22:54 ` Frank Schmitt
  2001-10-18 23:08 ` Display bug (Was: Re: [patch] make-x.bat and directory-structure) Jesper Harder
  2001-10-19 11:35 ` [patch] make-x.bat and directory-structure Kai Großjohann
  2 siblings, 0 replies; 5+ messages in thread
From: Frank Schmitt @ 2001-10-18 22:54 UTC (permalink / raw)


Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:

Damned, somehow gnus did cut off some lines between the patch and the
text. No idea why. Before C-c C-c it was this:

I suggest that make-x.bat is renamed to 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Display bug (Was: Re: [patch] make-x.bat and directory-structure)
  2001-10-18 21:55 [patch] make-x.bat and directory-structure Frank Schmitt
  2001-10-18 22:54 ` Frank Schmitt
@ 2001-10-18 23:08 ` Jesper Harder
  2001-10-19  9:13   ` Kai Großjohann
  2001-10-19 11:35 ` [patch] make-x.bat and directory-structure Kai Großjohann
  2 siblings, 1 reply; 5+ messages in thread
From: Jesper Harder @ 2001-10-18 23:08 UTC (permalink / raw)


This is how my Gnus displays Frank's message:

,----
| From: usereplyto@Frank-Schmitt.net (Frank Schmitt)
| Subject: [patch] make-x.bat and directory-structure
| Newsgroups: emacs.ding
| Date: Fri Oct 19 00:20:07 2001 +0200
| 
| 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:
| [2. Fix for make-x.bat --- text/x-patch; make-x.diff]...
| 
| 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
`----

i.e. Gnus hides these two lines after the patch:

,----
| 
| Further on I suggest to rename the file to something like make-xemacs.bat
| and make.bat to make-emacs.bat.
| 
`----





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Display bug (Was: Re: [patch] make-x.bat and directory-structure)
  2001-10-18 23:08 ` Display bug (Was: Re: [patch] make-x.bat and directory-structure) Jesper Harder
@ 2001-10-19  9:13   ` Kai Großjohann
  0 siblings, 0 replies; 5+ messages in thread
From: Kai Großjohann @ 2001-10-19  9:13 UTC (permalink / raw)
  Cc: ding

Jesper Harder <harder@ifa.au.dk> writes:

> i.e. Gnus hides these two lines after the patch:

That's because the original message is missing an empty line before
the MIME separator.

Normally, the structure is like this:

/----
| <MIME separator>
| Content-type: foo
| Other-header: bar
| 
| data
\----

It's not necessary for the headers to be there, then it looks like
this:

/----
| <MIME separator>
| 
| data
\----

Note how the empty line is missing in Frank's message, and also note
how everything up to the first empty line after the MIME separator was
interpreted as the header, and thus hidden.

I don't know why the empty line is missing, though.

kai
-- 
GNU/Linux provides a nice `poweroff' command, but where is `poweron'?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] make-x.bat and directory-structure
  2001-10-18 21:55 [patch] make-x.bat and directory-structure Frank Schmitt
  2001-10-18 22:54 ` Frank Schmitt
  2001-10-18 23:08 ` Display bug (Was: Re: [patch] make-x.bat and directory-structure) Jesper Harder
@ 2001-10-19 11:35 ` Kai Großjohann
  2 siblings, 0 replies; 5+ messages in thread
From: Kai Großjohann @ 2001-10-19 11:35 UTC (permalink / raw)
  Cc: ding

Sadly, I can't apply this patch.  Could you try to make another diff
and uuencode or base64 encode it before sending?  I think there is
some trouble with newlines -- every second line is empty.  And even if
I delete the empty lines, the patch does not apply :-(

kai
-- 
GNU/Linux provides a nice `poweroff' command, but where is `poweron'?



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-19 11:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-18 21:55 [patch] make-x.bat and directory-structure Frank Schmitt
2001-10-18 22:54 ` Frank Schmitt
2001-10-18 23:08 ` Display bug (Was: Re: [patch] make-x.bat and directory-structure) Jesper Harder
2001-10-19  9:13   ` Kai Großjohann
2001-10-19 11:35 ` [patch] make-x.bat and directory-structure Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).