From c33f3e281bd27dd38e9ea0adb4809bd7b60efcc8 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 28 Apr 2016 07:00:22 -0700 Subject: [PATCH] cppformat -> fmt --- doc/build.py | 4 ++-- doc/conf.py | 4 ++-- fmt/format.h | 2 +- support/release.py | 12 ++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/build.py b/doc/build.py index 2adb024a..b7992587 100755 --- a/doc/build.py +++ b/doc/build.py @@ -46,7 +46,7 @@ def build_docs(version='dev'): except DistributionNotFound: pass # Install Sphinx and Breathe. - pip_install('cppformat/sphinx', + pip_install('fmtlib/sphinx', '12dde8afdb0a7bb5576e2656692c3478c69d8cc3', check_version='1.4a0.dev-20151013') pip_install('michaeljones/breathe', @@ -55,7 +55,7 @@ def build_docs(version='dev'): cmd = ['doxygen', '-'] p = Popen(cmd, stdin=PIPE) p.communicate(input=r''' - PROJECT_NAME = C++ Format + PROJECT_NAME = fmt GENERATE_LATEX = NO GENERATE_MAN = NO GENERATE_RTF = NO diff --git a/doc/conf.py b/doc/conf.py index d35a2fdf..7af3e481 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -46,7 +46,7 @@ source_suffix = '.rst' #master_doc = 'contents' # General information about the project. -project = u'C++ Format' +project = u'fmt' copyright = u'2012-2015, Victor Zverovich' # The version info for the project you're documenting, acts as replacement for @@ -198,7 +198,7 @@ latex_elements = { # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'format.tex', u'C++ Format Documentation', + ('index', 'format.tex', u'fmt documentation', u'Victor Zverovich', 'manual'), ] diff --git a/fmt/format.h b/fmt/format.h index 438b9e80..54b890c9 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -170,7 +170,7 @@ typedef __int64 intmax_t; # endif #endif -// Define FMT_USE_NOEXCEPT to make C++ Format use noexcept (C++11 feature). +// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature). #ifndef FMT_USE_NOEXCEPT # define FMT_USE_NOEXCEPT 0 #endif diff --git a/support/release.py b/support/release.py index 127f43b9..5a65226e 100755 --- a/support/release.py +++ b/support/release.py @@ -138,7 +138,7 @@ if __name__ == '__main__': run = Runner() fmt_dir = os.path.join(workdir, 'fmt') branch = args.get('', 'master') - run('git', 'clone', '-b', branch, 'git@github.com:cppformat/cppformat.git', fmt_dir) + run('git', 'clone', '-b', branch, 'git@github.com:fmtlib/fmt.git', fmt_dir) # Convert changelog from RST to GitHub-flavored Markdown and get the version. changelog = 'ChangeLog.rst' @@ -170,8 +170,8 @@ if __name__ == '__main__': # Build the docs and package. run('cmake', '.') run('make', 'doc', 'package_source') - site_dir = os.path.join(workdir, 'cppformat.github.io') - run('git', 'clone', 'git@github.com:cppformat/cppformat.github.io.git', site_dir) + site_dir = os.path.join(workdir, 'fmtlib.github.io') + run('git', 'clone', 'git@github.com:fmtlib/fmtlib.github.io.git', site_dir) doc_dir = os.path.join(site_dir, version) shutil.copytree(os.path.join(fmt_dir, 'doc', 'html'), doc_dir, ignore=shutil.ignore_patterns('.doctrees', '.buildinfo')) @@ -181,10 +181,10 @@ if __name__ == '__main__': # Create a release on GitHub. run('git', 'push', 'origin', 'release', cwd=fmt_dir) - r = requests.post('https://api.github.com/repos/cppformat/cppformat/releases', - params={'access_token': os.getenv('CPPFORMAT_TOKEN')}, + r = requests.post('https://api.github.com/repos/fmtlib/fmt/releases', + params={'access_token': os.getenv('FMT_TOKEN')}, data=json.dumps({'tag_name': version, 'target_commitish': 'release', - 'body': changes, 'draft': True})) + 'body': changes, 'draft': True})) if r.status_code != 201: raise Exception('Failed to create a release ' + str(r)) finally: