build script for bash programs
dist | ||
src | ||
README.md |
bes-build
bes-build is a bash script to build bash program.
the building process simply consist to append shell script files from your src/
project directory
into a single dist/project
executable file
Install
wget https://raw.githubusercontent.com/meta-tech/bes-build/latest/dist/bes-build
bash ./bes-build -i
Usage
# change directory to your project
cd /home/repo/meta-tech/bes
bes-build
# you can now execute program with :
./dist/bes
# to display help execute :
bes-build -h
Requirements
using bes-build script require you to conform to these following rules :
- respect this directory structure :
project/
|
|--- src/
|
|--- file1.sh
|--- file2.sh
|--- file3.sh
- each
src/
shell file require ashebang
on first line (#!/bin/bash) - src/main.sh file is append to the end of the build file
- we strongly recommand you to use function and prefix function name
bes.install(){
...
}