Skip to main content

Reinout's installable copy of pypy's fixeol script

Project description

EOL fixer script

What the script does

The script goes through a directory structure and fixes non-native EOL endings in non-binary files. So the windows line endings are gone if you work on linux (and probably vice versa, though I didn’t try).

Numerous people forget to set native EOL line endings by default in their main svn config file (see zope’s svn explanation why this is something you need to do).

The script sets the related svn property eol-style to native when not set yet.

History and origin

Original script (and thus 99% of the functionality) is from Holger Krekel from the pypy project.

A couple of years ago I got a script from Guido Wesdorp for cleaning up EOL styles in svn. I’ve long kept a private (modified) copy of that file and only later found out that it was from the pypy project: http://codespeak.net/pypy/dist/pypy/tool/fixeol .

Some changes to the original script:

  • Couple of extra file extensions that are checked (like .zcml and .ini files and also _tmpl files like in paster skeletons).

  • Some code cleanup and optimisation.

  • Added a setup.py and a console_scripts entry point to make it easy_installable.

Changelog

1.0.1 (2009-11-25)

  • Added MANIFEST.in to fix source distribution on pypi.

  • Updated readme, acknowledging Holger Krekel as original author after asking around on #pypy in irc.

0.1 (2009-11-25)

  • Cleaned up my copy of the original fixeol script and made it easy_installable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eolfixer-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file eolfixer-1.0.1.tar.gz.

File metadata

  • Download URL: eolfixer-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eolfixer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cd7aae1b7da5de6961bbc4a65107e77a8b9c50474fbf29d55efaac74ffad4986
MD5 1a4d09f7d802ef0404752784b6b6da7a
BLAKE2b-256 13a5b458a758b79bb4fb85d8929eedbfe85ba968d18752f38606ada5440e9089

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page