diff options
author | Dustin Sallings <dustin@spy.net> | 2009-08-23 01:01:50 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2009-08-29 15:34:00 -0700 |
commit | 4f5679356a2f98ffeb905840f28b2bc5a1498293 (patch) | |
tree | 3d5c5c31c55c04ac5d0b56b37550595ad5715fe9 | |
parent | 483e82adc89c984cbe040857d9cf43fc725883cd (diff) | |
download | memcached-4f5679356a2f98ffeb905840f28b2bc5a1498293.tar.gz |
Generate the memcached.spec along with the version number.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | memcached.spec.in (renamed from memcached.spec) | 5 | ||||
-rwxr-xr-x | version.sh | 3 |
3 files changed, 7 insertions, 2 deletions
@@ -38,3 +38,4 @@ doc/protocol-binary.txt /testapp /timedrun /doc/doxy +/memcached.spec diff --git a/memcached.spec b/memcached.spec.in index 481555e..4683527 100644 --- a/memcached.spec +++ b/memcached.spec.in @@ -1,5 +1,5 @@ Name: memcached -Version: 1.3.2 +Version: @VERSION@ Release: 1%{?dist} Summary: High Performance, Distributed Memory Object Cache @@ -93,6 +93,9 @@ exit 0 %changelog +* Sat Aug 29 2009 Dustin Sallings <dustin@spy.net> - 1.4.1-1 +- Autogenerate the version number from tags. + * Wed Jul 4 2007 Paul Lindner <lindner@inuus.com> - 1.2.2-5 - Use /var/run/memcached/ directory to hold PID file @@ -1,10 +1,11 @@ #!/bin/sh -if git describe > version.num.tmp +if git describe | sed s/-/_/g > version.num.tmp then mv version.num.tmp version.num echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.num`])" \ > version.m4 + sed s/@VERSION@/`cat version.num`/ < memcached.spec.in > memcached.spec else rm version.num.tmp fi |