Last active
May 3, 2025 16:05
-
-
Save kompowiec/0ff831364c520599a1646d287c8c8112 to your computer and use it in GitHub Desktop.
config vvv script to adopt FHS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Resolve the script location (symlink-safe) | |
| SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)" | |
| # Set the root of the app (we assume bin/ is next to lib/) | |
| VVV_ROOT="$(dirname "$SCRIPT_DIR")/lib/vvv" | |
| # Change directory to where the actual app lives | |
| cd "$VVV_ROOT" || exit 1 | |
| # Set up environment | |
| export LD_LIBRARY_PATH="$VVV_ROOT/firebird" | |
| export FIREBIRD="$VVV_ROOT" | |
| # Launch the app | |
| exec "$VVV_ROOT/vvv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment