Mercurial > hg > dmlib
view tools/findchargen.sh @ 2571:bb44c48cffac
Add helper function for getting C64 chargen ROM path from environment
variable 'CHARGEN_ROM' and use it instead of the compile-time hardcoded
value.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Mar 2022 23:23:05 +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