Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Generate the memcached.spec along with the version number.

  • Loading branch information...
commit 4f5679356a2f98ffeb905840f28b2bc5a1498293 1 parent 483e82a
@dustin dustin authored dormando committed
View
1  .gitignore
@@ -38,3 +38,4 @@ doc/protocol-binary.txt
/testapp
/timedrun
/doc/doxy
+/memcached.spec
View
5 memcached.spec → 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
View
3  version.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.