| 1 | #
|
|---|
| 2 | # Macro for bitwiseworks default WPS object structure
|
|---|
| 3 | #
|
|---|
| 4 | # first create the 5 common WPS objects
|
|---|
| 5 | # 1. Create bitwiseworks Help Center
|
|---|
| 6 | # 2. Create shadow of the apps doc dir in the bitwise help Center
|
|---|
| 7 | # 3. Create bitwiseworks Apps and Ports folder
|
|---|
| 8 | # 4. Create shadow of the bitwise help Center in the Apps and ports folder
|
|---|
| 9 | # 5. Create folder for the installed app
|
|---|
| 10 | #
|
|---|
| 11 | # then create the WPS objects according to the parameter
|
|---|
| 12 | # 6. (-e) Create program object for the installed app in the app folder
|
|---|
| 13 | # 7. (-a) Associate file filter with the installed app
|
|---|
| 14 | # 8. (-r) Create shadow of readme.txt for the installed app in the app folder
|
|---|
| 15 | # 9. (-s) Create shadow of the installed app on the desktop
|
|---|
| 16 | #
|
|---|
| 17 | # parameter (-t)
|
|---|
| 18 | # this is the desired title for the app or the exe, if this parameter is left
|
|---|
| 19 | # out, we use %{summary} as the title
|
|---|
| 20 | #
|
|---|
| 21 | # parameter (-i)
|
|---|
| 22 | # Icon for the exe. If this parameter is left out, no icon is added
|
|---|
| 23 | # The icon has to be copied to /@unixroot/usr/share/os2/icons during installation
|
|---|
| 24 | #
|
|---|
| 25 | # parameter (-a)
|
|---|
| 26 | # Associate a file filter (for example -a *.txt) to the .exe file
|
|---|
| 27 | #
|
|---|
| 28 | %__bww_commonobjects()\
|
|---|
| 29 | %wps_object_create WP_BWWHELP:WPFolder|bww Help|<WP_ASSISTANCE>|TITLE=bitwiseworks Help Center;SHOWALLINTREEVIEW=YES;ICONRESOURCE=60,PMWP.DLL;ICONNRESOURCE=83,PMWP.DLL;BACKGROUND=((/@unixroot/usr/share/os2/bww/bwwfbkg.bmp));\
|
|---|
| 30 | %wps_object_create %{name}_BWWHELP:WPShadow|Readme|<WP_BWWHELP>|SHADOWID=((%_defaultdocdir/%{name}-%{version}));\
|
|---|
| 31 | %wps_object_create WP_BWWAPPS:WPFolder|bww Apps|<WP_PROGRAMSFOLDER>|TITLE=bitwiseworks Apps and Ports;ICONRESOURCE=1,BWWRES.DLL;ICONNFILE=((/@unixroot/usr/share/os2/bww/bwwfldro.ico));BACKGROUND=((/@unixroot/usr/share/os2/bww/bwwfbkg.bmp));ICONVIEW=FLOWED;\
|
|---|
| 32 | %wps_object_create WP_BWWHELPSHADOW:WPShadow|bitwiseworks Help Center|<WP_BWWAPPS>|SHADOWID=<WP_BWWHELP>;\
|
|---|
| 33 | %wps_object_create %{name}_FOLDER:WPFolder|%{name}|<WP_BWWAPPS>|TITLE=%{__bww_title};\
|
|---|
| 34 | %{nil}
|
|---|
| 35 |
|
|---|
| 36 | %bww_folder(e:r:s:t:i:a:)\
|
|---|
| 37 | %{-t:%global __bww_title %{-t*}}%{!-t:%global __bww_title %{summary}}\
|
|---|
| 38 | %if %{undefined __bww_folder_done}\
|
|---|
| 39 | %global __bww_folder_done 1\
|
|---|
| 40 | %__bww_commonobjects %{__bww_title}\
|
|---|
| 41 | %endif\
|
|---|
| 42 | %define __bww_exeTitle %{!-t:%{__bww_title}}%{-t:%{-t*}}\
|
|---|
| 43 | %define __bww_exeIcon %{!-i:}%{-i:ICONFILE=((/@unixroot/usr/share/os2/icons/%{-i*}));}\
|
|---|
| 44 | %define __bww_exeAssoc %{!-a:}%{-a:ASSOCFILTER=%{-a*};}\
|
|---|
| 45 | %{-e:%{expand:%wps_object_create %{-e*}_EXE:WPProgram|%{__bww_exeTitle}|<%{name}_FOLDER>|EXENAME=((%_bindir/%{-e*}.exe));STARTUPDIR=((%_bindir));TITLE=%{__bww_exeTitle};%{__bww_exeIcon}%{__bww_exeAssoc}}}\
|
|---|
| 46 | %{-r:%{expand:%wps_object_create %{name}_README:WPShadow|Readme|<%{name}_FOLDER>|SHADOWID=((%_defaultdocdir/%{name}-%{version}/%{-r*}))}}\
|
|---|
| 47 | %{-s:%{-e:%{expand:%wps_object_create %{name}_SHADOW:WPShadow|%{__bww_exeTitle}|<WP_DESKTOP>|SHADOWID=<%{-e*}_EXE>;}}}\
|
|---|
| 48 | %{nil}
|
|---|