Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit faa5095

Browse files
committed
Replaced tabs with spaces
Turns out tabs don't work well for alignment after all.
1 parent 20f3ab3 commit faa5095

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

Makefile

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# @website https://github.com/caltechlibrary/%PROJECT_URLNAME%
77
# =============================================================================
88

9-
.ONESHELL: # Run all commands in the same shell.
10-
.SHELLFLAGS += -e # Exit at the first error.
9+
.ONESHELL: # Run all commands in the same shell.
10+
.SHELLFLAGS += -e # Exit at the first error.
1111

1212
# This Makefile uses syntax that needs at least GNU Make version 3.82.
1313
# The following test is based on the approach posted by Eldar Abusalimov to
@@ -30,16 +30,16 @@ TEST := $(foreach p,$(programs_needed),\
3030
# Set some basic variables. These are quick to set; we set additional
3131
# variables using "set-vars" but only when the others are needed.
3232

33-
name := $(strip $(shell awk -F "=" '/^name/ {print $$2}' setup.cfg))
34-
version := $(strip $(shell awk -F "=" '/^version/ {print $$2}' setup.cfg))
35-
url := $(strip $(shell awk -F "=" '/^url/ {print $$2}' setup.cfg))
36-
desc := $(strip $(shell awk -F "=" '/^description / {print $$2}' setup.cfg))
37-
author := $(strip $(shell awk -F "=" '/^author / {print $$2}' setup.cfg))
38-
email := $(strip $(shell awk -F "=" '/^author_email/ {print $$2}' setup.cfg))
39-
license := $(strip $(shell awk -F "=" '/^license / {print $$2}' setup.cfg))
33+
name := $(strip $(shell awk -F "=" '/^name/ {print $$2}' setup.cfg))
34+
version := $(strip $(shell awk -F "=" '/^version/ {print $$2}' setup.cfg))
35+
url := $(strip $(shell awk -F "=" '/^url/ {print $$2}' setup.cfg))
36+
desc := $(strip $(shell awk -F "=" '/^description / {print $$2}' setup.cfg))
37+
author := $(strip $(shell awk -F "=" '/^author / {print $$2}' setup.cfg))
38+
email := $(strip $(shell awk -F "=" '/^author_email/ {print $$2}' setup.cfg))
39+
license := $(strip $(shell awk -F "=" '/^license / {print $$2}' setup.cfg))
4040
platform := $(strip $(shell python3 -c 'import sys; print(sys.platform)'))
41-
os := $(subst $(platform),darwin,macos)
42-
branch := $(shell git rev-parse --abbrev-ref HEAD)
41+
os := $(subst $(platform),darwin,macos)
42+
branch := $(shell git rev-parse --abbrev-ref HEAD)
4343
initfile := $(name)/__init__.py
4444
distdir := dist/$(os)
4545
builddir := build/$(os)
@@ -106,35 +106,35 @@ help:
106106

107107
.SILENT: vars
108108
vars:
109-
$(info Gathering data -- this takes a few moments ...)
110-
$(eval repo := $(strip $(shell gh repo view | head -1 | cut -f2 -d':')))
111-
$(eval api_url := https://api.github.com)
112-
$(eval id := $(shell curl -s $(api_url)/repos/$(repo) | jq '.id'))
113-
$(eval id_url := https://data.caltech.edu/badge/latestdoi/$(id))
114-
$(eval doi_url := $(shell curl -sILk $(id_url) | grep Locat | cut -f2 -d' '))
115-
$(eval doi := $(subst https://doi.org/,,$(doi_url)))
116-
$(eval doi_tail := $(lastword $(subst ., ,$(doi))))
117-
$(info Gathering data -- this takes a few moments ... Done.)
109+
$(info Gathering data -- this takes a few moments ...)
110+
$(eval repo := $(strip $(shell gh repo view | head -1 | cut -f2 -d':')))
111+
$(eval api_url := https://api.github.com)
112+
$(eval id := $(shell curl -s $(api_url)/repos/$(repo) | jq '.id'))
113+
$(eval id_url := https://data.caltech.edu/badge/latestdoi/$(id))
114+
$(eval doi_url := $(shell curl -sILk $(id_url) | grep Locat | cut -f2 -d' '))
115+
$(eval doi := $(subst https://doi.org/,,$(doi_url)))
116+
$(eval doi_tail := $(lastword $(subst ., ,$(doi))))
117+
$(info Gathering data -- this takes a few moments ... Done.)
118118

119119
report: vars
120-
@echo os = $(os)
121-
@echo name = $(name)
122-
@echo version = $(version)
123-
@echo url = $(url)
124-
@echo desc = $(desc)
125-
@echo author = $(author)
126-
@echo email = $(email)
127-
@echo license = $(license)
128-
@echo branch = $(branch)
129-
@echo repo = $(repo)
130-
@echo id = $(id)
131-
@echo id_url = $(id_url)
132-
@echo doi_url = $(doi_url)
133-
@echo doi = $(doi)
134-
@echo doi_tail = $(doi_tail)
135-
@echo initfile = $(initfile)
136-
@echo distdir = $(distdir)
137-
@echo builddir = $(builddir)
120+
@echo os = $(os)
121+
@echo name = $(name)
122+
@echo version = $(version)
123+
@echo url = $(url)
124+
@echo desc = $(desc)
125+
@echo author = $(author)
126+
@echo email = $(email)
127+
@echo license = $(license)
128+
@echo branch = $(branch)
129+
@echo repo = $(repo)
130+
@echo id = $(id)
131+
@echo id_url = $(id_url)
132+
@echo doi_url = $(doi_url)
133+
@echo doi = $(doi)
134+
@echo doi_tail = $(doi_tail)
135+
@echo initfile = $(initfile)
136+
@echo distdir = $(distdir)
137+
@echo builddir = $(builddir)
138138

139139

140140
# make lint & make test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -162,12 +162,12 @@ ifneq ($(branch),main)
162162
endif
163163

164164
update-init: vars
165-
@sed -i .bak -e "s|^\(__version__ *=\).*|\1 '$(version)'|" $(initfile)
166-
@sed -i .bak -e "s|^\(__description__ *=\).*|\1 '$(desc)'|" $(initfile)
167-
@sed -i .bak -e "s|^\(__url__ *=\).*|\1 '$(url)'|" $(initfile)
168-
@sed -i .bak -e "s|^\(__author__ *=\).*|\1 '$(author)'|" $(initfile)
169-
@sed -i .bak -e "s|^\(__email__ *=\).*|\1 '$(email)'|" $(initfile)
170-
@sed -i .bak -e "s|^\(__license__ *=\).*|\1 '$(license)'|" $(initfile)
165+
@sed -i .bak -e "s|^\(__version__ *=\).*|\1 '$(version)'|" $(initfile)
166+
@sed -i .bak -e "s|^\(__description__ *=\).*|\1 '$(desc)'|" $(initfile)
167+
@sed -i .bak -e "s|^\(__url__ *=\).*|\1 '$(url)'|" $(initfile)
168+
@sed -i .bak -e "s|^\(__author__ *=\).*|\1 '$(author)'|" $(initfile)
169+
@sed -i .bak -e "s|^\(__email__ *=\).*|\1 '$(email)'|" $(initfile)
170+
@sed -i .bak -e "s|^\(__license__ *=\).*|\1 '$(license)'|" $(initfile)
171171

172172
update-meta: vars
173173
@sed -i .bak -e "/version/ s/[0-9].[0-9][0-9]*.[0-9][0-9]*/$(version)/" codemeta.json

0 commit comments

Comments
 (0)