view tools/findchargen.sh @ 2574:3feca4682680

Move functions around to get rid of the unknown-size dmFormatList array forward declaration (without the need to give it a size), so that we compile cleanly with -pedantic.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Mar 2022 14:48:56 +0200
parents a09e7202f763
children
line wrap: on
line source

#!/bin/sh
###
### Simple script to find C64 chargen ROM image file
###
IFOUND=""
for IROOT in /usr /usr/local /opt; do
  for IBASE in lib lib64 share; do
    IPATH="${IROOT}/${IBASE}/vice/C64/chargen"
    if test -e "$IPATH"; then
      IFOUND="$IPATH"
    fi
  done
done

# Echo the define if found
if test -n "$IFOUND"; then
  echo "-DDM_DEF_CHARGEN=\\\"${IFOUND}\\\""
fi