aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/x11resdir.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/x11resdir.sh b/scripts/x11resdir.sh
new file mode 100755
index 0000000..1a00ab8
--- /dev/null
+++ b/scripts/x11resdir.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+prefix="$1"
+
+for dir in \
+ $prefix/*/X11/app-defaults \
+ $prefix/X11R*/*/X11/app-defaults \
+ /usr/*/X11/app-defaults \
+ /etc/app-defaults \
+; do
+ if test -d "$dir"; then
+ echo "$dir"
+ exit 0
+ fi
+done
+exit 1