view tools/findchargen.sh @ 2547:71f04d8e791e

Implement a simple shell script for finding C64 chargen ROM image file (if any can be found) for *NIX builds and note the existence of the DM_DEF_CHARGEN define in MinGW Makefile with an example.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 18 Oct 2021 16:58:02 +0300
parents
children a09e7202f763
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