Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/just-paja/bash-builder
Small tool that concatenates your scripts into one file. Nice if you need to run scripts on remote servers
https://github.com/just-paja/bash-builder
Last synced: 21 days ago
JSON representation
Small tool that concatenates your scripts into one file. Nice if you need to run scripts on remote servers
- Host: GitHub
- URL: https://github.com/just-paja/bash-builder
- Owner: just-paja
- License: mit
- Created: 2015-11-29T10:37:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-13T23:14:00.000Z (almost 9 years ago)
- Last Synced: 2024-10-05T16:20:41.179Z (about 1 month ago)
- Language: Shell
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bash-builder
Small tool that concatenates your scripts into one file. Nice if you need to run scripts on remote servers or create autorun script archive that self-extracts, but also is capable of reading getopt.
Files that are to be packed into the script are called inlines. It could be anything from configuration files, across all sorts of binaries or images to ascii art.
Works on Linux, theoretically could work on all UNIX platforms.
## Requirements
* Bash
* getopt
* file
* ssh
* tar## Installation
Clone git repository link or point "bash-builder" executable in your `$PATH`.
## Usage
You can create your own bash script workspace by running `bash-builder -w`. It only creates `.bash-builder` file in your cwd. It then expects you to have all projects in `projects` directory. You can choose between global, local and project inlines.
### Example directory structure
```
repository
| .bash-builder
| projects
| | test
| | | inline
| | | | vars.sh
| | | scripts
| | | | run.sh
| | | pre-run.sh
| | | meta
| inline
| | logo.aa
| | config.yml
```### Executable usage
```bash
bash-builder [-a|--all] [-c|--clean] [-h|--help] [-i|--ident] [-l|--list] [-o|--on]Utility capable of building all helper install scripts.
-a|--all Build all
-c|--clean Run only clean, no build
-h|--help Show usage (this)
-i|--ident Identity file path
-l|--list List all available
-o|--on Try to ssh to a machine and run the built script there
-r|--run Also run the script. Pass all arguments to it.Examples:
./build script -i test.pem -o user@machine
```