diff options
| -rw-r--r-- | CONTRIBUTING.md | 5 | ||||
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | src/php_snuffleupagus.h | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cf8d7e5..13130f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md | |||
| @@ -120,7 +120,7 @@ Any maintainer is allowed to merge a PR if all of these conditions are met. | |||
| 120 | Maintainers need to do the following to push out a release: | 120 | Maintainers need to do the following to push out a release: |
| 121 | 121 | ||
| 122 | 1. Make sure that all pending and mergeable pull requests are in | 122 | 1. Make sure that all pending and mergeable pull requests are in |
| 123 | 2. Update the `snuffleupagus.h` file with the new version number | 123 | 2. Update the `snuffleupagus.h` file: drop the -dev suffix and check new version comply with [semantic versioning](https://semver.org/) |
| 124 | 3. Update the changelog page in the documentation | 124 | 3. Update the changelog page in the documentation |
| 125 | 4. Update the Debian changelog in ./debian/changelog with `dch` | 125 | 4. Update the Debian changelog in ./debian/changelog with `dch` |
| 126 | 5. Create a tag for the release: | 126 | 5. Create a tag for the release: |
| @@ -136,4 +136,5 @@ Maintainers need to do the following to push out a release: | |||
| 136 | ``` | 136 | ``` |
| 137 | 137 | ||
| 138 | 6. Create the [release on github](https://github.com/nbs-system/snuffleupagus/releases) | 138 | 6. Create the [release on github](https://github.com/nbs-system/snuffleupagus/releases) |
| 139 | 7. Do the *secret release dance* | 139 | 7. Update the `snuffleupagus.h` file: bump the version 3rd digit and add the -dev suffix |
| 140 | 8. Do the *secret release dance* | ||
| @@ -6,7 +6,6 @@ clean: ## clean everything | |||
| 6 | cd src; phpize --clean | 6 | cd src; phpize --clean |
| 7 | 7 | ||
| 8 | release: ## compile with releases flags | 8 | release: ## compile with releases flags |
| 9 | sed -i "s/#define PHP_SNUFFLEUPAGUS_COMMIT \"\"/#define PHP_SNUFFLEUPAGUS_COMMIT \"($$(git log --pretty=format:'%h' -n 1))\"/" ./src/php_snuffleupagus.h | ||
| 10 | cd src; phpize | 9 | cd src; phpize |
| 11 | cd src; ./configure --enable-snuffleupagus | 10 | cd src; ./configure --enable-snuffleupagus |
| 12 | make -C src | 11 | make -C src |
diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index eea1c9e..95f271d 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | #ifndef PHP_SNUFFLEUPAGUS_H | 1 | #ifndef PHP_SNUFFLEUPAGUS_H |
| 2 | #define PHP_SNUFFLEUPAGUS_H | 2 | #define PHP_SNUFFLEUPAGUS_H |
| 3 | 3 | ||
| 4 | #define PHP_SNUFFLEUPAGUS_COMMIT "" | 4 | #define PHP_SNUFFLEUPAGUS_VERSION "0.2.1-dev" |
| 5 | #define PHP_SNUFFLEUPAGUS_VERSION "0.2 " PHP_SNUFFLEUPAGUS_COMMIT | ||
| 6 | #define PHP_SNUFFLEUPAGUS_EXTNAME "snuffleupagus" | 5 | #define PHP_SNUFFLEUPAGUS_EXTNAME "snuffleupagus" |
| 7 | #define PHP_SNUFFLEUPAGUS_AUTHOR "NBS System" | 6 | #define PHP_SNUFFLEUPAGUS_AUTHOR "NBS System" |
| 8 | #define PHP_SNUFFLEUPAGUS_URL "https://github.com/nbs-system/snuffleupagus" | 7 | #define PHP_SNUFFLEUPAGUS_URL "https://github.com/nbs-system/snuffleupagus" |
