Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

make(1) bash scripting better

License

NotificationsYou must be signed in to change notification settings

budlabs/bashbud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thebashbud script/command is a very simplecp(1) wrapper that simply merge a directoryfrom~/.config/bashbud/ into a targetdirectory. The directories in~/.config/bashbudare calledtemplates, and the default templateis calleddefault. The default template have acarefully createdMakefile, that makes (no punintended) bash script maintenance pleasant.Especially in regards to managing commandlineoptions and documentation.

There is atutorial in the wiki, that walks youthrough all the functionality of thebashbudcommand and what theMakefile does.

installation

If you useArch Linux you can getbashbudfromAUR.

Make dependencies:GNU make,GNU awk, lowdown

(configure the installation inconfig.mak, if needed)

$ git clone https://github.com/budlabs/bashbud.git$ cd bashbud$ make# make install$ bashbud -vbashbud - version: 1.99updated: 2022-04-14 by budRich

usage

bashbud [OPTIONS] [TARGET_DIRECTORY]

TARGET_DIRECTOY defaults to currentworking directory.

options

-c, --config-dir DIRECTORY | override the default (~/.config/bashbud)               -t, --template TEMPLATE    | TEMPLATE is the name of a directory in BASHBUD_DIR     -n, --new DIRECTORY        | same as: --template default                            -v, --version              | print version info and exit                            -h, --help                 | print help and exit                                    -a, --add                  | add FILE to (mandatory --template) TEMPLATE            -f, --force DIRECTORY      | Overwrite already existing files imported from template-u, --update               | update TEMPLATE based on current directory

license

bashbud is licensed under theMIT license


[8]ページ先頭

©2009-2025 Movatter.jp