mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- include ragel and lemon - rename pre-generated files to ".cc" so that they are more recognizable as being different from regular file content.
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
#------------------------------------------------------------------------------
|
|
# ========= |
|
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
# \\ / O peration |
|
|
# \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
|
# \\/ M anipulation |
|
|
#-------------------------------------------------------------------------------
|
|
# License
|
|
# This file is part of OpenFOAM, licensed under GNU General Public License
|
|
# <http://www.gnu.org/licenses/>.
|
|
#
|
|
# Script
|
|
# wrap-lemon
|
|
#
|
|
# Usage
|
|
# wrap-lemon [lemon-options]
|
|
#
|
|
# Description
|
|
# A wrapper to use lemon compiled with OpenFOAM with the appropriate
|
|
# parser template.
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
binDir="${WMAKE_BIN:-$WM_PROJECT_DIR/wmake/platforms/$WM_ARCH$WM_COMPILER}"
|
|
etcDir="${WM_DIR:-$WM_PROJECT_DIR/wmake}/etc"
|
|
|
|
# Or another location
|
|
"$binDir/lemon" "-T${etcDir}/lempar.c" $*
|
|
rc=$?
|
|
|
|
exit "$rc" # Exit with lemon return code
|
|
|
|
#------------------------------------------------------------------------------
|