1#!/bin/sh -e 2# 3# This directory contains the source code for libmemcached that we will build and link to. 4# 5# In future it may also contain source to memcached so we can be sure to have one available for running tests. 6# 7# TO UPGRADE TO A NEW libmemcached RELEASE: 8# 9# ./README 0.45 10# 11v=${1?Specify the version to use as an argument, e.g., 0.45} 12rm -f libmemcached-$v.tar.gz 13wget --no-check-certificate https://launchpad.net/libmemcached/1.0/$v/+download/libmemcached-$v.tar.gz 14rm -rf libmemcached 15tar xfz libmemcached-$v.tar.gz 16mv libmemcached-$v libmemcached 17# 18# Note that libmemcached.patch is targeted to libmemcached version 1.0.18. 19# The patches to memflush.cc and byteorder.cc fixed compilation failures 20# on MacOSX, and may not apply to future releases of libmemcached. 21# 22patch -p2 < libmemcached.patch 23# 24git add -u libmemcached # notice deleted files 25git add libmemcached # notice added files 26(cd .. && perl -MExtUtils::Manifest=mkmanifest -e mkmanifest) 27