Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

help with patching nethack [solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
qleak
n00b
n00b
User avatar
Posts: 67
Joined: Fri Jun 17, 2005 7:35 pm

help with patching nethack [solved]

  • Quote

Post by qleak » Wed Dec 06, 2006 8:44 pm

Hi,

I'm thinking of setting up a nethack tournament among some friends over our upcoming break. To do this we want dump files of the endgame. In particular I'm trying to patch the source with the patch from here:

http://nethack-users.sourceforge.jp/htmldump/

The only patches that don't fail are new files.

It looks like the patch file is populated with a bunch of ^M characters not contained in the source.

What's the easiest way to remove these and hopefully have the patch work?

Thanks

-Q
Last edited by qleak on Wed Dec 06, 2006 9:11 pm, edited 1 time in total.
(\ /)
(O.o)
(> <)
This is Frank. He made me flood the school.
Top
Brainfart
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 123
Joined: Tue Mar 14, 2006 9:54 pm
Location: Redmond, WA, USA

  • Quote

Post by Brainfart » Wed Dec 06, 2006 9:09 pm

sed maybe? something along the lines of s/^M//
Top
qleak
n00b
n00b
User avatar
Posts: 67
Joined: Fri Jun 17, 2005 7:35 pm

  • Quote

Post by qleak » Wed Dec 06, 2006 9:10 pm

Okay.. I found a way to fix it

emerge fixdos
crlf Nethack-3.4.3-htmldump-0.3.diff
(\ /)
(O.o)
(> <)
This is Frank. He made me flood the school.
Top
qleak
n00b
n00b
User avatar
Posts: 67
Joined: Fri Jun 17, 2005 7:35 pm

  • Quote

Post by qleak » Wed Dec 06, 2006 9:11 pm

Brainfart wrote:sed maybe? something along the lines of s/^M//
yeah.. I just tried that before I found an easier way. Apparently there are more characters garbled than just the ^M.. :-/


thanks anyway :-)

cheers

-Q
(\ /)
(O.o)
(> <)
This is Frank. He made me flood the school.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic