diff tools/makeinst-script.sh.in @ 6582:9a909530773b

Add opengl_switch * binary-dist-rules.mk: add opengl_switch to windows targets * dist-files.mk, index.html: add ref to new file * src/opengl_switch.mk: new file] * tools/makeinst-script.sh.in: create nshortcut for opengl_switch
author John Donoghue <john.donoghue@ieee.org>
date Mon, 26 Dec 2022 13:23:46 -0500
parents f654b70b6a6e
children 2dfe73c0c492
line wrap: on
line diff
--- a/tools/makeinst-script.sh.in	Mon Dec 26 13:23:45 2022 -0500
+++ b/tools/makeinst-script.sh.in	Mon Dec 26 13:23:46 2022 -0500
@@ -696,6 +696,17 @@
     \${EndIf}
 EOF
   fi
+  if [ -e $OCTAVE_SOURCE/$OCTAVE_SUBDIR/bin/opengl_switch.exe ]; then 
+   cat >> $OUTFILE << EOF
+    CreateShortCut '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\OpenGL Switcher.lnk' '\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl_switch.exe' '' '' 0
+    \${If} \$MultiUser.InstallMode != "CurrentUser"
+      Push '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\OpenGL Switcher.lnk'
+      Call ShellLinkSetRunAs
+      Pop \$0
+    \${EndIf}
+EOF
+  fi
+ 
   # if we have documentation files, create shortcuts
   if [ -d $OCTAVE_SOURCE/$OCTAVE_SUBDIR/share/doc/octave ]; then
     cat >> $OUTFILE << EOF