This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SQLObject development repository".
The branch, master has been updated
via d1177e2f2833a0a5d5f389a25ee7f9af020a9069 (commit)
from 4c812a1f79509ff84d254d253aabdac7747d4c1b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/sqlobject/sqlobject/ci/d1177e2f2833a0a5d5f389a25ee7f9af020a9069
commit d1177e2f2833a0a5d5f389a25ee7f9af020a9069
Author: Oleg Broytman <ph...@ph...>
Date: Sat May 20 16:19:29 2017 +0300
Feat(devscripts): Use sed --in-place instead of replace
[skip ci]
diff --git a/devscripts/branch b/devscripts/branch
index 38ca214..908e5fb 100755
--- a/devscripts/branch
+++ b/devscripts/branch
@@ -45,8 +45,8 @@ version_info = (major, minor, micro, release_level, serial)" > sqlobject/__versi
`git var GIT_EDITOR` README.rst sqlobject/__version__.py docs/News.rst appveyor.yml setup.py &&
git commit --message="Next branch will be $major.$next_minor" README.rst sqlobject/__version__.py docs/News.rst setup.py &&
- exec ./replace "$major\.$minor" "$major.$next_minor" ANNOUNCE.rst
+ exec sed -i /"$major\.$minor"/"$major.$next_minor"/ ANNOUNCE.rst
else
- exec ./replace "$prev_branch" "$major.$next_minor" ANNOUNCE.rst
+ exec sed -i /"$prev_branch"/"$major.$next_minor"/ ANNOUNCE.rst
fi
diff --git a/devscripts/replace b/devscripts/replace
deleted file mode 100755
index 8ff7124..0000000
--- a/devscripts/replace
+++ /dev/null
@@ -1,26 +0,0 @@
-#! /usr/bin/env python
-
-import sys
-
-if len(sys.argv) < 4:
- sys.stderr.write("Usage: %s [-i] from_re to_re file....\n" % sys.argv[0])
- sys.exit(1)
-
-import re
-if sys.argv[1] == '-i':
- search = re.compile(sys.argv[2], re.IGNORECASE)
- replace = sys.argv[3]
- start = 4
-else:
- search = re.compile(sys.argv[1])
- replace = sys.argv[2]
- start = 3
-
-from fileinput import FileInput
-files = FileInput(sys.argv[start:], inplace=1)
-
-for line in files:
- line = search.sub(replace, line)
- sys.stdout.write(line)
-
-files.close()
-----------------------------------------------------------------------
Summary of changes:
devscripts/branch | 4 ++--
devscripts/replace | 26 --------------------------
2 files changed, 2 insertions(+), 28 deletions(-)
delete mode 100755 devscripts/replace
hooks/post-receive
--
SQLObject development repository
|