author | Olivier Brunel
<jjk@jjacky.com> 2023-01-25 13:54:36 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2023-01-25 13:54:36 UTC |
parent | f663b2492d36ec96a66ed994e13a0b1eec7149ec |
configure | +4 | -1 |
diff --git a/configure b/configure index 945d22a..94819fa 100755 --- a/configure +++ b/configure @@ -498,6 +498,9 @@ mv -f config.mk.tmp config.mk echo " -> Generating config.h..." prefix=$(printf "%s" "$name" | tr [:lower:] [:upper:] | tr -c [:alnum:] _) +url="$(cat meta/site 2>/dev/null)" +if test -z "$url"; then url="https://lila.oss"; fi + exec 5>&1 1>config.h.tmp cat <<EOF /* This file was generated by: @@ -510,7 +513,7 @@ cat <<EOF #define ${prefix}_CURYEAR "$(date +%Y)" #define ${prefix}_AUTHOR "Olivier Brunel" #define ${prefix}_VERSION "$version" -#define ${prefix}_URL "$(cat meta/site)" +#define ${prefix}_URL "$url" #define ${prefix}_LIBDIR "$libdir/$name" #define ${prefix}_SHAREDIR "$sharedir/$name" $CVARS