#!/bin/sh

gluehash=$(git describe --tag 2>/dev/null)

cd lwip2-src
hash=$(git describe --tag 2>/dev/null)

cat << EOF > ../glue-lwip/lwip-git-hash.h
// generated by makefiles/make-lwip2-hash
#ifndef LWIP_HASH_H
#define LWIP_HASH_H
#define LWIP_HASH_STR "$hash/glue:$gluehash"
#endif // LWIP_HASH_H
EOF
