File: copy_mac_icon.sh

package info (click to toggle)
connectome-workbench 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 46,136 kB
  • sloc: cpp: 403,193; ansic: 4,623; sh: 1,222; makefile: 150; csh: 12; xml: 9
file content (23 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

#
# This script copies the mac icon into
# into the Mac App's Resources directory.
#

exeName=$1
iconName=$2

for buildType in Debug/ Release/ RelWithDebInfo/ MinRelSize/ ""
do
   echo "BUILD TYPE ${buildType}"
   appName=${buildType}${exeName}.app/Contents/MacOS/${exeName}
   echo "App ${appName}"

   if [ -f ${appName} ] ; then
      cp $iconName ${buildType}${exeName}.app/Contents/Resources
         #cp -R ${QTDIR}/src/gui/mac/qt_menu.nib ${buildType}${exeName}.app/Contents/Resources 
   fi
done