Permalink
Browse files

Generate the memcached.spec along with the version number.

  • Loading branch information...
1 parent 483e82a commit 4f5679356a2f98ffeb905840f28b2bc5a1498293 @dustin dustin committed with dormando Aug 23, 2009
Showing with 7 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +4 −1 memcached.spec → memcached.spec.in
  3. +2 −1 version.sh
View
@@ -38,3 +38,4 @@ doc/protocol-binary.txt
/testapp
/timedrun
/doc/doxy
+/memcached.spec
@@ -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
View
@@ -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

0 comments on commit 4f56793

Please sign in to comment.