3 # FIXME: do we need a license (or whatever else) header here?
5 # This script merges libffi sources from upstream.
7 # Default to the tip of master branch.
17 git clone https
://github.com
/libffi
/libffi.git upstream
19 git checkout
$commit || fatal
"Failed to checkout $commit"
28 pwd |
grep 'libffi$' || \
29 fatal
"Run this script from the libffi directory"
31 CUR_REV
=$
(get_current_rev
)
32 echo Current upstream revision
: $CUR_REV
34 # Remove the unused files.
36 rm -rf ChangeLog.old .appveyor
* .ci .github .gitignore .travis
* \
37 config.guess config.sub libtool-ldflags
m4 make_sunver.pl \
39 rm -rf .git autogen.sh
45 # Update the MERGE file.
49 The first line of this file holds the git revision number of the
50 last merge done from the master library sources.