Skip to content

Commit

Permalink
set-version.php - Update civicrm-version.php (if applicable)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
totten committed Feb 27, 2018
1 parent 337dc87 commit 4d4f529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/bin/scripts/set-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
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);
});
Expand Down

0 comments on commit 4d4f529

Please sign in to comment.