From 7a90962d2e940f50f807448d2d4c23c2631e2922 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 13 Feb 2026 20:48:51 +0200 Subject: Rename justfile to Justfile and remove manpage generation - Rename justfile to Justfile (conventional naming) - Remove documentation target from Justfile - Deprecated manpage functionality in favor of README.md --- Justfile | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ justfile | 61 ------------------------------------------------------------- 2 files changed, 57 insertions(+), 61 deletions(-) create mode 100644 Justfile delete mode 100644 justfile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..5f5385c --- /dev/null +++ b/Justfile @@ -0,0 +1,57 @@ +NAME := "loadbars" +VERSION := "0.7.5" + +default: version perltidy + +version: + echo {{VERSION}} > .version + +profile: + perl -d:NYTProf loadbars --hosts localhost + nytprofhtml nytprof.out + +perltidy: + find . -name \*.pm | xargs perltidy -b + perltidy -b {{NAME}} + find . -name \*.bak -delete + +install DESTDIR="": + #!/usr/bin/env bash + if [ ! -d "{{DESTDIR}}/usr/bin" ]; then + mkdir -p {{DESTDIR}}/usr/bin + fi + if [ ! -d "{{DESTDIR}}/usr/share/{{NAME}}" ]; then + mkdir -p {{DESTDIR}}/usr/share/{{NAME}} + fi + cp {{NAME}} {{DESTDIR}}/usr/bin + cp -r ./lib {{DESTDIR}}/usr/share/{{NAME}}/lib + cp -r ./fonts {{DESTDIR}}/usr/share/{{NAME}}/fonts + cp ./.version {{DESTDIR}}/usr/share/{{NAME}}/version + +deinstall DESTDIR="": + #!/usr/bin/env bash + if [ -n "{{DESTDIR}}" ] && [ -f "{{DESTDIR}}/usr/bin/{{NAME}}" ]; then + rm {{DESTDIR}}/usr/bin/{{NAME}} + fi + if [ -n "{{DESTDIR}}" ] && [ -d "{{DESTDIR}}/usr/share/{{NAME}}" ]; then + rm -r {{DESTDIR}}/usr/share/{{NAME}} + fi + +clean: + #!/usr/bin/env bash + if [ -f nytprof.out ]; then + rm nytprof.out + fi + if [ -f tmon.out ]; then + rm tmon.out + fi + if [ -d nytprof ]; then + rm -Rf nytprof + fi + +release: version perltidy + git add -A + git commit -m 'New release {{VERSION}}' + git tag {{VERSION}} + git push --tags + git push origin master diff --git a/justfile b/justfile deleted file mode 100644 index d8e117a..0000000 --- a/justfile +++ /dev/null @@ -1,61 +0,0 @@ -NAME := "loadbars" -VERSION := "0.7.5" - -default: version documentation perltidy - -version: - echo {{VERSION}} > .version - -profile: - perl -d:NYTProf loadbars --hosts localhost - nytprofhtml nytprof.out - -perltidy: - find . -name \*.pm | xargs perltidy -b - perltidy -b {{NAME}} - find . -name \*.bak -delete - -documentation: - pandoc --standalone --to man ./README.md --metadata title="loadbars" --metadata section="1" --metadata date="$(date +%Y-%m-%d)" > ./docs/{{NAME}}.1 - pandoc --from markdown --to plain ./README.md > ./docs/{{NAME}}.txt - -install DESTDIR="": - #!/usr/bin/env bash - if [ ! -d "{{DESTDIR}}/usr/bin" ]; then - mkdir -p {{DESTDIR}}/usr/bin - fi - if [ ! -d "{{DESTDIR}}/usr/share/{{NAME}}" ]; then - mkdir -p {{DESTDIR}}/usr/share/{{NAME}} - fi - cp {{NAME}} {{DESTDIR}}/usr/bin - cp -r ./lib {{DESTDIR}}/usr/share/{{NAME}}/lib - cp -r ./fonts {{DESTDIR}}/usr/share/{{NAME}}/fonts - cp ./.version {{DESTDIR}}/usr/share/{{NAME}}/version - -deinstall DESTDIR="": - #!/usr/bin/env bash - if [ -n "{{DESTDIR}}" ] && [ -f "{{DESTDIR}}/usr/bin/{{NAME}}" ]; then - rm {{DESTDIR}}/usr/bin/{{NAME}} - fi - if [ -n "{{DESTDIR}}" ] && [ -d "{{DESTDIR}}/usr/share/{{NAME}}" ]; then - rm -r {{DESTDIR}}/usr/share/{{NAME}} - fi - -clean: - #!/usr/bin/env bash - if [ -f nytprof.out ]; then - rm nytprof.out - fi - if [ -f tmon.out ]; then - rm tmon.out - fi - if [ -d nytprof ]; then - rm -Rf nytprof - fi - -release: version documentation perltidy - git add -A - git commit -m 'New release {{VERSION}}' - git tag {{VERSION}} - git push --tags - git push origin master -- cgit v1.2.3