|
@@ -16,7 +16,24 @@ Required script that compiles source code into binaries.
|
|
|
- With `simpleBuildEnvironment` flag: Build directory (source tree is copied first)
|
|
- With `simpleBuildEnvironment` flag: Build directory (source tree is copied first)
|
|
|
|
|
|
|
|
**Environment Variables**:
|
|
**Environment Variables**:
|
|
|
-- `USM_DESTDIR`, `USM_PREFIX`, `USM_BINDIR`, etc. are set
|
|
|
|
|
|
|
+USM sets these non-prefixed variables for execs:
|
|
|
|
|
+- `DESTDIR`: Destination directory
|
|
|
|
|
+- `PREFIX`: Installation prefix
|
|
|
|
|
+- `BINDIR`: Binary directory
|
|
|
|
|
+- `INCLUDEDIR`: Include directory
|
|
|
|
|
+- `DATADIR`: Data directory
|
|
|
|
|
+- `INFODIR`: Info directory
|
|
|
|
|
+- `LIBDIR`: Library directory
|
|
|
|
|
+- `MANDIR`: Manual directory
|
|
|
|
|
+- `LIBEXECDIR`: Libexec directory
|
|
|
|
|
+- `LOCALEDIR`: Locale directory
|
|
|
|
|
+- `LOCALSTATEDIR`: Local state directory
|
|
|
|
|
+- `SBINDIR`: System binary directory
|
|
|
|
|
+- `SHAREDSTATEDIR`: Shared state directory
|
|
|
|
|
+- `SYSCONFIGDIR`: Configuration directory
|
|
|
|
|
+- `TAGSDIR`: Tags directory
|
|
|
|
|
+
|
|
|
|
|
+Note: The `USM_*` prefixed environment variables are for the USM process itself and should not be used in exec scripts.
|
|
|
|
|
|
|
|
**Example**:
|
|
**Example**:
|
|
|
```bash
|
|
```bash
|
|
@@ -160,7 +177,8 @@ Optional script that runs tests after build but before installation.
|
|
|
- With `simpleBuildEnvironment` flag: Build directory
|
|
- With `simpleBuildEnvironment` flag: Build directory
|
|
|
|
|
|
|
|
**Environment Variables**:
|
|
**Environment Variables**:
|
|
|
-- `USM_DESTDIR`, `USM_PREFIX`, `USM_BINDIR`, etc. are set
|
|
|
|
|
|
|
+USM sets the same non-prefixed variables as described in the build script section:
|
|
|
|
|
+- `DESTDIR`, `PREFIX`, `BINDIR`, `INCLUDEDIR`, `DATADIR`, `INFODIR`, `LIBDIR`, `MANDIR`, `LIBEXECDIR`, `LOCALEDIR`, `LOCALSTATEDIR`, `SBINDIR`, `SHAREDSTATEDIR`, `SYSCONFIGDIR`, `TAGSDIR`
|
|
|
|
|
|
|
|
**Use Case**: Unit tests, integration tests, validation of build artifacts
|
|
**Use Case**: Unit tests, integration tests, validation of build artifacts
|
|
|
|
|
|
|
@@ -196,7 +214,9 @@ Scripts should:
|
|
|
- Handle cleanup on failure
|
|
- Handle cleanup on failure
|
|
|
|
|
|
|
|
### Environment Variables
|
|
### Environment Variables
|
|
|
-USM sets these variables for all scripts:
|
|
|
|
|
|
|
+
|
|
|
|
|
+#### USM Process Variables (Internal Use)
|
|
|
|
|
+The following `USM_*` prefixed environment variables are used by the USM process itself to configure paths:
|
|
|
- `USM_DESTDIR`: Destination directory
|
|
- `USM_DESTDIR`: Destination directory
|
|
|
- `USM_PREFIX`: Installation prefix
|
|
- `USM_PREFIX`: Installation prefix
|
|
|
- `USM_BINDIR`: Binary directory
|
|
- `USM_BINDIR`: Binary directory
|
|
@@ -212,6 +232,27 @@ USM sets these variables for all scripts:
|
|
|
- `USM_SHAREDSTATEDIR`: Shared state directory
|
|
- `USM_SHAREDSTATEDIR`: Shared state directory
|
|
|
- `USM_SYSCONFIGDIR`: Configuration directory
|
|
- `USM_SYSCONFIGDIR`: Configuration directory
|
|
|
- `USM_TAGSDIR`: Tags directory
|
|
- `USM_TAGSDIR`: Tags directory
|
|
|
|
|
+- `USM_CONFIGDIR`: USM configuration directory
|
|
|
|
|
+
|
|
|
|
|
+#### Executable Script Variables (For Scripts)
|
|
|
|
|
+USM sets these non-prefixed variables for all executable scripts:
|
|
|
|
|
+- `DESTDIR`: Destination directory
|
|
|
|
|
+- `PREFIX`: Installation prefix
|
|
|
|
|
+- `BINDIR`: Binary directory
|
|
|
|
|
+- `INCLUDEDIR`: Include directory
|
|
|
|
|
+- `DATADIR`: Data directory
|
|
|
|
|
+- `INFODIR`: Info directory
|
|
|
|
|
+- `LIBDIR`: Library directory
|
|
|
|
|
+- `MANDIR`: Manual directory
|
|
|
|
|
+- `LIBEXECDIR`: Libexec directory
|
|
|
|
|
+- `LOCALEDIR`: Locale directory
|
|
|
|
|
+- `LOCALSTATEDIR`: Local state directory
|
|
|
|
|
+- `SBINDIR`: System binary directory
|
|
|
|
|
+- `SHAREDSTATEDIR`: Shared state directory
|
|
|
|
|
+- `SYSCONFIGDIR`: Configuration directory
|
|
|
|
|
+- `TAGSDIR`: Tags directory
|
|
|
|
|
+
|
|
|
|
|
+**Important**: Executable scripts should use the non-prefixed variables (e.g., `${PREFIX}`, `${LIBDIR}`) and NOT the `USM_*` prefixed variables, which are for internal USM process use only.
|
|
|
|
|
|
|
|
## Script Locations
|
|
## Script Locations
|
|
|
|
|
|