gen-slickedit-workspace.sh revision cd067b13d68073010d991a799dcc150bcd7ad200
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# !kmk_ash
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# $Id$
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync## @file
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Script for generating a SlickEdit workspace.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# Copyright (C) 2009-2012 Oracle Corporation
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync#
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# available from http://www.virtualbox.org. This file is free software;
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# you can redistribute it and/or modify it under the terms of the GNU
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# General Public License (GPL) as published by the Free Software
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
5f0c5b2d5afe87dfb928856ca44aa3945208a41cvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Some constants.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_CAT="kmk_cat"
6ac8fe0fde42130ae04135392fd266beab4bc8a0vboxsyncMY_CP="kmk_cp"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_MKDIR="kmk_mkdir"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_MV="kmk_mv"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_SED="kmk_sed"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_RM="kmk_rm"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_SLEEP="kmk_sleep"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_EXPR="kmk_expr"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_SVN="svn"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#MY_SORT="kmk_cat"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_SORT="sort"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Globals.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_PROJECT_FILES=""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_OUT_DIRS="\
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE} \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/${BUILD_TYPE} \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/release \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/release \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/linux.amd64/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/linux.x86/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/win.amd64/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/win.x86/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/darwin.amd64/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/darwin.x86/debug \
52bed2ea7bb9b45459e625ed3eec20ba9d9156c2vboxsyncout/haiku.amd64/debug \
52bed2ea7bb9b45459e625ed3eec20ba9d9156c2vboxsyncout/haiku.x86/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/solaris.amd64/debug \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncout/solaris.x86/debug";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Parameters w/ defaults.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_ROOT_DIR=".."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_OUT_DIR="SlickEdit"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_PRJ_PRF="VBox-"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_WS_NAME="VirtualBox.vpw"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_DBG=""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_WINDOWS_HOST=""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_OPT_MINIMAL=""
14babbf2edee28b416f416f60275c8a4eb70f024vboxsyncMY_OPT_USE_WILDCARDS="yes"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#MY_KBUILD_PATH="${KBUILD_PATH}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#test -z "${MY_KBUILD_PATH}" && MY_KBUILD_PATH="${PATH_KBUILD}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#MY_KBUILD=""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Gets the absolute path to an existing directory.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The path.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_abs_dir()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -n "${PWD}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && echo ${PWD}`
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync else
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # old cygwin shell has no PWD and need adjusting.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_ABS_DIR=`cd ${MY_ROOT_DIR}/${1} && pwd | ${MY_SED} -e 's,^/cygdrive/\(.\)/,\1:/,'`
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -z "${MY_ABS_DIR}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_ABS_DIR="${1}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Gets the file name part of a path.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The path.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_get_name()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync SAVED_IFS=$IFS
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync IFS=":/ "
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync set $1
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync while test $# -gt 1 -a -n "${2}";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync IFS=$SAVED_IFS
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #echo "$1"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync export MY_GET_NAME=$1
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate file entry for the specified file if it was found to be of interest.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The output file name base.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2 The file name.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $3 Optional folder override.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_file()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # sort and filter by file type.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync case "$2" in
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # drop these.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *.kup|*~|*.pyc|*.exe|*.sys|*.dll|*.o|*.obj|*.lib|*.a|*.ko)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync return 0
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # by prefix or directory component.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync tst*|*/testcase/*)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FOLDER="$1-Testcases.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # by extension.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync *.c|*.cpp|*.m|*.mm|*.pl|*.py|*.as|*.c.h|*.cpp.h|*.java)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FOLDER="$1-Sources.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *.h|*.hpp|*.mm)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FOLDER="$1-Headers.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *.asm|*.s|*.S|*.inc|*.mac)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FOLDER="$1-Assembly.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FOLDER="$1-Others.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync esac
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsync if test -n "$3";
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync then
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync MY_FOLDER="$1-$3.lst"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ## @todo only files which are in subversion.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# if ${MY_SVN} info "${2}" > /dev/null 2>&1; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_get_name "${2}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <!-- sortkey: '"${MY_GET_NAME}"' --> <F N="'"${2}"'"/>' >> "${MY_FOLDER}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync##
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# Generate file entry for the specified file if it was found to be of interest.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync#
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $1 The output file name base.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $2 The wildcard spec.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# @param $3 Optional folder override.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsyncmy_wildcard()
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync{
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync if test -n "$3"; then
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync MY_FOLDER="$1-$3.lst"
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync else
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync MY_FOLDER="$1-All.lst"
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync fi
b1712d36b102c2f072ffbcf69c159cc57a904fd9vboxsync EXCLUDES="*.log;*.kup;*~;*.pyc;*.exe;*.sys;*.dll;*.o;*.obj;*.lib;*.a;*.ko;*.class;*.cvsignore;*.done;*.project;*.actionScriptProperties;*.scm-settings;.svn/*"
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync echo ' <F N="'"${2}"'/*" Recurse="1" Excludes="'"${EXCLUDES}"'"/>' >> "${MY_FOLDER}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync}
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate file entries for the specified sub-directory tree.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The output filename.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2 The sub-directory.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync# @param $3 Optional folder override.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_sub_tree()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -n "$MY_DBG"; then echo "dbg: my_sub_tree: ${2}"; fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Skip .svn directories.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync case "$2" in
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync */.svn|*/.svn)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync return 0
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync esac
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Process the files in the directory.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync for f in $2/*;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -d "${f}";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync my_sub_tree "${1}" "${f}" "${3}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync else
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync my_file "${1}" "${f}" "${3}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync return 0;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate folders for the specified directories and files.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The output (base) file name.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2+ The files and directories to traverse.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_folder()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FILE="$1"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Zap existing file collections.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync > "${MY_FILE}-All.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync > "${MY_FILE}-Sources.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync > "${MY_FILE}-Headers.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync > "${MY_FILE}-Assembly.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync > "${MY_FILE}-Testcases.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync > "${MY_FILE}-Others.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Traverse the directories and files.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync while test $# -ge 1 -a -n "${1}";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync for f in ${MY_ROOT_DIR}/$1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -d "${f}";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsync if test -z "${MY_OPT_USE_WILDCARDS}";
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync then
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync my_sub_tree "${MY_FILE}" "${f}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync else
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync case "${f}" in
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsync ${MY_ROOT_DIR}/include*)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync #my_sub_tree "${MY_FILE}" "${f}" "Headers"
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync my_wildcard "${MY_FILE}" "${f}" "Headers"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync ;;
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsync *) my_wildcard "${MY_FILE}" "${f}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync ;;
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync esac
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync else
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_file "${MY_FILE}" "${f}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Generate the folders.
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync if test -s "${MY_FILE}-All.lst";
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync then
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync ${MY_SORT} "${MY_FILE}-All.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -s "${MY_FILE}-Sources.lst";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Sources" Filters="*.c;*.cpp;*.cpp.h;*.c.h;*.m;*.mm;*.pl;*.py;*.as">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Sources.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Folder>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -s "${MY_FILE}-Headers.lst";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsync if test -z "${MY_OPT_USE_WILDCARDS}";
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync then
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync echo ' <Folder Name="Headers" Filters="*.h;*.hpp">' >> "${MY_FILE}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync else
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync echo ' <Folder Name="Headers" Filters="">' >> "${MY_FILE}"
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Headers.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Folder>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -s "${MY_FILE}-Assembly.lst";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Assembly" Filters="*.asm;*.s;*.S;*.inc;*.mac">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Assembly.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Folder>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -s "${MY_FILE}-Testcases.lst";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Testcases" Filters="tst*;">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Testcases.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Folder>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -s "${MY_FILE}-Others.lst";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Folder Name="Others" Filters="">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SORT} "${MY_FILE}-Others.lst" | ${MY_SED} -e 's/<!-- sortkey: [^>]*>/ /' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Folder>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Cleanup
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync ${MY_RM} "${MY_FILE}-All.lst" "${MY_FILE}-Sources.lst" "${MY_FILE}-Headers.lst" "${MY_FILE}-Assembly.lst" \
14babbf2edee28b416f416f60275c8a4eb70f024vboxsync "${MY_FILE}-Testcases.lst" "${MY_FILE}-Others.lst"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Function generating a project.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $1 The project file name.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $2 The project working directory.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $3 Dummy separator.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $4+ Include directories.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $N --end-includes
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# @param $N+1 Directory sub-trees and files to include in the project.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FILE="${MY_PRJ_PRF}${1}.vpj";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "Generating ${MY_FILE}..."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_WRK_DIR="${2}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Add it to the project list for workspace construction later on.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_PROJECT_FILES="${MY_PROJECT_FILES} ${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Generate the head bits.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">' > "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<Project' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' Version="10.0"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' VendorName="SlickEdit"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' VCSProject="Subversion:"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# echo ' Customized="1"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# echo ' WorkingDir="."' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_abs_dir "${MY_WRK_DIR}" >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' WorkingDir="'"${MY_ABS_DIR}"'"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' >' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Config Name="Release" OutputFile="" CompilerConfigName="Latest Version">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Menu>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Compile" MenuCaption="&amp;Compile" CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' SaveOption="SaveCurrent" RunFromDir="%p" ClearProcessBuffer="1">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Exec CmdLine="'"${MY_KMK_INVOCATION}"' -C %p %n.o"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Target>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Build" MenuCaption="&amp;Build"CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' SaveOption="SaveWorkspaceFiles" RunFromDir="%rw" ClearProcessBuffer="1">' >> "${MY_FILE}"
2c7d4e9e38744aab50f42ed520e4b337f453bdd2vboxsync echo ' <Exec CmdLine="'"${MY_KMK_INVOCATION}"' -C %rw"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Target>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Rebuild" MenuCaption="&amp;Rebuild" CaptureOutputWith="ProcessBuffer"' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' SaveOption="SaveWorkspaceFiles" RunFromDir="%rw" ClearProcessBuffer="1">' >> "${MY_FILE}"
2c7d4e9e38744aab50f42ed520e4b337f453bdd2vboxsync echo ' <Exec CmdLine="'"${MY_KMK_INVOCATION}"' -C %rw rebuild"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Target>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Debug" MenuCaption="&amp;Debug" SaveOption="SaveNone" RunFromDir="%rw">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Exec/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Target>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Target Name="Execute" MenuCaption="E&amp;xecute" SaveOption="SaveNone" RunFromDir="%rw">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Exec/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Target>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Menu>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Include directories.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Includes>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync while test $# -ge 1 -a "${1}" != "--end-includes";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync for f in $1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_abs_dir ${f}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Include Dir="'"${MY_ABS_DIR}/"'"/>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Includes>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Config>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # Process directories+files and create folders.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Files>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_generate_folder "${MY_FILE}" $*
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Files>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # The tail.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync #
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '</Project>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync return 0
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync##
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate the workspace
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_workspace()
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync{
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_FILE="${MY_WS_NAME}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "Generating ${MY_FILE}..."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<!DOCTYPE Workspace SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpw.dtd">' > "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '<Workspace Version="10.0" VendorName="SlickEdit">' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Projects>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync for i in ${MY_PROJECT_FILES};
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync do
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' <Project File="'"${i}"'" />' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync done
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ' </Projects>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo '</Workspace>' >> "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync return 0;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync}
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync##
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync# Generate stuff
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsyncmy_generate_usercpp_h()
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync{
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync #
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Probe the slickedit user config, picking the most recent version.
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync #
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync if test -z "${MY_SLICK_CONFIG}"; then
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync if test -d "${HOME}/Library/Application Support/Slickedit"; then
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICKDIR_="${HOME}/Library/Application Support/Slickedit"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_USERCPP_H="unxcpp.h"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_VSLICK_DB="vslick.stu"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync elif test -d "${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"; then
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICKDIR_="${HOMEDRIVE}${HOMEPATH}/Documents/My SlickEdit Config"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_USERCPP_H="usercpp.h"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_VSLICK_DB="vslick.sta"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync else
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICKDIR_="${HOME}/.slickedit"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_USERCPP_H="unxcpp.h"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_VSLICK_DB="vslick.stu"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync else
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICKDIR_="${MY_SLICK_CONFIG}"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync if test -n "${MY_WINDOWS_HOST}"; then
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_USERCPP_H="usercpp.h"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_VSLICK_DB="vslick.sta"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync else
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_USERCPP_H="unxcpp.h"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_VSLICK_DB="vslick.stu"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync fi
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync # MacOS: Implement me!
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_VER_NUM="0"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_VER="0.0.0"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync for subdir in "${MY_SLICKDIR_}/"*;
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync do
4d1e88383959db8538ba4ee78996184cd586af5fvboxsync if test -f "${subdir}/${MY_USERCPP_H}" -o -f "${subdir}/${MY_VSLICK_DB}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_CUR_VER_NUM=0
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_CUR_VER=`echo "${subdir}" | ${MY_SED} -e 's,^.*/,,g'`
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Convert the dotted version number to an integer, checking that
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # it is all numbers in the process.
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync set `echo "${MY_CUR_VER}" | ${MY_SED} 's/\./ /g' `
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync i=100000000
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync while test $# -gt 0;
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync do
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if ! ${MY_EXPR} "$1" + 1 > /dev/null 2> /dev/null; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_CUR_VER_NUM=0;
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync break
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if test "$i" -gt 0; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_CUR_VER_NUM=$((${MY_CUR_VER_NUM} + $1 * $i))
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync i=$(($i / 100))
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync shift
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync done
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # More recent that what we have?
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if test "${MY_CUR_VER_NUM}" -gt "${MY_VER_NUM}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_VER_NUM="${MY_CUR_VER_NUM}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_VER="${MY_CUR_VER}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync done
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_SLICKDIR="${MY_SLICKDIR_}/${MY_VER}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_USERCPP_H_FULL="${MY_SLICKDIR}/${MY_USERCPP_H}"
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync if test -d "${MY_SLICKDIR}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync echo "Found SlickEdit v${MY_VER} preprocessor file: ${MY_USERCPP_H_FULL}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync else
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync echo "Failed to locate SlickEdit preprocessor file. You need to manually merge ${MY_USERCPP_H}."
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_USERCPP_H_FULL=""
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Generate our
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_FILE="${MY_USERCPP_H}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} > ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IN_SLICKEDIT
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_C_DECLS_BEGIN
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_C_DECLS_END
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_NO_THROW
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_THROW(type) throw(type)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_GCC_EXTENSION'
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_COMPILER_GROKS_64BIT_BITFIELDS'
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_COMPILER_WITH_80BIT_LONG_DOUBLE'
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define ATL_NO_VTABLE
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define BEGIN_COM_MAP(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY2(a,b)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY3(a,b,c)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_INTERFACE_ENTRY4(a,b,c,d)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define END_COM_MAP(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COMGETTER(n) n
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COMSETTER(n) n
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define ComSafeArrayIn(t,a) t a[]
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define ComSafeArrayOut(t,a) t * a[]
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_CLASSFACTORY(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_CLASSFACTORY_SINGLETON(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_REGISTRY_RESOURCEID(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_NOT_AGGREGATABLE(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_PROTECT_FINAL_CONSTRUCT(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLARE_EMPTY_CTOR_DTOR(a) a(); ~a();
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DEFINE_EMPTY_CTOR_DTOR(a) a::a() {} a::~a() {}
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_DECL_ISUPPORTS
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHOD virtual nsresult
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHOD_(type) virtual type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHODIMP nsresult
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define NS_IMETHODIMP_(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PARSERS_EXPORT
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsyncEOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if test -n "${MY_WINDOWS_HOST}"; then
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} >> ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_STRUCT_OR_CLASS(I) struct I
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD(m) virtual HRESULT m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD_(type,m) virtual type m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP HRESULT
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP_(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsyncEOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync else
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} >> ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define COM_STRUCT_OR_CLASS(I) class I
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD(m) virtual nsresult m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHOD_(type,m) virtual type m
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP nsresult
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define STDMETHODIMP_(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsyncEOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} >> ${MY_FILE} <<EOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOX_SCRIPTABLE(a) public a
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOX_SCRIPTABLE_IMPL(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(a)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTX_SUFF(var) var##R3
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXAllSUFF(var) var##R3
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXSUFF(var) var##HC
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define OTHERCTXSUFF(var) var##GC
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXALLMID(first, last) first##R3##last
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXMID(first, last) first##HC##last
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define OTHERCTXMID(first, last) first##GC##last
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define CTXTYPE(GCType, R3Type, R0Type) R3Type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RCTYPE(RCType, HCType) RCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define GCTYPE(GCType, HCType) GCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RCPTRTYPE(RCType) RCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define GCPTRTYPE(GCType) GCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define HCPTRTYPE(HCType) HCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define R3R0PTRTYPE(HCType) HCType
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define R0PTRTYPE(R3Type) R3Type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define R3PTRTYPE(R0Type) R0Type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define RTCALL
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECLINLINE(type) inline type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECL_FORCE_INLINE(type) inline type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define DECL_INVALID(type) type
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PDMDEVINSINT_DECLARED 1
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOX_WITH_HGCM 1
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define VBOXCALL
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_CTX(a,b) b
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_CTX3(a,b,c) c
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME(name) PGM_GST_NAME_AMD64(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_REAL(name) PGM_CTX3(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_PROT(name) PGM_CTX3(pgm,GstProt,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_32BIT(name) PGM_CTX3(pgm,Gst32Bit,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_PAE(name) PGM_CTX3(pgm,GstPAE,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_NAME_AMD64(name) PGM_CTX3(pgm,GstAMD64,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_GST_DECL(type, name) type PGM_GST_NAME(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME(name) PGM_GST_NAME_AMD64(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_32BIT(name) PGM_CTX3(pgm,Shw32Bit,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_PAE(name) PGM_CTX3(pgm,ShwPAE,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_AMD64(name) PGM_CTX3(pgm,ShwAMD64,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_NESTED(name) PGM_CTX3(pgm,ShwNested,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_NAME_EPT(name) PGM_CTX3(pgm,ShwEPT,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_SHW_DECL(type, name) type PGM_SHW_NAME(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_AMD64(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_32BIT_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_32BIT_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_32BIT_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_PAE_PAE(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_AMD64_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_AMD64_AMD64(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_PAE(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_NESTED_AMD64(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_REAL(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_PROT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_32BIT(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_PAE(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_NAME_EPT_AMD64(name) PGM_CTX3(pgm,Bth,name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define PGM_BTH_DECL(type, name) type PGM_BTH_NAME(name)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_STUB(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) { return VERR_NOT_IMPLEMENTED; }
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_DEF(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#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)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_CIMPL_DEF_0(a_Name) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_CIMPL_DEF_1(a_Name, a_Type0, a_Name0) static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, , a_Type0 a_Name0)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#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)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#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)
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_MC_LOCAL(a_Type, a_Name) a_Type a_Name
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_MC_ARG(a_Type, a_Name, a_iArg) a_Type a_Name
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#define IEM_MC_ARG_CONST(a_Type, a_Name, a_Value, a_iArg) a_Type const a_Name = a_Value
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#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)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#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)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#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)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#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)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsyncEOF
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_HDR_FILES=` echo ${MY_ROOT_DIR}/include/VBox/*.h ${MY_ROOT_DIR}/include/VBox/vmm/*.h \
426c53fffc9356a86054850681c99fa3fed584aavboxsync | ${MY_SED} -e 's,${MY_ROOT_DIR}/include/VBox/err.h,,' `
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync MY_HDR_FILES="${MY_HDR_FILES} ${MY_ROOT_DIR}/include/iprt/cdefs.h"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_SED} \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/__cdecl/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/^ *# *define.*DECL/!d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/DECLS/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/DECLARE_CLS_/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/_SRC_POS_DECL/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/declspec/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/__attribute__/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e 's/# */#/g' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e 's/ */ /g' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/ DECLEXPORT_CLASS/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e 's/ *VBOXCALL//' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e 's/ *RTCALL//' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/ DECLASM(type) type/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/define *DECLINLINE(type)/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/define *DECL_FORCE_INLINE(type)/d' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e '/ *DECL_INVALID(/d' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync -e 's/(type) DECLHIDDEN(type)/(type) type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(type) DECLEXPORT(type)/(type) type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(type) DECLIMPORT(type)/(type) type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(a_Type) DECLHIDDEN(a_Type)/(a_Type) a_Type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(a_Type) DECLEXPORT(a_Type)/(a_Type) a_Type/' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync -e 's/(a_Type) DECLIMPORT(a_Type)/(a_Type) a_Type/' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync --append "${MY_FILE}" \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_HDR_FILES}
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync ${MY_CAT} "${MY_FILE}" \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e 's/_/\x1F/g' -e 's/(/\x1E/g' -e 's/[[:space:]][[:space:]]*/\x1C/g' \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e 's/\x1F/_/g' -e 's/\x1E/(/g' -e 's/\x1C/ /g' \
426c53fffc9356a86054850681c99fa3fed584aavboxsync | ${MY_SORT} \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e '/#define/s/$/ \/\/ vbox/' --output "${MY_FILE}.2"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
426c53fffc9356a86054850681c99fa3fed584aavboxsync # Eliminate duplicates.
426c53fffc9356a86054850681c99fa3fed584aavboxsync > "${MY_FILE}.3"
426c53fffc9356a86054850681c99fa3fed584aavboxsync exec < "${MY_FILE}.2"
426c53fffc9356a86054850681c99fa3fed584aavboxsync MY_PREV_DEFINE=""
426c53fffc9356a86054850681c99fa3fed584aavboxsync while read MY_LINE;
426c53fffc9356a86054850681c99fa3fed584aavboxsync do
426c53fffc9356a86054850681c99fa3fed584aavboxsync MY_DEFINE=`echo "${MY_LINE}" | ${MY_SED} -e 's/^#define \([^ ()]*\).*$/\1/' `
426c53fffc9356a86054850681c99fa3fed584aavboxsync if test "${MY_DEFINE}" != "${MY_PREV_DEFINE}"; then
426c53fffc9356a86054850681c99fa3fed584aavboxsync MY_PREV_DEFINE=${MY_DEFINE}
426c53fffc9356a86054850681c99fa3fed584aavboxsync echo "${MY_LINE}" >> "${MY_FILE}.3"
426c53fffc9356a86054850681c99fa3fed584aavboxsync fi
426c53fffc9356a86054850681c99fa3fed584aavboxsync done
426c53fffc9356a86054850681c99fa3fed584aavboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Append non-vbox bits from the current user config.
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync if test -n "${MY_USERCPP_H_FULL}" -a -f "${MY_USERCPP_H_FULL}"; then
426c53fffc9356a86054850681c99fa3fed584aavboxsync ${MY_SED} -e '/ \/\/ vbox$/d' -e '/^[[:space:]]*$/d' --append "${MY_FILE}.3" "${MY_USERCPP_H_FULL}"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Finalize the file (sort + blank lines).
426c53fffc9356a86054850681c99fa3fed584aavboxsync ${MY_CAT} "${MY_FILE}.3" \
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync | ${MY_SED} -e 's/$/\n/' --output "${MY_FILE}"
426c53fffc9356a86054850681c99fa3fed584aavboxsync ${MY_RM} -f "${MY_FILE}.2" "${MY_FILE}.3"
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync # Install it.
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync if test -n "${MY_USERCPP_H_FULL}" -a -d "${MY_SLICKDIR}"; then
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync if test -f "${MY_USERCPP_H_FULL}"; then
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync ${MY_MV} -vf "${MY_USERCPP_H_FULL}" "${MY_USERCPP_H_FULL}.bak"
d59daace49fbe8f236c1faf420e5ea433db71307vboxsync ${MY_CP} "${MY_FILE}" "${MY_USERCPP_H_FULL}"
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync echo "Updated the SlickEdit preprocessor file. (Previous version renamed to .bak.)"
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync else
d59daace49fbe8f236c1faf420e5ea433db71307vboxsync ${MY_CP} "${MY_FILE}" "${MY_USERCPP_H_FULL}"
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync echo "Created the SlickEdit preprocessor file."
735823c87250b8e5ca516e26ddbf38e6f4a681cfvboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync fi
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync}
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync###### end of functions ####
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Parse arguments.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncwhile test $# -ge 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncdo
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ARG=$1
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync case "$ARG" in
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --rootdir)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test $# -eq 0; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "error: missing --rootdir argument." 1>&2
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync exit 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_ROOT_DIR="$1"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --outdir)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test $# -eq 0; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "error: missing --outdir argument." 1>&2
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync exit 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_OUT_DIR="$1"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --project-base)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test $# -eq 0; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "error: missing --project-base argument." 1>&2
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync exit 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_PRJ_PRF="$1"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --workspace)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test $# -eq 0; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "error: missing --workspace argument." 1>&2
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync exit 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_WS_NAME="$1"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync shift
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --windows-host)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_WINDOWS_HOST=1
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --minimal)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_OPT_MINIMAL=1
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync --slickedit-config)
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync MY_SLICK_CONFIG="$1"
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync shift
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync ;;
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # usage
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --h*|-h*|-?|--?)
6eb325c304bc31eb32a0ef50178ed41927b11971vboxsync echo "usage: $0 [--rootdir <rootdir>] [--outdir <outdir>] [--project-base <prefix>] [--workspace <name>] [--minimal] [--slickedit-config <DIR>]"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo ""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "If --outdir is specified, you must specify a --rootdir relative to it as well."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync exit 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ;;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync # default
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync *)
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "error: Invalid parameter '$ARG'" 1>&2
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync exit 1;
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync esac
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncdone
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# From now on everything *MUST* succeed.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncset -e
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Make sure the output directory exists, is valid and clean.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync${MY_RM} -f \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "${MY_OUT_DIR}/${MY_PRJ_PRF}"*.vpj \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "${MY_OUT_DIR}/${MY_WS_NAME}" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "${MY_OUT_DIR}/`echo ${MY_WS_NAME} | ${MY_SED} -e 's/\.vpw$/.vtg/'`"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync${MY_MKDIR} -p "${MY_OUT_DIR}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsynccd "${MY_OUT_DIR}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Determine the invocation to conjure up kmk.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_abs_dir "tools"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncif test -n "${MY_WINDOWS_HOST}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync MY_KMK_INVOCATION="${MY_ABS_DIR}/win.x86/bin/rexx.exe ${MY_ABS_DIR}/envSub.cmd kmk.exe"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncelse
ce4d02a5d38678cce9979d5d5184c1fe108e2a97vboxsync MY_KMK_INVOCATION="/usr/bin/env LANG=C ${MY_ABS_DIR}/env.sh --quiet --no-wine kmk"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncfi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Generate the projects and workspace.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Note! The configs aren't optimal yet, lots of adjustment wrt headers left to be done.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Runtime
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "IPRT" "src/VBox/Runtime" --begin-incs "include" "src/VBox/Runtime/include" --end-includes "include/iprt" "src/VBox/Runtime"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/VMM
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VMM" "src/VBox/VMM" --begin-incs "include" "src/VBox/VMM" --end-includes "src/VBox/VMM" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/cfgm.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/cpum.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/dbgf.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/em.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/gmm.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/gvm.*" \
a20ffd9107eb9b5dbb374468364a0e94d4da6a29vboxsync "include/VBox/vmm/hm*.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/iom.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/mm.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/patm.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/pdm*.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/pgm.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/rem.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/selm.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/ssm.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/stam.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/tm.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/trpm.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/vm.*" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include/VBox/vmm/vmm.*"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/recompiler
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "REM" "src/recompiler" --begin-incs \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "include" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/recompiler" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/recompiler/target-i386" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/recompiler/tcg/i386" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/recompiler/Sun/crt" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync --end-includes \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/recompiler" \
5197fd638bc835c010085c88838e80c53b679e8avboxsync "src/VBox/VMM/include/REMInternal.h" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/VBox/VMM/VMMAll/REMAll.cpp"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Additions
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-freebsd" "src/VBox/Additions/freebsd" --begin-incs "include" "src/VBox/Additions/freebsd" --end-includes "src/VBox/Additions/freebsd"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-linux" "src/VBox/Additions/linux" --begin-incs "include" "src/VBox/Additions/linux" --end-includes "src/VBox/Additions/linux"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-os2" "src/VBox/Additions/os2" --begin-incs "include" "src/VBox/Additions/os2" --end-includes "src/VBox/Additions/os2"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-solaris" "src/VBox/Additions/solaris" --begin-incs "include" "src/VBox/Additions/solaris" --end-includes "src/VBox/Additions/solaris"
52bed2ea7bb9b45459e625ed3eec20ba9d9156c2vboxsyncmy_generate_project "Add-haiku" "src/VBox/Additions/haiku" --begin-incs "include" "src/VBox/Additions/haiku" --end-includes "src/VBox/Additions/haiku"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-win" "src/VBox/Additions/WINNT" --begin-incs "include" "src/VBox/Additions/WINNT" --end-includes "src/VBox/Additions/WINNT"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsynctest -z "$MY_OPT_MINIMAL" && \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-x11" "src/VBox/Additions/x11" --begin-incs "include" "src/VBox/Additions/x11" --end-includes "src/VBox/Additions/x11"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-Control" "src/VBox/Additions/common/VBoxControl" --begin-incs "include" "src/VBox/Additions/common/VBoxControl" --end-includes "src/VBox/Additions/common/VBoxControl"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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*.*"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-Lib" "src/VBox/Additions/common/VBoxGuestLib" --begin-incs "include" "src/VBox/Additions/common/VBoxGuestLib" --end-includes "src/VBox/Additions/common/VBoxGuestLib" "include/VBox/VBoxGuest*.*"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Add-Service" "src/VBox/Additions/common/VBoxService" --begin-incs "include" "src/VBox/Additions/common/VBoxService" --end-includes "src/VBox/Additions/common/VBoxService"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsyncif test -z "$MY_OPT_MINIMAL"; then
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsync my_generate_project "Add-crOpenGL" "src/VBox/Additions/common/crOpenGL" --begin-incs "include" "src/VBox/Additions/common/crOpenGL" --end-includes "src/VBox/Additions/common/crOpenGL"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsync 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"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsync 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"
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsyncfi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Debugger
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Devices
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync## @todo split this up.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Disassembler
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "DIS" "src/VBox/Disassembler" --begin-incs "include" "src/VBox/Disassembler" --end-includes "src/VBox/Disassembler" "include/VBox/dis*.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Frontends
8eb8e4d09dcacdb4546c70a3f62b6c4865182004vboxsynctest -z "$MY_OPT_MINIMAL" && \
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxBalloonCtrl" "src/VBox/Frontends/VBoxBalloonCtrl" --begin-incs "include" "src/VBox/Frontends/VBoxBalloonCtrl" --end-includes "src/VBox/Frontends/VBoxBalloonCtrl"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxManage" "src/VBox/Frontends/VBoxManage" --begin-incs "include" "src/VBox/Frontends/VBoxManage" --end-includes "src/VBox/Frontends/VBoxManage"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxHeadless" "src/VBox/Frontends/VBoxHeadless" --begin-incs "include" "src/VBox/Frontends/VBoxHeadless" --end-includes "src/VBox/Frontends/VBoxHeadless"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxSDL" "src/VBox/Frontends/VBoxSDL" --begin-incs "include" "src/VBox/Frontends/VBoxSDL" --end-includes "src/VBox/Frontends/VBoxSDL"
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "FE-VBoxShell" "src/VBox/Frontends/VBoxShell" --begin-incs "include" "src/VBox/Frontends/VBoxShell" --end-includes "src/VBox/Frontends/VBoxShell"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# noise - my_generate_project "FE-VBoxBFE" "src/VBox/Frontends/VBoxBFE" --begin-incs "include" "src/VBox/Frontends/VBoxBFE" --end-includes "src/VBox/Frontends/VBoxBFE"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncFE_VBOX_WRAPPERS=""
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncfor d in ${MY_OUT_DIRS};
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncdo
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -d "${MY_ROOT_DIR}/${d}/obj/VirtualBox/include"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync FE_VBOX_WRAPPERS="${d}/obj/VirtualBox/include"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync break
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncdone
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncif test -n "${FE_VBOX_WRAPPERS}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync 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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncelse
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_generate_project "FE-VirtualBox" "src/VBox/Frontends/VirtualBox" --begin-incs "include" --end-includes "src/VBox/Frontends/VirtualBox"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncfi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/GuestHost
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "HGSMI-GH" "src/VBox/GuestHost/HGSMI" --begin-incs "include" --end-includes "src/VBox/GuestHost/HGSMI"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsynctest -z "$MY_OPT_MINIMAL" && \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "OpenGL-GH" "src/VBox/GuestHost/OpenGL" --begin-incs "include" "src/VBox/GuestHost/OpenGL" --end-includes "src/VBox/GuestHost/OpenGL"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "ShClip-GH" "src/VBox/GuestHost/SharedClipboard" --begin-incs "include" --end-includes "src/VBox/GuestHost/SharedClipboard"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/HostDrivers
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VBoxNetAdp" "src/VBox/HostDrivers/VBoxNetAdp" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetAdp" --end-includes "src/VBox/HostDrivers/VBoxNetAdp" "include/VBox/intnet.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VBoxNetFlt" "src/VBox/HostDrivers/VBoxNetFlt" --begin-incs "include" "src/VBox/HostDrivers/VBoxNetFlt" --end-includes "src/VBox/HostDrivers/VBoxNetFlt" "include/VBox/intnet.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/HostServices
15d0bc0af99a0ae9b04ad6bd83e26b6d2b2c436dvboxsyncmy_generate_project "GuestCntl" "src/VBox/HostServices/GuestControl" --begin-incs "include" "src/VBox/HostServices/GuestControl" --end-includes "src/VBox/HostServices/GuestControl"
99f33ab590a3a65e0cd082dd8d67779efb9cc6c9vboxsyncmy_generate_project "DragAndDrop" "src/VBox/HostServices/DragAndDrop" --begin-incs "include" "src/VBox/HostServices/DragAndDrop" --end-includes "src/VBox/HostServices/DragAndDrop"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "GuestProps" "src/VBox/HostServices/GuestProperties" --begin-incs "include" "src/VBox/HostServices/GuestProperties" --end-includes "src/VBox/HostServices/GuestProperties"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "ShClip-HS" "src/VBox/HostServices/SharedClipboard" --begin-incs "include" "src/VBox/HostServices/SharedClipboard" --end-includes "src/VBox/HostServices/SharedClipboard"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "SharedFolders" "src/VBox/HostServices/SharedFolders" --begin-incs "include" "src/VBox/HostServices/SharedFolders" --end-includes "src/VBox/HostServices/SharedFolders" "include/VBox/shflsvc.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "OpenGL-HS" "src/VBox/HostServices/SharedOpenGL" --begin-incs "include" "src/VBox/HostServices/SharedOpenGL" --end-includes "src/VBox/HostServices/SharedOpenGL"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/ImageMounter
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "ImageMounter" "src/VBox/ImageMounter" --begin-incs "include" "src/VBox/ImageMounter" --end-includes "src/VBox/ImageMounter"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Installer
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Installers" "src/VBox/Installer" --begin-incs "include" --end-includes "src/VBox/Installer"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Main
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync## @todo seperate webservices and Main. pick the right headers. added generated headers.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/Network
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Net-DHCP" "src/VBox/NetworkServices/DHCP" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/DHCP"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_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"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "Net-NetLib" "src/VBox/NetworkServices/NetLib" --begin-incs "include" "src/VBox/NetworkServices/NetLib" --end-includes "src/VBox/NetworkServices/NetLib"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/VBox/RDP
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-Client" "src/VBox/RDP/client" --begin-incs "include" "src/VBox/RDP/client" --end-includes "src/VBox/RDP/client"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-Server" "src/VBox/RDP/server" --begin-incs "include" "src/VBox/RDP/server" --end-includes "src/VBox/RDP/server"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-WebClient" "src/VBox/RDP/webclient" --begin-incs "include" "src/VBox/RDP/webclient" --end-includes "src/VBox/RDP/webclient"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "RDP-Misc" "src/VBox/RDP" --begin-incs "include" --end-includes "src/VBox/RDP/auth" "src/VBox/RDP/tscpasswd" "src/VBox/RDP/x11server"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
520637928b45b463d48e69f52a2abe2ca9a20376vboxsync# src/VBox/ValidationKit
520637928b45b463d48e69f52a2abe2ca9a20376vboxsyncmy_generate_project "ValidationKit" "src/VBox/ValidationKit" --begin-incs "include" --end-includes "src/VBox/ValidationKit"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
731dbcc3587a229b6393174190bb13655a1e35fcvboxsync# src/VBox/ExtPacks
731dbcc3587a229b6393174190bb13655a1e35fcvboxsyncmy_generate_project "ExtPacks" "src/VBox/ExtPacks" --begin-incs "include" --end-includes "src/VBox/ExtPacks"
731dbcc3587a229b6393174190bb13655a1e35fcvboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/apps/adpctl - misplaced.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "adpctl" "src/apps/adpctl" --begin-incs "include" --end-includes "src/apps/adpctl"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# src/bldprogs
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "bldprogs" "src/bldprogs" --begin-incs "include" --end-includes "src/bldprogs"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# A few things from src/lib
9c270e8f3ab6583ab1e207352c38e6dd99d8a574vboxsyncmy_generate_project "zlib" "src/libs/zlib-1.2.6" --begin-incs "include" --end-includes "src/libs/zlib-1.2.6/*.c" "src/libs/zlib-1.2.6/*.h"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "liblzf" "src/libs/liblzf-3.4" --begin-incs "include" --end-includes "src/libs/liblzf-3.4"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "libpng" "src/libs/libpng-1.2.8" --begin-incs "include" --end-includes "src/libs/libpng-1.2.8/*.c" "src/libs/libpng-1.2.8/*.h"
cd067b13d68073010d991a799dcc150bcd7ad200vboxsyncmy_generate_project "openssl" "src/libs/openssl-1.0.1k" --begin-incs "include" "src/libs/openssl-1.0.1k/crypto" --end-includes "src/libs/openssl-1.0.1k"
1025ef7261a6961d07d390e85a095d806ccb88d9vboxsyncmy_generate_project "kStuff" "src/libs/kStuff" --begin-incs "include" "src/libs/kStuff/kStuff/include" --end-includes "src/libs/kStuff"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# include/VBox
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "VBoxHeaders" "include" --begin-incs "include" --end-includes "include/VBox"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Misc
c559f1bab5aa642d822cac610c9e2be4e7a2ff54vboxsyncmy_generate_project "misc" "." --begin-incs "include" --end-includes \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "configure" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "configure.vbs" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "Config.kmk" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "Makefile.kmk" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/Makefile.kmk" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "src/VBox/Makefile.kmk"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# out/x.y/z/bin/sdk/bindings/xpcom
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncXPCOM_INCS="src/libs/xpcom18a4"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncfor d in \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/dist/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/${BUILD_TYPE}/dist/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${KBUILD_TARGET}.${KBUILD_TARGET_ARCH}/${KBUILD_TYPE}/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/${BUILD_TARGET}.${BUILD_TARGET_ARCH}/${BUILD_TYPE}/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/linux.amd64/debug/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/linux.x86/debug/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/darwin.amd64/debug/dist/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/darwin.x86/debug/bin/dist/bindings/xpcom" \
52bed2ea7bb9b45459e625ed3eec20ba9d9156c2vboxsync "out/haiku.amd64/debug/bin/sdk/bindings/xpcom" \
52bed2ea7bb9b45459e625ed3eec20ba9d9156c2vboxsync "out/haiku.x86/debug/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/solaris.amd64/debug/bin/sdk/bindings/xpcom" \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "out/solaris.x86/debug/bin/sdk/bindings/xpcom";
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncdo
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync if test -d "${MY_ROOT_DIR}/${d}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync my_generate_project "SDK-xpcom" "${d}" --begin-incs "include" "${d}/include" --end-includes "${d}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync XPCOM_INCS="${d}/include"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync break
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync fi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncdone
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# lib/xpcom
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_project "xpcom" "src/libs/xpcom18a4" --begin-incs "include" "${XPCOM_INCS}" --end-includes "src/libs/xpcom18a4"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncmy_generate_workspace
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync# Update the history file if present.
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync#
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncMY_FILE="${MY_WS_NAME}histu"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncif test -f "${MY_FILE}"; then
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync echo "Updating ${MY_FILE}..."
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_MV} -f "${MY_FILE}" "${MY_FILE}.old"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync ${MY_SED} -n \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/PROJECT_CACHE/d' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/\[TreeExpansion2\]/d' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/^\[/p' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/: /p' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync -e '/^CurrentProject/p' \
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync "${MY_FILE}.old" > "${MY_FILE}"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncfi
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync# Generate and update the usercpp.h/unxcpp.h file.
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync#
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsyncmy_generate_usercpp_h
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
38a7bc0e7d0ee3db3c8aa3862907d5cb9792dc51vboxsync
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsyncecho "done"
cac6f24ef29dfb7bea51e8846272e278b16ee5d8vboxsync