From 4d4f529c7b67266803614a534bc554cb4797296f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 27 Feb 2018 14:59:34 -0800 Subject: [PATCH] set-version.php - Update civicrm-version.php (if applicable) Currently, this file is produced by GenCode, so it's not critical to update it via `set-version.php`. However, it's a bit easier to test the process if this file is kept up-to-date. In the near future, this file may be reworked to read from the canonical source. However, the search/replace should still be safe then. --- tools/bin/scripts/set-version.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/bin/scripts/set-version.php b/tools/bin/scripts/set-version.php index 8cde6c636d..e20f4a7fa9 100755 --- a/tools/bin/scripts/set-version.php +++ b/tools/bin/scripts/set-version.php @@ -61,6 +61,10 @@ updateFile("xml/version.xml", function ($content) use ($newVersion, $oldVersion) return str_replace($oldVersion, $newVersion, $content); }); +updateFile("civicrm-version.php", function ($content) use ($newVersion, $oldVersion) { + return str_replace($oldVersion, $newVersion, $content); +}); + updateFile("sql/civicrm_generated.mysql", function ($content) use ($newVersion, $oldVersion) { return str_replace($oldVersion, $newVersion, $content); }); -- 2.25.1