All Projects → hbbio → build

hbbio / build

Licence: MIT license
build is like Makefile for single files

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to build

jitci
A CI with tests, coverage, dependency audit, license & vuln. checks
Stars: ✭ 17 (+0%)
Mutual labels:  build
ukor
A Roku build tool with support for build flavors
Stars: ✭ 45 (+164.71%)
Mutual labels:  build
jsdoc-action
📖 GitHub Action to build JSDoc documentation
Stars: ✭ 61 (+258.82%)
Mutual labels:  build
docker-openwrt-builder
A Docker container to build OpenWrt images
Stars: ✭ 98 (+476.47%)
Mutual labels:  build
tools.build
Clojure builds as Clojure programs
Stars: ✭ 153 (+800%)
Mutual labels:  build
article
It’s Your Life. Share it. Celebrate it. Build it. AND HAVE FUN!
Stars: ✭ 33 (+94.12%)
Mutual labels:  build
docker-buildbox
Docker images for GitLab CI's jobs
Stars: ✭ 54 (+217.65%)
Mutual labels:  build
vsSolutionBuildEvent
🎛 Event-Catcher with variety of advanced Actions to service projects, libraries, build processes, runtime environment of the Visual Studio, MSBuild Tools, and …
Stars: ✭ 66 (+288.24%)
Mutual labels:  build
okhoxi-serac
冰塔协议-传输层协议
Stars: ✭ 33 (+94.12%)
Mutual labels:  build
fdk-aac-win32-builder
libfdk-aac for Windows binary builder
Stars: ✭ 25 (+47.06%)
Mutual labels:  build
tag
tagging apps with immutable intel
Stars: ✭ 23 (+35.29%)
Mutual labels:  build
trampolim
A modern Python build backend
Stars: ✭ 39 (+129.41%)
Mutual labels:  build
qt-creator-plugin-boostbuild
Boost.Build Project Manager Plugin for Qt Creator
Stars: ✭ 15 (-11.76%)
Mutual labels:  build
aseprite-macos-buildsh
Automated script to create latest release app (either beta, or release whichever is newer) of Aseprite for macOS
Stars: ✭ 143 (+741.18%)
Mutual labels:  build
babel-preset-amex
✨ Standard babel preset for American Express
Stars: ✭ 14 (-17.65%)
Mutual labels:  build
ffmpeg-builds
MOVED: https://gitlab.com/q3aql/ffmpeg-builds
Stars: ✭ 71 (+317.65%)
Mutual labels:  build
BuildTimeLogger-for-Xcode
A console app for logging Xcode build times and presenting them in a notification
Stars: ✭ 43 (+152.94%)
Mutual labels:  build
next-oss
webpack打包文件上传到OSS
Stars: ✭ 18 (+5.88%)
Mutual labels:  build
android manifest
The beginnings
Stars: ✭ 26 (+52.94%)
Mutual labels:  build
Examples
An complete examples and related support for various popular projects, and more.
Stars: ✭ 22 (+29.41%)
Mutual labels:  build

build

build is like Makefile for single files.

Instead of having to write a separate Makefile, build reads the build instructions from comments in the file itself. Therefore, you can distribute a file (or gist) by itself without a build script or Makefile.

example

Add this line to a markdown file:

<!-- @build pandoc -N --toc -o %pdf %md -->

or this line to a mscgen file:

# @build mscgen -T png -o images/%png %msc

And then run build onefile.md or build *.md to build multiple files at once.

syntax

A comment in the file should contain @build command. The command can expand %ext to filename.ext automatically.

Note that:

  • if the file does not contain a command, build attempts to load a default command for the file extension from ~/.config/build.defaults
  • build succeeds and exits after the run command is found

build types

You can define multiple build types with the following syntax (within files):

@build-{type} command

Then, invoke build with

build -{type} [files]

installation

build is written in a single Lua file. To install:

  1. copy build.lua where you want;
  2. create a shell alias so that build invokes lua /path/to/build.lua.

For instance, for:

  • bash, run: alias build=lua /path/to/build.lua
  • fish, run:
function build
  lua /path/to/build.lua $argv
end
funcsave build

author

build is written by Henri Binsztok and licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].