aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/bochs/files
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2001-10-20 17:48:57 +0800
committerkevlo <kevlo@FreeBSD.org>2001-10-20 17:48:57 +0800
commitc1d6c97bca5d38ac2c373ba439c967d6148bd68b (patch)
tree883afbd9b181a914690cc4045865af04c29dc060 /emulators/bochs/files
parent6d3bf480fff70792f115d9fe1dd11fb005b63584 (diff)
downloadfreebsd-ports-gnome-c1d6c97bca5d38ac2c373ba439c967d6148bd68b.tar.gz
freebsd-ports-gnome-c1d6c97bca5d38ac2c373ba439c967d6148bd68b.tar.zst
freebsd-ports-gnome-c1d6c97bca5d38ac2c373ba439c967d6148bd68b.zip
Update to version 1.2.1
PR: 31382 Submitted by: MAINTAINER
Diffstat (limited to 'emulators/bochs/files')
-rw-r--r--emulators/bochs/files/bochs.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/bochs/files/bochs.sh b/emulators/bochs/files/bochs.sh
new file mode 100644
index 000000000000..1c93e9789f2c
--- /dev/null
+++ b/emulators/bochs/files/bochs.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Bochs wrapper
+#
+
+bin_dir=%%PREFIX%%/libexec
+xbin_dir=%%X11BASE%%/bin
+font_dir=%%FONT_DIR%%
+
+${xbin_dir}/xset -q | grep -q ${font_dir}
+rc=$?
+
+if [ $rc != 0 ]; then
+ ${xbin_dir}/xset fp+ ${font_dir}
+ ${xbin_dir}/xset fp rehash
+fi
+
+${bin_dir}/bochs.bin ${1+"$@"}
+
+if [ $rc != 0 ]; then
+ ${xbin_dir}/xset fp- ${font_dir}
+ ${xbin_dir}/xset fp rehash
+fi