Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update bump-version script

  • Loading branch information...
commit c818896e24f5a57704baa8d8466187cb785b172b 1 parent 36efabd
Jimmy Tang authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 bump-version
View
9 bump-version
@@ -9,14 +9,21 @@ if [ $# -ne 1 ]; then
fi
if ! sed 's/^Version:.*$/Version: '$1'/g' php-slurm.spec > .php-slurm.spec.new; then
- echo "Could not replace PHPSLURM_VERSION variable." >&2
+ echo "Could not replace Version variable." >&2
exit 2
fi
mv .php-slurm.spec.new php-slurm.spec
+if ! sed 's/^#define SLURM_PHP_VERSION.*$/#define SLURM_PHP_VERSION "'$1'"/g' slurm_php.h > .slurm_php.h.new; then
+ echo "Could not replace SLURM_PHP_VERSION variable." >&2
+ exit 2
+fi
+mv .slurm_php.h.new slurm_php.h
+
echo php-slurm-$1 > VERSION
git add VERSION
git add php-slurm.spec
+git add slurm_php.h
git commit -m "Bumped version number to $1"
Please sign in to comment.
Something went wrong with that request. Please try again.