Skip to content

Instantly share code, notes, and snippets.

@kompowiec
Last active May 3, 2025 16:05
Show Gist options
  • Save kompowiec/0ff831364c520599a1646d287c8c8112 to your computer and use it in GitHub Desktop.
Save kompowiec/0ff831364c520599a1646d287c8c8112 to your computer and use it in GitHub Desktop.
config vvv script to adopt FHS
#!/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