Make me a sandwich
chrismorgan.info
chrismorgan.info
[A-Z] := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
[a-z] := a b c d e f g h i j k l m n o p q r s t u v w x y z
tr = $(if $1$2,$(call tr,$(wordlist 2,$(words $1),$1),$(wordlist 2,\
$(words $2),$2),$(subst $(firstword $1),$(firstword $2),$3)),$3)
toupper = $(call tr,$([a-z]),$([A-Z]),$1)
COMMAND := me a sandwich
ifeq ($(MAKECMDGOALS),$(COMMAND))
fixcase = $1
endif
ifeq ($(MAKECMDGOALS),$(call toupper,$(COMMAND)))
fixcase = $(call toupper,$1)
endif
ifdef fixcase
.PHONY: $(MAKECMDGOALS)
UID := $(subst 0,,$(shell id -u))
$(wordlist 1,2,$(MAKECMDGOALS)): ; @true
$(lastword $(MAKECMDGOALS)): ; @echo "$(call fixcase,$(if $(UID),\
What? Make it yourself,Okay))."
endifAnd possibly your description of this as “a tad more complex”. I love makefiles!
This incident will be reported.
What you should try is to create a file named `Makefile`, put in the content in the blog post. Then open the terminal and type `make me a sandwich` then `sudo make me a sandwich` and see the result.
That logo seems to have been introduced to the https://www.sudo.ws website in mid-2019:
• Until 2019-04-23, the logo is an escutcheon: Azure, argent-rimmed, octothorpe semi-argent, lightning bolt Or atop, “SUDO” slogan argent above. https://web.archive.org/web/20190423191355/https://www.sudo..... (I bet I got at least half of that heraldry terminology and expression wrong. Hopefully someone can correct me!)
• From 2019-05-08, the logo is some kind of sandwich (bacon strips, tomato, cucumber?) that looks overly cheerful and possesses a mouth of its own (are the fillings of the sandwich things it has eaten?), as well as eyes and crust-coloured eyebrows. https://web.archive.org/web/20190508170506/https://www.sudo....
As 'sandwich' is clearly the artifact, it should be 'make sandwich'.
sandwich:
@echo "make me"