$(INSTALL) ./osxapp/XBoard.gtklauncher $(bindir)/XBoard
$(INSTALL) ./xboard $(bindir)/xboard-bin
cp -R ./osxapp/icons/. $(datarootdir)
- $(INSTALL) ./osxapp/man.command $(datarootdir)/bin/man.command
- $(INSTALL) ./osxapp/info.command $(datarootdir)/bin/info.command
sed -e 's?-soundProgram "aplay -q"?-soundProgram "afplay"?'\
-e 's?-firstChessProgram fairymax?-firstChessProgram "./fairymax"?'\
-e 's?-firstChessProgramNames {fairymax?-firstChessProgramNames {"fairymax" -fcp "./fairymax" -fd "~~/../../bin/fairymax"?'\
echo '-autoLogo true' >>$(sysconfdir)/xboard.conf
echo '-logoDir "~~/logos"' >>$(sysconfdir)/xboard.conf
echo '-logoSize 100' >>$(sysconfdir)/xboard.conf
- echo '-openCommand "cd %s/../../bin; open"' >>$(sysconfdir)/xboard.conf
+ echo '-openCommand "open"' >>$(sysconfdir)/xboard.conf
echo '-firstDirectory "~~/../../bin/fairymax"' >>$(sysconfdir)/xboard.conf
echo '-secondDirectory "~~/../../bin/fairymax"' >>$(sysconfdir)/xboard.conf
echo '-secondChessProgram "./fairymax"' >>$(sysconfdir)/xboard.conf
{ // called from menu
#ifdef OSXAPP
char buf[MSG_SIZ];
- snprintf(buf, MSG_SIZ, "%s ./man.command", appData.sysOpen);
+ snprintf(buf, MSG_SIZ, "osascript -e 'tell application \"Terminal\"' -e 'activate' -e 'do script \"man %s/../man/man6/xboard.6\"' -e 'end tell'", dataDir);
system(buf);
#else
system("xterm -e man xboard &");
}
void
+InfoProc ()
+{
+ char buf[MSG_SIZ];
+#ifdef OSXAPP
+ snprintf(buf, MSG_SIZ, "osascript -e 'tell application \"Terminal\"' -e 'activate' -e 'do script \"info -d %s/../info -f xboard.info\"' -e 'end tell'", dataDir);
+#else
+ snprintf(buf, sizeof(buf), "xterm -e info --directory %s --directory . -f %s &",
+ INFODIR, INFOFILE);
+#endif
+ system(buf);
+}
+
+
+void
SetWindowTitle (char *text, char *title, char *icon)
{
#ifdef TODO_GTK
}
void
-InfoProc ()
-{
- char buf[MSG_SIZ];
-#ifdef OSXAPP
- snprintf(buf, MSG_SIZ, "%s ./info.command", appData.sysOpen);
-#else
- snprintf(buf, sizeof(buf), "xterm -e info --directory %s --directory . -f %s &",
- INFODIR, INFOFILE);
-#endif
- system(buf);
-}
-
-void
BugReportProc ()
{
char buf[MSG_SIZ];
+++ /dev/null
-cd "${0%/*}"
-info -d ../share/info -f xboard.info
+++ /dev/null
-cd "${0%/*}"
-man ../share/man/man6/xboard.6
}
void
+InfoProc ()
+{
+ char buf[MSG_SIZ];
+ snprintf(buf, sizeof(buf), "xterm -e info --directory %s --directory . -f %s &",
+ INFODIR, INFOFILE);
+ system(buf);
+}
+
+void
SetWindowTitle (char *text, char *title, char *icon)
{
Arg args[16];