Skip to content

maidis/msfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msfa Build Status

msfa loosely base on Nettention's ChangeIncludeHeaderBackslashToSlash and this Perl one-liner:

perl -i.bak -pe 'tr!\\!/! if /^\s*#\s*include\b/' *.cpp

If you don't have Perl:

find .  -type f -name \* | xargs grep '#include' | grep '\\' |awk -F: '{print $1}'|sort| uniq | xargs -n1 perl -i.bak -pe 'tr!\\!/! if /^\s*#\s*include\b/'

This tool changes backslash symbol \ to slash symbol / in your C or C++ include header file statements. For example:

#include <SFML\Graphics.hpp>

will be changed to:

#include <SFML/Graphics.hpp>

This tool works all C/C++ source files in the directory you specify.

Usage

msfa <your directory> <your file extensions>

Example:

msfa /home/maidis/BattleCity-master/ cpp,h

About

make slashes forward again

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published