Compare commits
4 Commits
24130e6e13
...
8da0f1d5bc
Author | SHA1 | Date |
---|---|---|
Edwin Kofler | 8da0f1d5bc | |
Ryan Delaney | bcf78f74be | |
Edwin Kofler | b3b993f2ae | |
Edwin Kofler | 7b2e28d47c |
|
@ -13,5 +13,8 @@ charset = utf-8
|
||||||
[*.sh]
|
[*.sh]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{yaml,yml}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[Makefile]
|
[Makefile]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
name: 'Run Tests'
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-commit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 'Execute tests'
|
||||||
|
run: './run_tests'
|
|
@ -20,5 +20,4 @@ repos:
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- mdformat-gfm
|
- mdformat-gfm
|
||||||
- mdformat-toc
|
- mdformat-toc
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -1,7 +1,7 @@
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
FILE_NAME=lscolors
|
FILE_NAME=lscolors
|
||||||
export XDG_DATA_HOME ?= $${$$HOME/.local/share}
|
XDG_DATA_HOME ?= $(HOME)/.local/share
|
||||||
|
XDG_DATA_HOME := "$(XDG_DATA_HOME)"
|
||||||
all: generate
|
all: generate
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -13,11 +13,11 @@ generate: clean
|
||||||
@command sort LS_COLORS | dircolors --c-shell - > ${FILE_NAME}.csh
|
@command sort LS_COLORS | dircolors --c-shell - > ${FILE_NAME}.csh
|
||||||
|
|
||||||
install: generate
|
install: generate
|
||||||
@command cp ${FILE_NAME}.sh ${FILE_NAME}.csh ${XDG_DATA_HOME}
|
@command cp ${FILE_NAME}.sh ${FILE_NAME}.csh $(XDG_DATA_HOME)
|
||||||
@echo "To enable the colors, add the following line to your shell's start-up script:"
|
@echo "To enable the colors, add the following line to your shell's start-up script:"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "For Bourne shell (e.g. ~/.bashrc or ~/.zshrc):"
|
@echo "For Bourne shell (e.g. ~/.bashrc or ~/.zshrc):"
|
||||||
@echo " source ${XDG_DATA_HOME}/${FILE_NAME}.sh"
|
@echo " source $(XDG_DATA_HOME)/${FILE_NAME}.sh"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "For C shell (e.g. ~/.cshrc):"
|
@echo "For C shell (e.g. ~/.cshrc):"
|
||||||
@echo " source ${XDG_DATA_HOME}/${FILE_NAME}.csh"
|
@echo " source $(XDG_DATA_HOME)/${FILE_NAME}.csh"
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
|
||||||
|
unset -v XDG_DATA_HOME
|
||||||
|
make install
|
Loading…
Reference in New Issue