Mercurial > mxe-octave
comparison makeinst-script.sh @ 3963:9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
* binary-dist-rules.mk: if devel tools enabled, install cmdshell.bat,
fix paths that were in build tools prefix
* dist-files.mk: add cmdshell.bat
* installer-files/cmdshell.bat: new file
* makeinst-script.sh: if cmdshell.bat exists, include in installer, and add shortcut
author | John Donoghue |
---|---|
date | Tue, 09 Jun 2015 15:12:28 -0400 |
parents | 125325a2a2c4 |
children | 8803dfa40236 |
comparison
equal
deleted
inserted
replaced
3962:76247f439f51 | 3963:9d402d735dd1 |
---|---|
224 File "$OCTAVE_SOURCE/octave.bat" | 224 File "$OCTAVE_SOURCE/octave.bat" |
225 File "$OCTAVE_SOURCE/octave.vbs" | 225 File "$OCTAVE_SOURCE/octave.vbs" |
226 | 226 |
227 ; distro files | 227 ; distro files |
228 EOF | 228 EOF |
229 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then | |
230 echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE | |
231 fi | |
229 | 232 |
230 # insert the files | 233 # insert the files |
231 IFS=$'\n' | 234 IFS=$'\n' |
232 for f in $(find $OCTAVE_SOURCE -type d -printf "%P\n"); do | 235 for f in $(find $OCTAVE_SOURCE -type d -printf "%P\n"); do |
233 winf=`echo $f | sed 's,/,\\\\,g'` | 236 winf=`echo $f | sed 's,/,\\\\,g'` |
271 SetOutPath "%USERPROFILE%" | 274 SetOutPath "%USERPROFILE%" |
272 CreateShortCut "\$SMPROGRAMS\\Octave-$VERSION\\Octave (CLI).lnk" "\$INSTDIR\\octave.vbs" "--no-gui" "\$INSTDIR\\$ICON" 0 SW_SHOWMINIMIZED | 275 CreateShortCut "\$SMPROGRAMS\\Octave-$VERSION\\Octave (CLI).lnk" "\$INSTDIR\\octave.vbs" "--no-gui" "\$INSTDIR\\$ICON" 0 SW_SHOWMINIMIZED |
273 CreateShortCut "\$SMPROGRAMS\\Octave-$VERSION\\Octave (GUI).lnk" "\$INSTDIR\\octave.vbs" "--force-gui" "\$INSTDIR\\$ICON" 0 SW_SHOWMINIMIZED | 276 CreateShortCut "\$SMPROGRAMS\\Octave-$VERSION\\Octave (GUI).lnk" "\$INSTDIR\\octave.vbs" "--force-gui" "\$INSTDIR\\$ICON" 0 SW_SHOWMINIMIZED |
274 SetOutPath "\$INSTDIR" | 277 SetOutPath "\$INSTDIR" |
275 EOF | 278 EOF |
279 # shortcut for cmd win | |
280 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then | |
281 echo "CreateShortCut '\$SMPROGRAMS\\Octave-$VERSION\\Bash Shell.lnk' '\$INSTDIR\\cmdshell.bat' '' '' 0" >> $OUTFILE | |
282 fi | |
276 # if we have documentation files, create shortcuts | 283 # if we have documentation files, create shortcuts |
277 if [ -d $OCTAVE_SOURCE/share/doc/octave ]; then | 284 if [ -d $OCTAVE_SOURCE/share/doc/octave ]; then |
278 cat >> $OUTFILE << EOF | 285 cat >> $OUTFILE << EOF |
279 CreateDirectory "\$SMPROGRAMS\\Octave-$VERSION\\Documentation" | 286 CreateDirectory "\$SMPROGRAMS\\Octave-$VERSION\\Documentation" |
280 CreateShortCut "\$SMPROGRAMS\\Octave-$VERSION\\Documentation\\Octave C++ Classes (PDF).lnk" "\$INSTDIR\\share\\doc\\octave\\liboctave.pdf" "" "" 0 | 287 CreateShortCut "\$SMPROGRAMS\\Octave-$VERSION\\Documentation\\Octave C++ Classes (PDF).lnk" "\$INSTDIR\\share\\doc\\octave\\liboctave.pdf" "" "" 0 |