Wed, 18 Mar 2009 14:28:23 -0700  Google Inc. <opensource@google.com>

  * Issue #14: HashedDictionary may free memory twice if implicitly copied.
    * Add private copy constructor and assignment operator for HashedDictionary.
  * Issue #18: Building RPM package fails on Fedora 9: Installed (but
    unpackaged) file vcdiff.1.gz.
    * Some OS, including Fedora 9, automatically compress man pages that are
      installed using /usr/bin/install.  This confuses the RPM packager, which
      expects a file named "vcdiff.1" and finds one named "vcdiff.1.gz" instead.
      Use a wild-card character to accept either of these two alternatives.
  * Change the VCDIFF block size to 16, but have the encoder discard all matches
    smaller than 32 bytes.  This doubles the CPU and memory needed by the
    encoder, but finds better string matches, producing a more efficient
    encoding.  Loosen the timing test limit in blockhash_test.cc for the debug
    build only.
  * Make the code table writer a virtual interface.
  * Add an interface SetTargetMatching() to the simple encoder class
    VCDEncoder.
  * Remove all references to LOG and logging.h from the unit tests and
    command-line client.
  * Remove all special cases for kBlockSize < 4.  kBlockSize must be a multiple
    of the machine word size (see blockhash.cc), so it will never be smaller
    than 4.
  * Use version 1.10 of Automake.
  * Incorporate recent changes to gflags package
    (http://code.google.com/p/google-gflags/)
  * Fix Visual Studio type-mismatch warning in vcdecoder4_test.cc.
  * Use address cache helper functions IsSameMode(), IsHereMode(), etc. to
    simplify test code.
  * Add contributor's name to THANKS file.


git-svn-id: http://open-vcdiff.googlecode.com/svn/trunk@23 132ac840-3546-0410-a738-d3f8764196be
diff --git a/packages/deb.sh b/packages/deb.sh
index ced98fa..31b423c 100755
--- a/packages/deb.sh
+++ b/packages/deb.sh
@@ -12,6 +12,7 @@
 #LIB=lib
 
 PACKAGE="$1"
+VERSION="$2"
 
 # We can only build Debian packages, if the Debian build tools are installed
 if [ \! -x /usr/bin/debuild ]; then
@@ -30,7 +31,8 @@
 topdir="${PWD%/*}"
 
 # Find the tar archive built by "make dist"
-archive="$(basename "$(ls -1 ${topdir}/$PACKAGE*.tar.gz | tail -n 1)" .tar.gz)"
+archive="${PACKAGE}-${VERSION}"
+archive_with_underscore="${PACKAGE}_${VERSION}"
 if [ -z "${archive}" ]; then
   echo "Cannot find ../$PACKAGE*.tar.gz. Run \"make dist\" first." 1>&2
   exit 0
@@ -48,11 +50,13 @@
 # packages to the parent of the source directory. We accommodate these
 # requirements by building directly from the tar file.
 ln -s "${topdir}/${archive}.tar.gz" "${LIB}${archive}.orig.tar.gz"
+# Some version of debuilder want foo.orig.tar.gz with _ between versions.
+ln -s "${topdir}/${archive}.tar.gz" "${LIB}${archive_with_underscore}.orig.tar.gz"
 tar zfx "${LIB}${archive}.orig.tar.gz"
 [ -n "${LIB}" ] && mv "${archive}" "${LIB}${archive}"
 cd "${LIB}${archive}"
 # This is one of those 'specific requirements': where the deb control files live
-ln -s "packages/deb" "debian"
+cp -a "packages/deb" "debian"
 
 # Now, we can call Debian's standard build tool
 debuild -uc -us