https://github.com/bolt/bolt-distribution
Some simple scripts to package the Bolt distros
https://github.com/bolt/bolt-distribution
Last synced: 2 months ago
JSON representation
Some simple scripts to package the Bolt distros
- Host: GitHub
- URL: https://github.com/bolt/bolt-distribution
- Owner: bolt
- Created: 2012-09-23T19:44:31.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T06:08:54.000Z (about 7 years ago)
- Last Synced: 2025-03-11T22:19:26.657Z (over 1 year ago)
- Language: Shell
- Size: 21.3 MB
- Stars: 3
- Watchers: 16
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bolt-distribution
=================
Some simple scripts to package the Bolt distribution files.
Custom Event Script
-------------------
You can add a file called `custom.sh` that defines two functions that will be
called just before the archive is made and again after it is complete.
The basic layout example of `custom.sh`:
```bash
#!/bin/sh
function custom_pre_archive {
echo "Pre archive function"
}
function custom_post_archive {
echo "Post archive function"
}
```
The following variables will be available:
* `VERSION` — The version string to use
* `$PACKAGE` — Base name of the package, i.e. `bolt-$VERSION`
* `$BUILD_DIR` — Root directory used for the build process
* `$COMPILE_DIR` — Directory that the Composer package build is done
* `$SHIPPING_DIR` — Directory the archive files are created from
* `$ARCHIVE_DIR` — Directory archive files are written to