diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-02-04 10:53:05 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-02-04 16:11:40 -0700 |
commit | bbf49fcad1ac5029ab31235e90235c6161ea41ba (patch) | |
tree | b30b07685d414b08d1eb17eb05d524b493baff0e /tools | |
parent | cceb8f6dd11633cedfcc84c4498a887a4dbc056f (diff) | |
download | numpy-bbf49fcad1ac5029ab31235e90235c6161ea41ba.tar.gz |
DOC: clarify numpy version for removal, document sed script better.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/replace_old_macros.sed | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/replace_old_macros.sed b/tools/replace_old_macros.sed index 5d408adfb..d8f10909a 100644 --- a/tools/replace_old_macros.sed +++ b/tools/replace_old_macros.sed @@ -1,5 +1,15 @@ # Replaces the macros in old_defines.h by current versions -# Can be run as sed -i -f replace_old_macros.sed <file-paths> +# Can be run as +# +# sed -i -f replace_old_macros.sed <file-paths> +# +# or +# +# find . -name '*.[c,h]' -exec sed -i -f replace_old_macros.sed {} + ; +# +# This script is pretty reliable, but the diff should still +# be checked after running it to make sure that nothing untoward +# went down. s/\bNDARRAY_VERSION\b/NPY_VERSION/g s/\bPyArray_MIN_BUFSIZE\b/NPY_MIN_BUFSIZE/g s/\bPyArray_MAX_BUFSIZE\b/NPY_MAX_BUFSIZE/g |