VirtualBox

source: vbox/trunk/tools/bin/gen-slickedit-workspace.sh@ 86716

Last change on this file since 86716 was 86460, checked in by vboxsync, 4 years ago

gen-slickedit-workspace.sh: PGM_BTH/SHW/GST_DECL/NAME fixes.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 57.1 KB
Line 
1# !kmk_ash
2# $Id: gen-slickedit-workspace.sh 86460 2020-10-06 16:39:32Z vboxsync $
3## @file
4# Script for generating a SlickEdit workspace.
5#
6
7#
8# Copyright (C) 2009-2020 Oracle Corporation
9#
10# This file is part of VirtualBox Open Source Edition (OSE), as
11# available from http://www.virtualbox.org. This file is free software;
12# you can redistribute it and/or modify it under the terms of the GNU
13# General Public License (GPL) as published by the Free Software
14# Foundation, in version 2 as it comes in the "COPYING" file of the
15# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17#
18
19#
20# Some constants.
21#
22MY_CAT="kmk_cat"
23MY_CP="kmk_cp"
24MY_MKDIR="kmk_mkdir"
25MY_MV="kmk_mv"
26MY_SED="kmk_sed"
27MY_RM="kmk_rm"
28MY_SLEEP="kmk_sleep"
29MY_EXPR="kmk_expr"
30MY_SVN="svn"
31
32#MY_SORT="kmk_cat"
33MY_SORT="sort"
34
35#
36# Globals.
37#
38MY_PROJECT_FILES=""
39MY_OUT_DIRS="\
40out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE} \
41out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/debug \
42out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/release \
43out/linux.amd64/debug \
44out/linux.x86/debug \
45out/win.amd64/debug \
46out/win.x86/debug \
47out/darwin.amd64/debug \
48out/darwin.x86/debug \
49out/haiku.amd64/debug \
50out/haiku.x86/debug \
51out/solaris.amd64/debug \
52out/solaris.x86/debug";
53
54
55#
56# Parameters w/ defaults.
57#
58MY_ROOT_DIR=".."
59MY_OUT_DIR="SlickEdit"
60MY_PRJ_PRF="VBox-"
61MY_WS_NAME="VirtualBox.vpw"
62MY_DBG=""
63MY_WINDOWS_HOST=""
64MY_OPT_MINIMAL=""
65MY_OPT_USE_WILDCARDS="yes"
66
67
68##
69# Gets the absolute path to an existing directory.
70#
71# @param $1 The path.
72my_abs_dir()
73{
74 if test -n "${PWD}"; then
75 MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && echo ${PWD}`
76
77 else
78 # old cygwin shell has no PWD and need adjusting.
79 MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && pwd | ${MY_SED} -e 's,^/cygdrive/\(.\)/,\1:/,'`
80 fi
81 if test -z "${MY_ABS_DIR}"; then
82 MY_ABS_DIR="${1}"
83 fi
84}
85
86##
87# Gets the file name part of a path.
88#
89# @param $1 The path.
90my_get_name()
91{
92 SAVED_IFS=$IFS
93 IFS=":/ "
94 set $1
95 while test $# -gt 1 -a -n "${2}";
96 do
97 shift;
98 done
99
100 IFS=$SAVED_IFS
101 #echo "$1"
102 export MY_GET_NAME=$1
103}
104
105##
106# Generate file entry for the specified file if it was found to be of interest.
107#
108# @param $1 The output file name base.
109# @param $2 The file name.
110# @param $3 Optional folder override.
111my_file()
112{
113 # sort and filter by file type.
114 case "$2" in
115 # drop these.
116 *.kup|*~|*.pyc|*.exe|*.sys|*.dll|*.o|*.obj|*.lib|*.a|*.ko)
117 return 0
118 ;;
119
120 # by prefix or directory component.
121 tst*|*/testcase/*)
122 MY_FOLDER="$1-Testcases.lst"
123 ;;
124
125 # by extension.
126 *.c|*.cpp|*.m|*.mm|*.pl|*.py|*.as|*.c.h|*.cpp.h|*.java)
127 MY_FOLDER="$1-Sources.lst"
128 ;;
129
130 *.h|*.hpp|*.mm)
131 MY_FOLDER="$1-Headers.lst"
132 ;;
133
134 *.asm|*.s|*.S|*.inc|*.mac)
135 MY_FOLDER="$1-Assembly.lst"
136 ;;
137
138 *)
139 MY_FOLDER="$1-Others.lst"
140 ;;
141 esac
142 if test -n "$3";
143 then
144 MY_FOLDER="$1-$3.lst"
145 fi
146
147 ## @todo only files which are in subversion.
148# if ${MY_SVN} info "${2}" > /dev/null 2>&1; then
149 my_get_name "${2}"
150 echo ' <!-- sortkey: '"${MY_GET_NAME}"' --> <F N="'"${2}"'"/>' >> "${MY_FOLDER}"
151# fi
152}
153
154##
155# Generate file entry for the specified file if it was found to be of interest.
156#
157# @param $1 The output file name base.
158# @param $2 The wildcard spec.
159# @param $3 Optional folder override.
160my_wildcard()
161{
162 if test -n "$3"; then
163 MY_FOLDER="$1-$3.lst"
164 else
165 MY_FOLDER="$1-All.lst"
166 fi
167 EXCLUDES="*.log;*.kup;*~;*.bak;*.bak?;*.pyc;*.exe;*.sys;*.dll;*.o;*.obj;*.lib;*.a;*.ko;*.class;*.cvsignore;*.done;*.project;*.actionScriptProperties;*.scm-settings;*.svnpatch.rej;*.svn-base;.svn/*;*.gitignore;*.gitattributes;*.gitmodules;*.swagger-codegen-ignore;*.png;*.bmp;*.jpg"
168 echo ' <F N="'"${2}"'/*" Recurse="1" Excludes="'"${EXCLUDES}"'"/>' >> "${MY_FOLDER}"
169}
170
171##
172# Generate file entries for the specified sub-directory tree.
173#
174# @param $1 The output filename.
175# @param $2 The sub-directory.
176# @param $3 Optional folder override.
177my_sub_tree()
178{
179 if test -n "$MY_DBG"; then echo "dbg: my_sub_tree: ${2}"; fi
180
181 # Skip .svn directories.
182 case "$2" in
183 */.svn|*/.svn)
184 return 0
185 ;;
186 esac
187
188 # Process the files in the directory.
189 for f in $2/*;
190 do
191 if test -d "${f}";
192 then
193 my_sub_tree "${1}" "${f}" "${3}"
194 else
195 my_file "${1}" "${f}" "${3}"
196 fi
197 done
198 return 0;
199}
200
201
202##
203# Generate folders for the specified directories and files.
204#
205# @param $1 The output (base) file name.
206# @param $2+ The files and directories to traverse.
207my_generate_folder()
208{
209 MY_FILE="$1"
210 shift
211
212 # Zap existing file collections.
213 > "${MY_FILE}-All.lst"
214 > "${MY_FILE}-Sources.lst"
215 > "${MY_FILE}-Headers.lst"
216 > "${MY_FILE}-Assembly.lst"
217 > "${MY_FILE}-Testcases.lst"
218 > "${MY_FILE}-Others.lst"
219
220 # Traverse the directories and files.
221 while test $# -ge 1 -a -n "${1}";
222 do
223 for f in ${MY_ROOT_DIR}/$1;
224 do
225 if test -d "${f}";
226 then
227 if test -z "${MY_OPT_USE_WILDCARDS}";
228 then
229 my_sub_tree "${MY_FILE}" "${f}"
230 else
231 case "${f}" in
232 ${MY_ROOT_DIR}/include*)
233 #my_sub_tree "${MY_FILE}" "${f}" "Headers"
234 my_wildcard "${MY_FILE}" "${f}" "Headers"
235 ;;
236 *) my_wildcard "${MY_FILE}" "${f}"
237 ;;
238 esac
239 fi
240 else
241 my_file "${MY_FILE}" "${f}"
242 fi
243 done
244 shift
245 done
246
247 # Generate the folders.
248 if test -s "${MY_FILE}-All.lst";
249 then
250 ${MY_SORT} "${MY_FILE}-All.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
251 fi
252 if test -s "${MY_FILE}-Sources.lst";
253 then
254 echo ' <Folder Name="Sources" Filters="*.c;*.cpp;*.cpp.h;*.c.h;*.m;*.mm;*.pl;*.py;*.as">' >> "${MY_FILE}"
255 ${MY_SORT} "${MY_FILE}-Sources.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
256 echo ' </Folder>' >> "${MY_FILE}"
257 fi
258 if test -s "${MY_FILE}-Headers.lst";
259 then
260 if test -z "${MY_OPT_USE_WILDCARDS}";
261 then
262 echo ' <Folder Name="Headers" Filters="*.h;*.hpp">' >> "${MY_FILE}"
263 else
264 echo ' <Folder Name="Headers" Filters="">' >> "${MY_FILE}"
265 fi
266 ${MY_SORT} "${MY_FILE}-Headers.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
267 echo ' </Folder>' >> "${MY_FILE}"
268 fi
269 if test -s "${MY_FILE}-Assembly.lst";
270 then
271 echo ' <Folder Name="Assembly" Filters="*.asm;*.s;*.S;*.inc;*.mac">' >> "${MY_FILE}"
272 ${MY_SORT} "${MY_FILE}-Assembly.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
273 echo ' </Folder>' >> "${MY_FILE}"
274 fi
275 if test -s "${MY_FILE}-Testcases.lst";
276 then
277 echo ' <Folder Name="Testcases" Filters="tst*;">' >> "${MY_FILE}"
278 ${MY_SORT} "${MY_FILE}-Testcases.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
279 echo ' </Folder>' >> "${MY_FILE}"
280 fi
281 if test -s "${MY_FILE}-Others.lst";
282 then
283 echo ' <Folder Name="Others" Filters="">' >> "${MY_FILE}"
284 ${MY_SORT} "${MY_FILE}-Others.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
285 echo ' </Folder>' >> "${MY_FILE}"
286 fi
287
288 # Cleanup
289 ${MY_RM} "${MY_FILE}-All.lst" "${MY_FILE}-Sources.lst" "${MY_FILE}-Headers.lst" "${MY_FILE}-Assembly.lst" \
290 "${MY_FILE}-Testcases.lst" "${MY_FILE}-Others.lst"
291}
292
293##
294# Function generating a project build config.
295#
296# @param $1 The project file name.
297# @param $2 Build config name.
298# @param $3 Extra kBuild command line options, variant 1.
299# @param $4 Extra kBuild command line options, variant 2.
300# @param $4+ Include directories.
301# @param $N --end-includes
302my_generate_project_config()
303{
304 MY_FILE="${1}";
305 MY_CFG_NAME="${2}";
306 MY_KMK_EXTRAS1="${3}";
307 MY_KMK_EXTRAS2="${4}";
308 MY_KMK_EXTRAS3="${5}";
309 MY_KMK_EXTRAS4="${6}";
310 shift; shift; shift; shift; shift; shift;
311
312 echo ' <Config Name="'"${MY_CFG_NAME}"'" OutputFile="" CompilerConfigName="Latest Version">' >> "${MY_FILE}"
313 echo ' <Menu>' >> "${MY_FILE}"
314
315 echo ' <Target Name="Compile" MenuCaption="&amp;Compile" CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
316 echo ' SaveOption="SaveCurrent" RunFromDir="%p" ClearProcessBuffer="1">' >> "${MY_FILE}"
317 echo -n ' <Exec CmdLine="'"${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS1}"' -C %p %n.o' >> "${MY_FILE}"
318 if test -n "${MY_KMK_EXTRAS2}"; then
319 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS2} -C %p %n.o" >> "${MY_FILE}"
320 fi
321 if test -n "${MY_KMK_EXTRAS3}"; then
322 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS3} -C %p %n.o" >> "${MY_FILE}"
323 fi
324 if test -n "${MY_KMK_EXTRAS4}"; then
325 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS4} -C %p %n.o" >> "${MY_FILE}"
326 fi
327 echo '"/>' >> "${MY_FILE}"
328 echo ' </Target>' >> "${MY_FILE}"
329
330 echo ' <Target Name="Build" MenuCaption="&amp;Build"CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
331 echo ' SaveOption="SaveWorkspaceFiles" RunFromDir="%rw" ClearProcessBuffer="1">' >> "${MY_FILE}"
332 echo -n ' <Exec CmdLine="'"${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS1}"' -C %rw' >> "${MY_FILE}"
333 if test -n "${MY_KMK_EXTRAS2}"; then
334 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS2} -C %rw" >> "${MY_FILE}"
335 fi
336 if test -n "${MY_KMK_EXTRAS3}"; then
337 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS3} -C %rw" >> "${MY_FILE}"
338 fi
339 if test -n "${MY_KMK_EXTRAS4}"; then
340 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS4} -C %rw" >> "${MY_FILE}"
341 fi
342 echo '"/>' >> "${MY_FILE}"
343 echo ' </Target>' >> "${MY_FILE}"
344
345 echo ' <Target Name="Rebuild" MenuCaption="&amp;Rebuild" CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
346 echo ' SaveOption="SaveWorkspaceFiles" RunFromDir="%rw" ClearProcessBuffer="1">' >> "${MY_FILE}"
347 echo -n ' <Exec CmdLine="'"${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS1}"' -C %rw' >> "${MY_FILE}"
348 if test -n "${MY_KMK_EXTRAS2}"; then
349 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS2} -C %rw rebuild" >> "${MY_FILE}"
350 fi
351 if test -n "${MY_KMK_EXTRAS3}"; then
352 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS3} -C %rw rebuild" >> "${MY_FILE}"
353 fi
354 if test -n "${MY_KMK_EXTRAS4}"; then
355 echo -n " && ${MY_KMK_INVOCATION} ${MY_KMK_EXTRAS4} -C %rw rebuild" >> "${MY_FILE}"
356 fi
357 echo '"/>' >> "${MY_FILE}"
358 echo ' </Target>' >> "${MY_FILE}"
359
360 #echo ' <Target Name="Debug" MenuCaption="&amp;Debug" SaveOption="SaveNone" RunFromDir="%rw">' >> "${MY_FILE}"
361 #echo ' <Exec/>' >> "${MY_FILE}"
362 #echo ' </Target>' >> "${MY_FILE}"
363 #echo ' <Target Name="Execute" MenuCaption="E&amp;xecute" SaveOption="SaveNone" RunFromDir="%rw">'>> "${MY_FILE}"
364 #echo ' <Exec/>' >> "${MY_FILE}"
365 #echo ' </Target>' >> "${MY_FILE}"
366 echo ' </Menu>' >> "${MY_FILE}"
367
368 #
369 # Include directories.
370 #
371 echo ' <Includes>' >> "${MY_FILE}"
372 while test $# -ge 1 -a "${1}" != "--end-includes";
373 do
374 for f in $1;
375 do
376 my_abs_dir ${f}
377 echo ' <Include Dir="'"${MY_ABS_DIR}/"'"/>' >> "${MY_FILE}"
378 done
379 shift
380 done
381 shift
382 echo ' </Includes>' >> "${MY_FILE}"
383 echo ' </Config>' >> "${MY_FILE}"
384}
385
386
387##
388# Function generating a project.
389#
390# @param $1 The project file name.
391# @param $2 The project working directory.
392# @param $3 Dummy separator.
393# @param $4+ Include directories.
394# @param $N --end-includes
395# @param $N+1 Directory sub-trees and files to include in the project.
396#
397my_generate_project()
398{
399 MY_FILE="${MY_PRJ_PRF}${1}.vpj";
400 echo "Generating ${MY_FILE}..."
401 MY_WRK_DIR="${2}"
402 shift
403 shift
404 shift
405
406 # Add it to the project list for workspace construction later on.
407 MY_PROJECT_FILES="${MY_PROJECT_FILES} ${MY_FILE}"
408
409
410 #
411 # Generate the head bits.
412 #
413 echo '<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">' > "${MY_FILE}"
414 echo '<Project' >> "${MY_FILE}"
415 echo ' Version="10.0"' >> "${MY_FILE}"
416 echo ' VendorName="SlickEdit"' >> "${MY_FILE}"
417 echo ' VCSProject="Subversion:"' >> "${MY_FILE}"
418# echo ' Customized="1"' >> "${MY_FILE}"
419# echo ' WorkingDir="."' >> "${MY_FILE}"
420 my_abs_dir "${MY_WRK_DIR}" >> "${MY_FILE}"
421 echo ' WorkingDir="'"${MY_ABS_DIR}"'"' >> "${MY_FILE}"
422 echo ' >' >> "${MY_FILE}"
423 my_generate_project_config "${MY_FILE}" "Default" "" "" "" "" $*
424 my_generate_project_config "${MY_FILE}" "Debug + hardening" "KBUILD_TYPE=debug VBOX_WITH_HARDENING=1" "" "" "" $*
425 my_generate_project_config "${MY_FILE}" "Release + hardening" "KBUILD_TYPE=release VBOX_WITH_HARDENING=1" "" "" "" $*
426 my_generate_project_config "${MY_FILE}" "Debug+Release + hardening" \
427 "KBUILD_TYPE=debug VBOX_WITH_HARDENING=1" \
428 "KBUILD_TYPE=release VBOX_WITH_HARDENING=1" \
429 "" "" $*
430 my_generate_project_config "${MY_FILE}" "Debug w/o hardening" "KBUILD_TYPE=debug VBOX_WITHOUT_HARDENING=1" "" "" $*
431 my_generate_project_config "${MY_FILE}" "Release w/o hardening" "KBUILD_TYPE=release VBOX_WITHOUT_HARDENING=1" "" "" $*
432 my_generate_project_config "${MY_FILE}" "Debug+Release w/o hardening" \
433 "KBUILD_TYPE=debug VBOX_WITHOUT_HARDENING=1" \
434 "KBUILD_TYPE=release VBOX_WITHOUT_HARDENING=1" \
435 "" "" $*
436 my_generate_project_config "${MY_FILE}" "Debug+Release with and without hardening" \
437 "KBUILD_TYPE=debug VBOX_WITH_HARDENING=1" \
438 "KBUILD_TYPE=release VBOX_WITH_HARDENING=1" \
439 "KBUILD_TYPE=debug VBOX_WITHOUT_HARDENING=1" \
440 "KBUILD_TYPE=release VBOX_WITHOUT_HARDENING=1" \
441 $*
442
443 while test $# -ge 1 -a "${1}" != "--end-includes";
444 do
445 shift;
446 done;
447 shift;
448
449 #
450 # Process directories+files and create folders.
451 #
452 echo ' <Files>' >> "${MY_FILE}"
453 my_generate_folder "${MY_FILE}" $*
454 echo ' </Files>' >> "${MY_FILE}"
455
456 #
457 # The tail.
458 #
459 echo '</Project>' >> "${MY_FILE}"
460
461 return 0
462}
463
464
465##
466# Generate the workspace
467#
468my_generate_workspace()
469{
470 MY_FILE="${MY_WS_NAME}"
471 echo "Generating ${MY_FILE}..."
472 echo '<!DOCTYPE Workspace SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpw.dtd">' > "${MY_FILE}"
473 echo '<Workspace Version="10.0" VendorName="SlickEdit">' >> "${MY_FILE}"
474 echo ' <Projects>' >> "${MY_FILE}"
475 for i in ${MY_PROJECT_FILES};
476 do
477 echo ' <Project File="'"${i}"'" />' >> "${MY_FILE}"
478 done
479 echo ' </Projects>' >> "${MY_FILE}"
480 echo '</Workspace>' >> "${MY_FILE}"
481 return 0;
482}
483
484
485##
486# Generate stuff
487#
488my_generate_usercpp_h()
489{
490 #
491 # Probe the slickedit user config, picking the most recent version.
492 #
493 MY_VSLICK_DB_OLD=
494 if test -z "${MY_SLICK_CONFIG}"; then
495 if test -d "${HOME}/Library/Application Support/SlickEdit"; then
496 MY_SLICKDIR_="${HOME}/Library/Application Support/SlickEdit"
497 MY_USERCPP_H="unxcpp.h"
498 MY_VSLICK_DB="vslick.sta" # was .stu earlier, 24 is using .sta.
499 MY_VSLICK_DB_OLD="vslick.stu"
500 elif test -d "${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"; then
501 MY_SLICKDIR_="${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"
502 MY_USERCPP_H="usercpp.h"
503 MY_VSLICK_DB="vslick.sta"
504 else
505 MY_SLICKDIR_="${HOME}/.slickedit"
506 MY_USERCPP_H="unxcpp.h"
507 MY_VSLICK_DB="vslick.sta"
508 MY_VSLICK_DB_OLD="vslick.stu"
509 fi
510 else
511 MY_SLICKDIR_="${MY_SLICK_CONFIG}"
512 if test -n "${MY_WINDOWS_HOST}"; then
513 MY_USERCPP_H="usercpp.h"
514 MY_VSLICK_DB="vslick.sta"
515 else
516 MY_USERCPP_H="unxcpp.h"
517 MY_VSLICK_DB="vslick.sta"
518 MY_VSLICK_DB_OLD="vslick.stu"
519 fi
520 # MacOS: Implement me!
521 fi
522
523 MY_VER_NUM="0"
524 MY_VER="0.0.0"
525 for subdir in "${MY_SLICKDIR_}/"*;
526 do
527 if test -f "${subdir}/${MY_USERCPP_H}" \
528 -o -f "${subdir}/${MY_VSLICK_DB}" \
529 -o '(' -n "${MY_VSLICK_DB_OLD}" -a -f "${subdir}/${MY_VSLICK_DB_OLD}" ')'; then
530 MY_CUR_VER_NUM=0
531 MY_CUR_VER=`echo "${subdir}" | ${MY_SED} -e 's,^.*/,,g'`
532
533 # Convert the dotted version number to an integer, checking that
534 # it is all numbers in the process.
535 set `echo "${MY_CUR_VER}" | ${MY_SED} 's/\./ /g' `
536 i=24010000 # == 70*70*70*70; max major version 89.
537 while test $# -gt 0;
538 do
539 if ! ${MY_EXPR} "$1" + 1 > /dev/null 2> /dev/null; then
540 MY_CUR_VER_NUM=0;
541 break
542 fi
543 if test "$i" -gt 0; then
544 MY_CUR_VER_NUM=$((${MY_CUR_VER_NUM} + $1 * $i))
545 i=$(($i / 70))
546 fi
547 shift
548 done
549
550 # More recent that what we have?
551 if test "${MY_CUR_VER_NUM}" -gt "${MY_VER_NUM}"; then
552 MY_VER_NUM="${MY_CUR_VER_NUM}"
553 MY_VER="${MY_CUR_VER}"
554 fi
555 fi
556 done
557
558 MY_SLICKDIR="${MY_SLICKDIR_}/${MY_VER}"
559 MY_USERCPP_H_FULL="${MY_SLICKDIR}/${MY_USERCPP_H}"
560 if test -d "${MY_SLICKDIR}"; then
561 echo "Found SlickEdit v${MY_VER} preprocessor file: ${MY_USERCPP_H_FULL}"
562 else
563 echo "Failed to locate SlickEdit preprocessor file. You need to manually merge ${MY_USERCPP_H}."
564 echo "dbg: MY_SLICKDIR=${MY_SLICKDIR} MY_USERCPP_H_FULL=${MY_USERCPP_H_FULL}"
565 MY_USERCPP_H_FULL=""
566 fi
567
568 # Generate our
569 MY_FILE="${MY_USERCPP_H}"
570 ${MY_CAT} > ${MY_FILE} <<EOF
571#define IN_SLICKEDIT
572#define RT_C_DECLS_BEGIN
573#define RT_C_DECLS_END
574#define RT_NOTHROW_PROTO
575#define RT_NOTHROW_DEF
576#define RT_NO_THROW_PROTO
577#define RT_NO_THROW_DEF
578#define RT_NOEXCEPT
579#define RT_OVERRIDE
580#define RT_THROW(type) throw(type)
581#define RT_GCC_EXTENSION
582#define RT_COMPILER_GROKS_64BIT_BITFIELDS
583#define RT_COMPILER_WITH_80BIT_LONG_DOUBLE
584#define RT_DECL_NTAPI(type) type
585
586#define ATL_NO_VTABLE
587#define BEGIN_COM_MAP(a)
588#define COM_INTERFACE_ENTRY(a)
589#define COM_INTERFACE_ENTRY2(a,b)
590#define COM_INTERFACE_ENTRY3(a,b,c)
591#define COM_INTERFACE_ENTRY4(a,b,c,d)
592#define END_COM_MAP(a)
593
594#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a)
595#define COMGETTER(n) n
596#define COMSETTER(n) n
597#define ComSafeArrayIn(t,a) t a[]
598#define ComSafeArrayOut(t,a) t * a[]
599#define DECLARE_CLASSFACTORY(a)
600#define DECLARE_CLASSFACTORY_SINGLETON(a)
601#define DECLARE_REGISTRY_RESOURCEID(a)
602#define DECLARE_NOT_AGGREGATABLE(a)
603#define DECLARE_PROTECT_FINAL_CONSTRUCT(a)
604#define DECLARE_EMPTY_CTOR_DTOR(a) a(); ~a();
605#define DEFINE_EMPTY_CTOR_DTOR(a) a::a() {} a::~a() {}
606#define NS_DECL_ISUPPORTS
607#define NS_IMETHOD virtual nsresult
608#define NS_IMETHOD_(type) virtual type
609#define NS_IMETHODIMP nsresult
610#define NS_IMETHODIMP_(type) type
611#define PARSERS_EXPORT
612EOF
613 if test -n "${MY_WINDOWS_HOST}"; then
614 ${MY_CAT} >> ${MY_FILE} <<EOF
615#define COM_STRUCT_OR_CLASS(I) struct I
616#define STDMETHOD(m) virtual HRESULT m
617#define STDMETHOD_(type,m) virtual type m
618#define STDMETHODIMP HRESULT
619#define STDMETHODIMP_(type) type
620EOF
621 else
622 ${MY_CAT} >> ${MY_FILE} <<EOF
623#define COM_STRUCT_OR_CLASS(I) class I
624#define STDMETHOD(m) virtual nsresult m
625#define STDMETHOD_(type,m) virtual type m
626#define STDMETHODIMP nsresult
627#define STDMETHODIMP_(type) type
628EOF
629 fi
630 ${MY_CAT} >> ${MY_FILE} <<EOF
631#define VBOX_SCRIPTABLE(a) public a
632#define VBOX_SCRIPTABLE_IMPL(a)
633#define VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(a)
634
635#define CTX_SUFF(var) var##R3
636#define CTXAllSUFF(var) var##R3
637#define CTXSUFF(var) var##HC
638#define OTHERCTXSUFF(var) var##GC
639#define CTXALLMID(first, last) first##R3##last
640#define CTXMID(first, last) first##HC##last
641#define OTHERCTXMID(first, last) first##GC##last
642#define CTXTYPE(GCType, R3Type, R0Type) R3Type
643#define RCTYPE(RCType, HCType) RCType
644#define GCTYPE(GCType, HCType) GCType
645#define RCPTRTYPE(RCType) RCType
646#define GCPTRTYPE(GCType) GCType
647#define HCPTRTYPE(HCType) HCType
648#define R3R0PTRTYPE(HCType) HCType
649#define R0PTRTYPE(R3Type) R3Type
650#define R3PTRTYPE(R0Type) R0Type
651#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__
652#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction
653#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction
654#define RTCALL
655#define RT_IPRT_FORMAT_ATTR(a_iFmt, a_iArgs)
656#define RT_IPRT_FORMAT_ATTR_MAYBE_NULL(a_iFmt, a_iArgs)
657#define DECLINLINE(type) inline type
658#define DECL_INLINE_THROW(type) inline type
659#define DECL_FORCE_INLINE(type) inline type
660#define DECL_INVALID(type) type
661
662#define PDMDEVINSINT_DECLARED 1
663#define VBOX_WITH_HGCM 1
664#define VBOXCALL
665
666#define PGM_ALL_CB_DECL(type) type
667#define PGM_ALL_CB2_DECL(type) type
668#define PGM_CTX(a,b) b
669#define PGM_CTX3(a,b,c) c
670#define PGM_GST_NAME(name) PGM_GST_NAME_AMD64(name)
671#define PGM_GST_NAME_REAL(name) pgmGstReal##name
672#define PGM_GST_NAME_PROT(name) pgmGstProt##name
673#define PGM_GST_NAME_32BIT(name) pgmGst32Bit##name
674#define PGM_GST_NAME_PAE(name) pgmGstPAE##name
675#define PGM_GST_NAME_AMD64(name) pgmGstAMD64##name
676#define PGM_GST_DECL(type, name) type PGM_GST_NAME(name)
677#define PGM_SHW_NAME(name) PGM_GST_NAME_AMD64(name)
678#define PGM_SHW_NAME_32BIT(name) pgmShw32Bit##name
679#define PGM_SHW_NAME_PAE(name) pgmShwPAE##name
680#define PGM_SHW_NAME_AMD64(name) pgmShwAMD64##name
681#define PGM_SHW_NAME_NESTED(name) pgmShwNested##name
682#define PGM_SHW_NAME_EPT(name) pgmShwEPT##name
683#define PGM_SHW_DECL(type, name) type PGM_SHW_NAME(name)
684#define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_AMD64(name)
685#define PGM_BTH_NAME_32BIT_REAL(name) pgmBth##name
686#define PGM_BTH_NAME_32BIT_PROT(name) pgmBth##name
687#define PGM_BTH_NAME_32BIT_32BIT(name) pgmBth##name
688#define PGM_BTH_NAME_PAE_REAL(name) pgmBth##name
689#define PGM_BTH_NAME_PAE_PROT(name) pgmBth##name
690#define PGM_BTH_NAME_PAE_32BIT(name) pgmBth##name
691#define PGM_BTH_NAME_PAE_PAE(name) pgmBth##name
692#define PGM_BTH_NAME_AMD64_PROT(name) pgmBth##name
693#define PGM_BTH_NAME_AMD64_AMD64(name) pgmBth##name
694#define PGM_BTH_NAME_NESTED_REAL(name) pgmBth##name
695#define PGM_BTH_NAME_NESTED_PROT(name) pgmBth##name
696#define PGM_BTH_NAME_NESTED_32BIT(name) pgmBth##name
697#define PGM_BTH_NAME_NESTED_PAE(name) pgmBth##name
698#define PGM_BTH_NAME_NESTED_AMD64(name) pgmBth##name
699#define PGM_BTH_NAME_EPT_REAL(name) pgmBth##name
700#define PGM_BTH_NAME_EPT_PROT(name) pgmBth##name
701#define PGM_BTH_NAME_EPT_32BIT(name) pgmBth##name
702#define PGM_BTH_NAME_EPT_PAE(name) pgmBth##name
703#define PGM_BTH_NAME_EPT_AMD64(name) pgmBth##name
704#define PGM_BTH_DECL(type, name) type PGM_BTH_NAME(name)
705
706#define FNIEMOP_STUB(a_Name) VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) { return VERR_NOT_IMPLEMENTED; }
707#define FNIEMOP_DEF(a_Name) VBOXSTRICTRC a_Name(PIEMCPU pIemCpu)
708#define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0)
709#define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1)
710#define FNIEMOPRM_DEF(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, uint8_t bBm)
711#define IEM_CIMPL_DEF_0(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu)
712#define IEM_CIMPL_DEF_1(a_Name, a_Type0, a_Name0) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0)
713#define IEM_CIMPL_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0, a_Type1 a_Name1)
714#define IEM_CIMPL_DEF_3(a_Name, a_Type0, a_Name0, a_Type1, a_Name1, a_Type2, a_Name2) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0, a_Type1 a_Name1, , a_Type2 a_Name2)
715#define IEM_DECL_IMPL_DEF(a_RetType, a_Name, a_ArgList) a_RetType a_Name a_ArgList
716#define IEM_MC_LOCAL(a_Type, a_Name) a_Type a_Name
717#define IEM_MC_ARG(a_Type, a_Name, a_iArg) a_Type a_Name
718#define IEM_MC_ARG_CONST(a_Type, a_Name, a_Value, a_iArg) a_Type const a_Name = a_Value
719#define IEM_STATIC
720
721#define RTASN1_IMPL_GEN_SEQ_OF_TYPEDEFS_AND_PROTOS(a_SeqOfType, a_ItemType, a_DeclMacro, a_ImplExtNm) typedef struct a_SeqOfType { RTASN1SEQUENCECORE SeqCore; RTASN1ALLOCATION Allocation; uint32_t cItems; RT_CONCAT(P,a_ItemType) paItems; } a_SeqOfType; typedef a_SeqOfType *P##a_SeqOfType, const *PC##a_SeqOfType; int a_ImplExtNm##_DecodeAsn1(struct RTASN1CURSOR *pCursor, uint32_t fFlags, P##a_SeqOfType pThis, const char *pszErrorTag); int a_ImplExtNm##_Compare(PC##a_SeqOfType pLeft, PC##a_SeqOfType pRight)
722#define RTASN1_IMPL_GEN_SET_OF_TYPEDEFS_AND_PROTOS(a_SetOfType, a_ItemType, a_DeclMacro, a_ImplExtNm) typedef struct a_SetOfType { RTASN1SETCORE SetCore; RTASN1ALLOCATION Allocation; uint32_t cItems; RT_CONCAT(P,a_ItemType) paItems; } a_SetOfType; typedef a_SetOfType *P##a_SetOfType, const *PC##a_SetOfType; int a_ImplExtNm##_DecodeAsn1(struct RTASN1CURSOR *pCursor, uint32_t fFlags, P##a_SetOfType pThis, const char *pszErrorTag); int a_ImplExtNm##_Compare(PC##a_SetOfType pLeft, PC##a_SetOfType pRight)
723#define RTASN1TYPE_STANDARD_PROTOTYPES_NO_GET_CORE(a_TypeNm, a_DeclMacro, a_ImplExtNm) int a_ImplExtNm##_Init(P##a_TypeNm pThis, PCRTASN1ALLOCATORVTABLE pAllocator); int a_ImplExtNm##_Clone(P##a_TypeNm pThis, PC##a_TypeNm) pSrc, PCRTASN1ALLOCATORVTABLE pAllocator); void a_ImplExtNm##_Delete(P##a_TypeNm pThis); int a_ImplExtNm##_Enum(P##a_TypeNm pThis, PFNRTASN1ENUMCALLBACK pfnCallback, uint32_t uDepth, void *pvUser); int a_ImplExtNm##_Compare(PC##a_TypeNm) pLeft, PC##a_TypeNm pRight); int a_ImplExtNm##_DecodeAsn1(PRTASN1CURSOR pCursor, uint32_t fFlags, P##a_TypeNm pThis, const char *pszErrorTag); int a_ImplExtNm##_CheckSanity(PC##a_TypeNm pThis, uint32_t fFlags, PRTERRINFO pErrInfo, const char *pszErrorTag)
724#define RTASN1TYPE_STANDARD_PROTOTYPES(a_TypeNm, a_DeclMacro, a_ImplExtNm, a_Asn1CoreNm) inline PRTASN1CORE a_ImplExtNm##_GetAsn1Core(PC##a_TypeNm pThis) { return (PRTASN1CORE)&pThis->a_Asn1CoreNm; } inline bool a_ImplExtNm##_IsPresent(PC##a_TypeNm pThis) { return pThis && RTASN1CORE_IS_PRESENT(&pThis->a_Asn1CoreNm); } RTASN1TYPE_STANDARD_PROTOTYPES_NO_GET_CORE(a_TypeNm, a_DeclMacro, a_ImplExtNm)
725
726#define RTLDRELF_NAME(name) rtldrELF64##name
727#define RTLDRELF_SUFF(name) name##64
728#define RTLDRELF_MID(pre,suff) pre##64##suff
729
730#define BS3_DECL(type) type
731#define BS3_DECL_CALLBACK(type) type
732#define TMPL_NM(name) name##_mmm
733#define TMPL_FAR_NM(name) name##_mmm_far
734#define BS3_CMN_NM(name) name
735#define BS3_CMN_FAR_NM(name) name
736#define BS3_CMN_FN_NM(name) name
737#define BS3_DATA_NM(name) name
738#define BS3_FAR
739#define BS3_FAR_CODE
740#define BS3_FAR_DATA
741#define BS3_NEAR
742#define BS3_NEAR_CODE
743#define BS3_CMN_PROTO_STUB(a_RetType, a_Name, a_Params) a_RetType a_Name a_Params
744#define BS3_CMN_PROTO_NOSB(a_RetType, a_Name, a_Params) a_RetType a_Name a_Params
745#define BS3_CMN_DEF( a_RetType, a_Name, a_Params) a_RetType a_Name a_Params
746#define BS3_MODE_PROTO_STUB(a_RetType, a_Name, a_Params) \
747 a_RetType a_Name##_mmm a_Params; \
748 a_RetType a_Name##_mmm_far a_Params; \
749 a_RetType a_Name##_rm a_Params; \
750 a_RetType a_Name##_pe16 a_Params; \
751 a_RetType a_Name##_pe16_32 a_Params; \
752 a_RetType a_Name##_pe16_v86 a_Params; \
753 a_RetType a_Name##_pe32 a_Params; \
754 a_RetType a_Name##_pe32_16 a_Params; \
755 a_RetType a_Name##_pev86 a_Params; \
756 a_RetType a_Name##_pp16 a_Params; \
757 a_RetType a_Name##_pp16_32 a_Params; \
758 a_RetType a_Name##_pp16_v86 a_Params; \
759 a_RetType a_Name##_pp32 a_Params; \
760 a_RetType a_Name##_pp32_16 a_Params; \
761 a_RetType a_Name##_ppv86 a_Params; \
762 a_RetType a_Name##_pae16 a_Params; \
763 a_RetType a_Name##_pae16_32 a_Params; \
764 a_RetType a_Name##_pae16_v86 a_Params; \
765 a_RetType a_Name##_pae32 a_Params; \
766 a_RetType a_Name##_pae32_16 a_Params; \
767 a_RetType a_Name##_paev86 a_Params; \
768 a_RetType a_Name##_lm16 a_Params; \
769 a_RetType a_Name##_lm32 a_Params; \
770 a_RetType a_Name##_lm64 a_Params; \
771 a_RetType a_Name##_rm_far a_Params; \
772 a_RetType a_Name##_pe16_far a_Params; \
773 a_RetType a_Name##_pe16_v86_far a_Params; \
774 a_RetType a_Name##_pe32_16_far a_Params; \
775 a_RetType a_Name##_pev86_far a_Params; \
776 a_RetType a_Name##_pp16_far a_Params; \
777 a_RetType a_Name##_pp16_v86_far a_Params; \
778 a_RetType a_Name##_pp32_16_far a_Params; \
779 a_RetType a_Name##_ppv86_far a_Params; \
780 a_RetType a_Name##_pae16_far a_Params; \
781 a_RetType a_Name##_pae16_v86_far a_Params; \
782 a_RetType a_Name##_pae32_16_far a_Params; \
783 a_RetType a_Name##_paev86_far a_Params; \
784 a_RetType a_Name##_lm16_far a_Params
785#define BS3_MODE_PROTO_NOSB(a_RetType, a_Name, a_Params) \
786 a_RetType a_Name##_mmm a_Params; \
787 a_RetType a_Name##_mmm_far a_Params; \
788 a_RetType a_Name##_rm a_Params; \
789 a_RetType a_Name##_pe16 a_Params; \
790 a_RetType a_Name##_pe16_32 a_Params; \
791 a_RetType a_Name##_pe16_v86 a_Params; \
792 a_RetType a_Name##_pe32 a_Params; \
793 a_RetType a_Name##_pe32_16 a_Params; \
794 a_RetType a_Name##_pev86 a_Params; \
795 a_RetType a_Name##_pp16 a_Params; \
796 a_RetType a_Name##_pp16_32 a_Params; \
797 a_RetType a_Name##_pp16_v86 a_Params; \
798 a_RetType a_Name##_pp32 a_Params; \
799 a_RetType a_Name##_pp32_16 a_Params; \
800 a_RetType a_Name##_ppv86 a_Params; \
801 a_RetType a_Name##_pae16 a_Params; \
802 a_RetType a_Name##_pae16_32 a_Params; \
803 a_RetType a_Name##_pae16_v86 a_Params; \
804 a_RetType a_Name##_pae32 a_Params; \
805 a_RetType a_Name##_pae32_16 a_Params; \
806 a_RetType a_Name##_paev86 a_Params; \
807 a_RetType a_Name##_lm16 a_Params; \
808 a_RetType a_Name##_lm32 a_Params; \
809 a_RetType a_Name##_lm64 a_Params; \
810 a_RetType a_Name##_rm_far a_Params; \
811 a_RetType a_Name##_pe16_far a_Params; \
812 a_RetType a_Name##_pe16_v86_far a_Params; \
813 a_RetType a_Name##_pe32_16_far a_Params; \
814 a_RetType a_Name##_pev86_far a_Params; \
815 a_RetType a_Name##_pp16_far a_Params; \
816 a_RetType a_Name##_pp16_v86_far a_Params; \
817 a_RetType a_Name##_pp32_16_far a_Params; \
818 a_RetType a_Name##_ppv86_far a_Params; \
819 a_RetType a_Name##_pae16_far a_Params; \
820 a_RetType a_Name##_pae16_v86_far a_Params; \
821 a_RetType a_Name##_pae32_16_far a_Params; \
822 a_RetType a_Name##_paev86_far a_Params; \
823 a_RetType a_Name##_lm16_far a_Params
824#define BS3_MODE_EXPAND_EXTERN_DATA16(a_VarType, a_VarName, a_Suffix) \
825 extern a_VarType a_VarName##_rm a_Suffix; \
826 extern a_VarType a_VarName##_pe16 a_Suffix; \
827 extern a_VarType a_VarName##_pe16_32 a_Suffix; \
828 extern a_VarType a_VarName##_pe16_v86 a_Suffix; \
829 extern a_VarType a_VarName##_pe32 a_Suffix; \
830 extern a_VarType a_VarName##_pe32_16 a_Suffix; \
831 extern a_VarType a_VarName##_pev86 a_Suffix; \
832 extern a_VarType a_VarName##_pp16 a_Suffix; \
833 extern a_VarType a_VarName##_pp16_32 a_Suffix; \
834 extern a_VarType a_VarName##_pp16_v86 a_Suffix; \
835 extern a_VarType a_VarName##_pp32 a_Suffix; \
836 extern a_VarType a_VarName##_pp32_16 a_Suffix; \
837 extern a_VarType a_VarName##_ppv86 a_Suffix; \
838 extern a_VarType a_VarName##_pae16 a_Suffix; \
839 extern a_VarType a_VarName##_pae16_32 a_Suffix; \
840 extern a_VarType a_VarName##_pae16_v86 a_Suffix; \
841 extern a_VarType a_VarName##_pae32 a_Suffix; \
842 extern a_VarType a_VarName##_pae32_16 a_Suffix; \
843 extern a_VarType a_VarName##_paev86 a_Suffix; \
844 extern a_VarType a_VarName##_lm16 a_Suffix; \
845 extern a_VarType a_VarName##_lm32 a_Suffix; \
846 extern a_VarType a_VarName##_lm64 a_Suffix
847
848EOF
849
850 MY_HDR_FILES=` echo ${MY_ROOT_DIR}/include/VBox/*.h ${MY_ROOT_DIR}/include/VBox/vmm/*.h \
851 | ${MY_SED} -e 's,${MY_ROOT_DIR}/include/VBox/err.h,,' `
852 MY_HDR_FILES="${MY_HDR_FILES} ${MY_ROOT_DIR}/include/iprt/cdefs.h"
853 ${MY_SED} \
854 -e '/__cdecl/d' \
855 -e '/^ *# *define.*DECL/!d' \
856 -e '/DECLS/d' \
857 -e '/DECLARE_CLS_/d' \
858 -e '/_SRC_POS_DECL/d' \
859 -e '/declspec/d' \
860 -e '/__attribute__/d' \
861 -e 's/# */#/g' \
862 -e 's/ */ /g' \
863 -e '/ DECLEXPORT_CLASS/d' \
864 -e 's/ *VBOXCALL//' \
865 -e 's/ *RTCALL//' \
866 -e '/ DECLASM(type) type/d' \
867 -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
868 -e '/define *DECLINLINE(type)/d' \
869 -e '/define *DECL_FORCE_INLINE(type)/d' \
870 -e '/ *DECL_INVALID(/d' \
871 \
872 -e 's/(type) DECLHIDDEN(type)/(type) type/' \
873 -e 's/(type) DECLEXPORT(type)/(type) type/' \
874 -e 's/(type) DECLIMPORT(type)/(type) type/' \
875 -e 's/(type) DECL_HIDDEN_NOTHROW(type)/(type) type/' \
876 -e 's/(type) DECL_EXPORT_NOTHROW(type)/(type) type/' \
877 -e 's/(type) DECL_IMPORT_NOTHROW(type)/(type) type/' \
878 -e 's/(a_Type) DECLHIDDEN(a_Type)/(a_Type) a_Type/' \
879 -e 's/(a_Type) DECLEXPORT(a_Type)/(a_Type) a_Type/' \
880 -e 's/(a_Type) DECLIMPORT(a_Type)/(a_Type) a_Type/' \
881 -e 's/(a_Type) DECL_HIDDEN_NOTHROW(a_Type)/(a_Type) a_Type/' \
882 -e 's/(a_Type) DECL_EXPORT_NOTHROW(a_Type)/(a_Type) a_Type/' \
883 -e 's/(a_Type) DECL_IMPORT_NOTHROW(a_Type)/(a_Type) a_Type/' \
884 \
885 --append "${MY_FILE}" \
886 ${MY_HDR_FILES}
887
888 ${MY_CAT} "${MY_FILE}" \
889 | ${MY_SED} -e 's/_/\x1F/g' -e 's/(/\x1E/g' -e 's/[[:space:]][[:space:]]*/\x1C/g' \
890 | ${MY_SED} -e 's/\x1F/_/g' -e 's/\x1E/(/g' -e 's/\x1C/ /g' \
891 | ${MY_SORT} \
892 | ${MY_SED} -e '/#define/s/$/ \/\/ vbox/' --output "${MY_FILE}.2"
893
894 # Eliminate duplicates.
895 > "${MY_FILE}.3"
896 exec < "${MY_FILE}.2"
897 MY_PREV_DEFINE=""
898 while read MY_LINE;
899 do
900 MY_DEFINE=`echo "${MY_LINE}" | ${MY_SED} -e 's/^#define \([^ ()]*\).*$/\1/' `
901 if test "${MY_DEFINE}" != "${MY_PREV_DEFINE}"; then
902 MY_PREV_DEFINE=${MY_DEFINE}
903 echo "${MY_LINE}" >> "${MY_FILE}.3"
904 fi
905 done
906
907 # Append non-vbox bits from the current user config.
908 if test -n "${MY_USERCPP_H_FULL}" -a -f "${MY_USERCPP_H_FULL}"; then
909 ${MY_SED} -e '/ \/\/ vbox$/d' -e '/^[[:space:]]*$/d' --append "${MY_FILE}.3" "${MY_USERCPP_H_FULL}"
910 fi
911
912 # Finalize the file (sort + blank lines).
913 ${MY_CAT} "${MY_FILE}.3" \
914 | ${MY_SED} -e 's/$/\n/' --output "${MY_FILE}"
915 ${MY_RM} -f "${MY_FILE}.2" "${MY_FILE}.3"
916
917 # Install it.
918 if test -n "${MY_USERCPP_H_FULL}" -a -d "${MY_SLICKDIR}"; then
919 if test -f "${MY_USERCPP_H_FULL}"; then
920 ${MY_MV} -vf "${MY_USERCPP_H_FULL}" "${MY_USERCPP_H_FULL}.bak"
921 ${MY_CP} "${MY_FILE}" "${MY_USERCPP_H_FULL}"
922 echo "Updated the SlickEdit preprocessor file. (Previous version renamed to .bak.)"
923 else
924 ${MY_CP} "${MY_FILE}" "${MY_USERCPP_H_FULL}"
925 echo "Created the SlickEdit preprocessor file."
926 fi
927 fi
928}
929
930###### end of functions ####
931
932
933#
934# Parse arguments.
935#
936while test $# -ge 1;
937do
938 ARG=$1
939 shift
940 case "$ARG" in
941
942 --rootdir)
943 if test $# -eq 0; then
944 echo "error: missing --rootdir argument." 1>&2
945 exit 1;
946 fi
947 MY_ROOT_DIR="$1"
948 shift
949 ;;
950
951 --outdir)
952 if test $# -eq 0; then
953 echo "error: missing --outdir argument." 1>&2
954 exit 1;
955 fi
956 MY_OUT_DIR="$1"
957 shift
958 ;;
959
960 --project-base)
961 if test $# -eq 0; then
962 echo "error: missing --project-base argument." 1>&2
963 exit 1;
964 fi
965 MY_PRJ_PRF="$1"
966 shift
967 ;;
968
969 --workspace)
970 if test $# -eq 0; then
971 echo "error: missing --workspace argument." 1>&2
972 exit 1;
973 fi
974 MY_WS_NAME="$1"
975 shift
976 ;;
977
978 --windows-host)
979 MY_WINDOWS_HOST=1
980 ;;
981
982 --minimal)
983 MY_OPT_MINIMAL=1
984 ;;
985
986 --slickedit-config)
987 MY_SLICK_CONFIG="$1"
988 shift
989 ;;
990
991 # usage
992 --h*|-h*|-?|--?)
993 echo "usage: $0 [--rootdir <rootdir>] [--outdir <outdir>] [--project-base <prefix>] [--workspace <name>] [--minimal] [--slickedit-config <DIR>]"
994 echo ""
995 echo "If --outdir is specified, you must specify a --rootdir relative to it as well."
996 exit 1;
997 ;;
998
999 # default
1000 *)
1001 echo "error: Invalid parameter '$ARG'" 1>&2
1002 exit 1;
1003
1004 esac
1005done
1006
1007
1008#
1009# From now on everything *MUST* succeed.
1010#
1011set -e
1012
1013
1014#
1015# Make sure the output directory exists, is valid and clean.
1016#
1017${MY_RM} -f \
1018 "${MY_OUT_DIR}/${MY_PRJ_PRF}"*.vpj \
1019 "${MY_OUT_DIR}/${MY_WS_NAME}" \
1020 "${MY_OUT_DIR}/`echo ${MY_WS_NAME} | ${MY_SED} -e 's/\.vpw$/.vtg/'`"
1021${MY_MKDIR} -p "${MY_OUT_DIR}"
1022cd "${MY_OUT_DIR}"
1023
1024
1025#
1026# Determine the invocation to conjure up kmk.
1027#
1028my_abs_dir "tools"
1029if test -n "${MY_WINDOWS_HOST}"; then
1030 MY_KMK_INVOCATION="cscript.exe /Nologo ${MY_ABS_DIR}/envSub.vbs --quiet -- kmk.exe"
1031else
1032 MY_KMK_INVOCATION="/usr/bin/env LANG=C ${MY_ABS_DIR}/env.sh --quiet --no-wine kmk"
1033fi
1034
1035
1036#
1037# Generate the projects and workspace.
1038#
1039# Note! The configs aren't optimal yet, lots of adjustment wrt headers left to be done.
1040#
1041
1042# src/VBox/Runtime
1043my_generate_project "IPRT" "src/VBox/Runtime" --begin-incs "include" "src/VBox/Runtime/include" --end-includes "include/iprt" "src/VBox/Runtime"
1044
1045# src/VBox/VMM
1046my_generate_project "VMM" "src/VBox/VMM" --begin-incs "include" "src/VBox/VMM" --end-includes "src/VBox/VMM" \
1047 "include/VBox/vmm/cfgm.h" \
1048 "include/VBox/vmm/cpum.*" \
1049 "include/VBox/vmm/dbgf.h" \
1050 "include/VBox/vmm/em.h" \
1051 "include/VBox/vmm/gim.h" \
1052 "include/VBox/vmm/apic.h" \
1053 "include/VBox/vmm/gmm.*" \
1054 "include/VBox/vmm/gvm.*" \
1055 "include/VBox/vmm/hm*.*" \
1056 "include/VBox/vmm/iom.h" \
1057 "include/VBox/vmm/mm.h" \
1058 "include/VBox/vmm/patm.*" \
1059 "include/VBox/vmm/pdm*.h" \
1060 "include/VBox/vmm/pgm.*" \
1061 "include/VBox/vmm/selm.*" \
1062 "include/VBox/vmm/ssm.h" \
1063 "include/VBox/vmm/stam.*" \
1064 "include/VBox/vmm/tm.h" \
1065 "include/VBox/vmm/trpm.*" \
1066 "include/VBox/vmm/vm.*" \
1067 "include/VBox/vmm/vmm.*"
1068
1069# src/VBox/Additions
1070my_generate_project "Add-darwin" "src/VBox/Additions/darwin" --begin-incs "include" "src/VBox/Additions/darwin" --end-includes "src/VBox/Additions/darwin"
1071my_generate_project "Add-freebsd" "src/VBox/Additions/freebsd" --begin-incs "include" "src/VBox/Additions/freebsd" --end-includes "src/VBox/Additions/freebsd"
1072my_generate_project "Add-haiku" "src/VBox/Additions/haiku" --begin-incs "include" "src/VBox/Additions/haiku" --end-includes "src/VBox/Additions/haiku"
1073my_generate_project "Add-linux" "src/VBox/Additions/linux" --begin-incs "include" "src/VBox/Additions/linux" --end-includes "src/VBox/Additions/linux"
1074my_generate_project "Add-os2" "src/VBox/Additions/os2" --begin-incs "include" "src/VBox/Additions/os2" --end-includes "src/VBox/Additions/os2"
1075my_generate_project "Add-solaris" "src/VBox/Additions/solaris" --begin-incs "include" "src/VBox/Additions/solaris" --end-includes "src/VBox/Additions/solaris"
1076my_generate_project "Add-win" "src/VBox/Additions/WINNT" --begin-incs "include" "src/VBox/Additions/WINNT" --end-includes "src/VBox/Additions/WINNT"
1077if test -z "$MY_OPT_MINIMAL"; then
1078 my_generate_project "Add-x11" "src/VBox/Additions/x11" --begin-incs "include" "src/VBox/Additions/x11" --end-includes "src/VBox/Additions/x11"
1079fi
1080my_generate_project "Add-Control" "src/VBox/Additions/common/VBoxControl" --begin-incs "include" "src/VBox/Additions/common/VBoxControl" --end-includes "src/VBox/Additions/common/VBoxControl"
1081my_generate_project "Add-GuestDrv" "src/VBox/Additions/common/VBoxGuest" --begin-incs "include" "src/VBox/Additions/common/VBoxGuest" --end-includes "src/VBox/Additions/common/VBoxGuest" "include/VBox/VBoxGuest*.*"
1082my_generate_project "Add-Lib" "src/VBox/Additions/common/VBoxGuest/lib" --begin-incs "include" "src/VBox/Additions/common/VBoxGuest/lib" --end-includes "src/VBox/Additions/common/VBoxGuest/lib" "include/VBox/VBoxGuest/lib/*.*"
1083my_generate_project "Add-Service" "src/VBox/Additions/common/VBoxService" --begin-incs "include" "src/VBox/Additions/common/VBoxService" --end-includes "src/VBox/Additions/common/VBoxService"
1084my_generate_project "Add-VBoxVideo" "src/VBox/Additions/common/VBoxVideo" --begin-incs "include" "src/VBox/Additions/common/VBoxVideo" --end-includes "src/VBox/Additions/common/VBoxVideo"
1085if test -z "$MY_OPT_MINIMAL"; then
1086 my_generate_project "Add-pam" "src/VBox/Additions/common/pam" --begin-incs "include" "src/VBox/Additions/common/pam" --end-includes "src/VBox/Additions/common/pam"
1087 my_generate_project "Add-cmn-test" "src/VBox/Additions/common/testcase" --begin-incs "include" "src/VBox/Additions/common/testcase" --end-includes "src/VBox/Additions/common/testcase"
1088 my_generate_project "Add-CredProv" "src/VBox/Additions/WINNT/VBoxCredProv" --begin-incs "include" "src/VBox/Additions/WINNT/VBoxCredProv" --end-includes "src/VBox/Additions/WINNT/VBoxCredProv"
1089 my_generate_project "Add-GINA" "src/VBox/Additions/WINNT/VBoxGINA" --begin-incs "include" "src/VBox/Additions/WINNT/VBoxGINA" --end-includes "src/VBox/Additions/WINNT/VBoxGINA"
1090fi
1091
1092# src/VBox/Debugger
1093my_generate_project "Debugger" "src/VBox/Debugger" --begin-incs "include" "src/VBox/Debugger" --end-includes "src/VBox/Debugger" "include/VBox/dbggui.h" "include/VBox/dbg.h"
1094
1095# src/VBox/Devices
1096my_generate_project "Devices" "src/VBox/Devices" --begin-incs "include" "src/VBox/Devices" --end-includes "src/VBox/Devices" "include/VBox/pci.h" "include/VBox/pdm*.h"
1097## @todo split this up.
1098
1099# src/VBox/Disassembler
1100my_generate_project "DIS" "src/VBox/Disassembler" --begin-incs "include" "src/VBox/Disassembler" --end-includes "src/VBox/Disassembler" "include/VBox/dis*.h"
1101
1102# src/VBox/Frontends
1103if test -z "$MY_OPT_MINIMAL"; then
1104 my_generate_project "FE-VBoxBalloonCtrl" "src/VBox/Frontends/VBoxBalloonCtrl" --begin-incs "include" "src/VBox/Frontends/VBoxBalloonCtrl" --end-includes "src/VBox/Frontends/VBoxBalloonCtrl"
1105fi
1106my_generate_project "FE-VBoxManage" "src/VBox/Frontends/VBoxManage" --begin-incs "include" "src/VBox/Frontends/VBoxManage" --end-includes "src/VBox/Frontends/VBoxManage"
1107my_generate_project "FE-VBoxHeadless" "src/VBox/Frontends/VBoxHeadless" --begin-incs "include" "src/VBox/Frontends/VBoxHeadless" --end-includes "src/VBox/Frontends/VBoxHeadless"
1108my_generate_project "FE-VBoxSDL" "src/VBox/Frontends/VBoxSDL" --begin-incs "include" "src/VBox/Frontends/VBoxSDL" --end-includes "src/VBox/Frontends/VBoxSDL"
1109my_generate_project "FE-VBoxShell" "src/VBox/Frontends/VBoxShell" --begin-incs "include" "src/VBox/Frontends/VBoxShell" --end-includes "src/VBox/Frontends/VBoxShell"
1110# noise - my_generate_project "FE-VBoxBFE" "src/VBox/Frontends/VBoxBFE" --begin-incs "include" "src/VBox/Frontends/VBoxBFE" --end-includes "src/VBox/Frontends/VBoxBFE"
1111FE_VBOX_WRAPPERS=""
1112for d in ${MY_OUT_DIRS};
1113do
1114 if test -d "${MY_ROOT_DIR}/${d}/obj/VirtualBox/include"; then
1115 FE_VBOX_WRAPPERS="${d}/obj/VirtualBox/include"
1116 break
1117 fi
1118done
1119if test -n "${FE_VBOX_WRAPPERS}"; then
1120 my_generate_project "FE-VirtualBox" "src/VBox/Frontends/VirtualBox" --begin-incs "include" "${FE_VBOX_WRAPPERS}" --end-includes "src/VBox/Frontends/VirtualBox" "${FE_VBOX_WRAPPERS}/COMWrappers.cpp" "${FE_VBOX_WRAPPERS}/COMWrappers.h"
1121else
1122 my_generate_project "FE-VirtualBox" "src/VBox/Frontends/VirtualBox" --begin-incs "include" --end-includes "src/VBox/Frontends/VirtualBox"
1123fi
1124
1125# src/VBox/GuestHost
1126my_generate_project "HGSMI-GH" "src/VBox/GuestHost/HGSMI" --begin-incs "include" --end-includes "src/VBox/GuestHost/HGSMI"
1127if test -z "$MY_OPT_MINIMAL"; then
1128 my_generate_project "DnD-GH" "src/VBox/GuestHost/DragAndDrop" --begin-incs "include" --end-includes "src/VBox/GuestHost/DragAndDrop"
1129fi
1130my_generate_project "ShClip-GH" "src/VBox/GuestHost/SharedClipboard" --begin-incs "include" --end-includes "src/VBox/GuestHost/SharedClipboard"
1131
1132# src/VBox/HostDrivers
1133my_generate_project "SUP" "src/VBox/HostDrivers/Support" --begin-incs "include" "src/VBox/HostDrivers/Support" --end-includes "src/VBox/HostDrivers/Support" "include/VBox/sup.h" "include/VBox/sup.mac"
1134my_generate_project "VBoxNetAdp" "src/VBox/HostDrivers/VBoxNetAdp" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetAdp" --end-includes "src/VBox/HostDrivers/VBoxNetAdp" "include/VBox/intnet.h"
1135my_generate_project "VBoxNetFlt" "src/VBox/HostDrivers/VBoxNetFlt" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetFlt" --end-includes "src/VBox/HostDrivers/VBoxNetFlt" "include/VBox/intnet.h"
1136my_generate_project "VBoxUSB" "src/VBox/HostDrivers/VBoxUSB" --begin-incs "include" "src/VBox/HostDrivers/VBoxUSB" --end-includes "src/VBox/HostDrivers/VBoxUSB" "include/VBox/usblib*.h" "include/VBox/usbfilter.h"
1137my_generate_project "AdpCtl" "src/VBox/HostDrivers/adpctl" --begin-incs "include" --end-includes "src/VBox/HostDrivers/adpctl"
1138
1139# src/VBox/HostServices
1140my_generate_project "GuestCntl" "src/VBox/HostServices/GuestControl" --begin-incs "include" "src/VBox/HostServices/GuestControl" --end-includes "src/VBox/HostServices/GuestControl"
1141my_generate_project "DragAndDrop" "src/VBox/HostServices/DragAndDrop" --begin-incs "include" "src/VBox/HostServices/DragAndDrop" --end-includes "src/VBox/HostServices/DragAndDrop"
1142my_generate_project "GuestProps" "src/VBox/HostServices/GuestProperties" --begin-incs "include" "src/VBox/HostServices/GuestProperties" --end-includes "src/VBox/HostServices/GuestProperties"
1143my_generate_project "ShClip-HS" "src/VBox/HostServices/SharedClipboard" --begin-incs "include" "src/VBox/HostServices/SharedClipboard" --end-includes "src/VBox/HostServices/SharedClipboard"
1144my_generate_project "SharedFolders" "src/VBox/HostServices/SharedFolders" --begin-incs "include" "src/VBox/HostServices/SharedFolders" --end-includes "src/VBox/HostServices/SharedFolders" "include/VBox/shflsvc.h"
1145
1146# src/VBox/ImageMounter
1147my_generate_project "ImageMounter" "src/VBox/ImageMounter" --begin-incs "include" "src/VBox/ImageMounter" --end-includes "src/VBox/ImageMounter"
1148
1149# src/VBox/Installer
1150my_generate_project "Installers" "src/VBox/Installer" --begin-incs "include" --end-includes "src/VBox/Installer"
1151
1152# src/VBox/Main
1153my_generate_project "Main" "src/VBox/Main" --begin-incs "include" "src/VBox/Main/include" --end-includes "src/VBox/Main" "include/VBox/com" "include/VBox/settings.h"
1154## @todo seperate webservices and Main. pick the right headers. added generated headers.
1155
1156# src/VBox/Network
1157my_generate_project "Net-DHCP" "src/VBox/NetworkServices/Dhcpd" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/Dhcpd"
1158my_generate_project "Net-NAT" "src/VBox/NetworkServices/NAT" --begin-incs "include" "src/VBox/NetworkServices/NAT" --end-includes "src/VBox/NetworkServices/NAT" "src/VBox/Devices/Network/slirp"
1159my_generate_project "Net-NetLib" "src/VBox/NetworkServices/NetLib" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/NetLib"
1160
1161# src/VBox/RDP
1162my_generate_project "RDP-Client" "src/VBox/RDP/client-1.8.4" --begin-incs "include" "src/VBox/RDP/client-1.8.4" --end-includes "src/VBox/RDP/client-1.8.4"
1163my_generate_project "RDP-Server" "src/VBox/RDP/server" --begin-incs "include" "src/VBox/RDP/server" --end-includes "src/VBox/RDP/server"
1164my_generate_project "RDP-WebClient" "src/VBox/RDP/webclient" --begin-incs "include" "src/VBox/RDP/webclient" --end-includes "src/VBox/RDP/webclient"
1165my_generate_project "RDP-Misc" "src/VBox/RDP" --begin-incs "include" --end-includes "src/VBox/RDP/auth" "src/VBox/RDP/tscpasswd" "src/VBox/RDP/x11server"
1166
1167# src/VBox/Storage
1168my_generate_project "Storage" "src/VBox/Storage" --begin-incs "include" "src/VBox/Storage" --end-includes "src/VBox/Storage"
1169
1170# src/VBox/ValidationKit
1171my_generate_project "ValidationKit" "src/VBox/ValidationKit" --begin-incs "include" --end-includes "src/VBox/ValidationKit"
1172
1173# src/VBox/ExtPacks
1174my_generate_project "ExtPacks" "src/VBox/ExtPacks" --begin-incs "include" --end-includes "src/VBox/ExtPacks"
1175
1176# src/bldprogs
1177my_generate_project "bldprogs" "src/bldprogs" --begin-incs "include" --end-includes "src/bldprogs"
1178
1179# A few things from src/lib
1180my_generate_project "zlib" "src/libs/zlib-1.2.11" --begin-incs "include" --end-includes "src/libs/zlib-1.2.11/*.c" "src/libs/zlib-1.2.11/*.h"
1181my_generate_project "liblzf" "src/libs/liblzf-3.4" --begin-incs "include" --end-includes "src/libs/liblzf-3.4"
1182my_generate_project "libpng" "src/libs/libpng-1.6.36" --begin-incs "include" --end-includes "src/libs/libpng-1.6.36/*.c" "src/libs/libpng-1.6.36/*.h"
1183my_generate_project "openssl" "src/libs/openssl-1.1.1g" --begin-incs "include" "src/libs/openssl-1.1.1g/crypto" --end-includes "src/libs/openssl-1.1.1g"
1184my_generate_project "curl" "src/libs/curl-7.64.0" --begin-incs "include" "src/libs/curl-7.64.0/include" --end-includes "src/libs/curl-7.64.0"
1185
1186# webtools
1187my_generate_project "webtools" "webtools" --begin-incs "include" "webtools/tinderbox/server/Tinderbox3" --end-includes "webtools"
1188
1189# include/VBox
1190my_generate_project "VBoxHeaders" "include" --begin-incs "include" --end-includes "include/VBox"
1191
1192# Misc
1193my_generate_project "misc" "." --begin-incs "include" --end-includes \
1194 "configure" \
1195 "configure.vbs" \
1196 "Config.kmk" \
1197 "Makefile.kmk" \
1198 "src/Makefile.kmk" \
1199 "src/VBox/Makefile.kmk" \
1200 "tools/env.sh" \
1201 "tools/env.cmd" \
1202 "tools/envSub.vbs" \
1203 "tools/envSub.cmd" \
1204 "tools/win/vbscript"
1205
1206
1207# out/x.y/z/bin/sdk/bindings/xpcom
1208XPCOM_INCS="src/libs/xpcom18a4"
1209for d in \
1210 "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/dist/sdk/bindings/xpcom" \
1211 "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/bin/sdk/bindings/xpcom" \
1212 "out/linux.amd64/debug/bin/sdk/bindings/xpcom" \
1213 "out/linux.x86/debug/bin/sdk/bindings/xpcom" \
1214 "out/darwin.amd64/debug/dist/sdk/bindings/xpcom" \
1215 "out/darwin.x86/debug/bin/dist/bindings/xpcom" \
1216 "out/haiku.amd64/debug/bin/sdk/bindings/xpcom" \
1217 "out/haiku.x86/debug/bin/sdk/bindings/xpcom" \
1218 "out/solaris.amd64/debug/bin/sdk/bindings/xpcom" \
1219 "out/solaris.x86/debug/bin/sdk/bindings/xpcom";
1220do
1221 if test -d "${MY_ROOT_DIR}/${d}"; then
1222 my_generate_project "SDK-xpcom" "${d}" --begin-incs "include" "${d}/include" --end-includes "${d}"
1223 XPCOM_INCS="${d}/include"
1224 break
1225 fi
1226done
1227
1228# lib/xpcom
1229my_generate_project "xpcom" "src/libs/xpcom18a4" --begin-incs "include" "${XPCOM_INCS}" --end-includes "src/libs/xpcom18a4"
1230
1231my_generate_workspace
1232
1233
1234#
1235# Update the history file if present.
1236#
1237MY_FILE="${MY_WS_NAME}histu"
1238if test -f "${MY_FILE}"; then
1239 echo "Updating ${MY_FILE}..."
1240 ${MY_MV} -f "${MY_FILE}" "${MY_FILE}.old"
1241 ${MY_SED} -n \
1242 -e '/PROJECT_CACHE/d' \
1243 -e '/\[TreeExpansion2\]/d' \
1244 -e '/^\[/p' \
1245 -e '/: /p' \
1246 -e '/^CurrentProject/p' \
1247 "${MY_FILE}.old" > "${MY_FILE}"
1248fi
1249
1250
1251#
1252# Generate and update the usercpp.h/unxcpp.h file.
1253#
1254my_generate_usercpp_h
1255
1256
1257echo "done"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette