Multipurpose shell scripts and dotfiles
Go to file
2022-07-04 22:22:05 +08:00
install Updated docker, apt, wine, snap; removed todo 2022-07-04 22:13:00 +08:00
packs Removed .sh from names, packs support 2022-07-04 19:34:00 +08:00
scripts Перезалив репозитория 2021-12-27 19:37:19 +08:00
.gitignore Makefile instead of start.sh + generator 2022-07-04 17:56:45 +08:00
gen-makefile.sh Fixed gen-makefile 2022-07-04 22:22:05 +08:00
Makefile Fixed gen-makefile 2022-07-04 22:22:05 +08:00
README.md Updated docker, apt, wine, snap; removed todo 2022-07-04 22:13:00 +08:00

My Ubuntu environment

make-ready bunch of scripts for easily installation of different software.

Requirements

  • bash, zsh or other sh-compatible shell
  • make (optional but recommended)
  • wget (necessary for some scripts)
  • git (necessary for some scripts)

Usage

# if git is installed
git clone git@git.axenov.dev:anthony/my-env.git --depth=1

# if git is not installed
wget -qO - https://git.axenov.dev/anthony/my-env/archive/master.tar.gz | tar -zxf -

# switch to repo dir
cd my-env

# get full list of `make` goals
make help

# generate new ./Makefile and get full list of `make` goals
./gen-makefile.sh

Selective straightforward installation

# from remote file
wget -qO - https://git.axenov.dev/anthony/my-env/raw/branch/master/install/apt.sh | bash

# from locally cloned repo
./install/apt.sh

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:
    #!/bin/bash
    ##makedesc: Your description for Makefile
    
  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 ##:

##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