media/libnestegg/update.sh

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rwxr-xr-x

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 # Usage: sh update.sh <upstream_src_directory>
     2 cp $1/include/nestegg/nestegg.h include
     3 cp $1/src/nestegg.c src
     4 cp $1/halloc/halloc.h src
     5 cp $1/halloc/src/align.h src
     6 cp $1/halloc/src/halloc.c src
     7 cp $1/halloc/src/hlist.h src
     8 cp $1/halloc/src/macros.h src
     9 cp $1/LICENSE .
    10 cp $1/README .
    11 cp $1/AUTHORS .
    12 if [ -d $1/.git ]; then
    13   rev=$(cd $1 && git rev-parse --verify HEAD)
    14   dirty=$(cd $1 && git diff-index --name-only HEAD)
    15 fi
    17 if [ -n "$rev" ]; then
    18   version=$rev
    19   if [ -n "$dirty" ]; then
    20     version=$version-dirty
    21     echo "WARNING: updating from a dirty git repository."
    22   fi
    23   sed -i "/The git commit ID used was/ s/[0-9a-f]\+\(-dirty\)\?\./$version./" README_MOZILLA
    24 else
    25   echo "Remember to update README_MOZILLA with the version details."
    26 fi

mercurial