Removed .sh from names, packs support
This commit is contained in:
23
README.md
23
README.md
@@ -39,7 +39,7 @@ wget -qO - https://git.axenov.dev/anthony/my-env/raw/branch/master/install/apt.s
|
||||
./install/apt.sh
|
||||
```
|
||||
|
||||
## How to add a new software script here
|
||||
## How to add a new software script?
|
||||
|
||||
1. Create new `./install/*.sh` script.
|
||||
At the beggining of a file you must write these two lines:
|
||||
@@ -50,3 +50,24 @@ wget -qO - https://git.axenov.dev/anthony/my-env/raw/branch/master/install/apt.s
|
||||
2. Test your script
|
||||
3. Run `./gen-makefile.sh` to generate new `./Makefile`
|
||||
|
||||
## How to create packs?
|
||||
|
||||
You can create new file inside `./packs` dir.
|
||||
|
||||
Syntax is same as classic makefile with one important and necessary addition -- a comment started with `##`:
|
||||
|
||||
```makefile
|
||||
##mypack1: Pack description
|
||||
mypack1: goal1 goal2 goalX ...
|
||||
...
|
||||
|
||||
##mypackX: Pack description
|
||||
mypackY: goalA goalB
|
||||
@cp file1 file2
|
||||
...
|
||||
...
|
||||
```
|
||||
|
||||
where:
|
||||
* `mypack*` is the pack name
|
||||
* `goal*` are script names in `./install`
|
||||
|
||||
Reference in New Issue
Block a user