Skip to content

Instantly share code, notes, and snippets.

@oxr463
Last active June 20, 2021 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oxr463/c17af0ae2f1e9e6aba9e55b5e8ef9c9c to your computer and use it in GitHub Desktop.
Save oxr463/c17af0ae2f1e9e6aba9e55b5e8ef9c9c to your computer and use it in GitHub Desktop.
Differences between uthash and libretro-deps/uthash

Libretro Dependency - uthash

Differences between uthash and libretro-deps/uthash.

Methodology

Clone source repositories

git clone https://github.com/libretro/libretro-deps.git
git clone https://github.com/troydhanson/uthash.git

Get libretro uthash version

cd libretro-deps/uthash
LIBRETRO_UTHASH_VERSION=$(awk '/UTHASH_VERSION/ { print $3 }' uthash.h)

Checkout libretro version from upstream repository

cd uthash
git checkout "tags/v${LIBRETRO_UTHASH_VERSION}"

Create diff between files

git diff uthash/src/uthash.h libretro-deps/uthash/uthash.h > libretro_uthash.patch

License

CC0 1.0 Universal (CC0 1.0) Public Domain Dedication

This work has been released into the Public Domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment