-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate fun quotes when compiling quokka #722
base: development
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely a "user experience" PR, but I'm not sure whether it improves the user experience...
At most, I think this should be an optional feature.
@@ -70,3 +70,5 @@ add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/yaml-cpp ${QuokkaCode_BINARY_DI | |||
add_definitions(-DNAUX_NET -DSTRANG) | |||
add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/Microphysics ${QuokkaCode_BINARY_DIR}/Microphysics) | |||
add_subdirectory(${QuokkaCode_SOURCE_DIR}/src ${QuokkaCode_BINARY_DIR}/src) | |||
|
|||
execute_process(COMMAND python3 "${CMAKE_SOURCE_DIR}/scripts/quotes.py") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should just call fortune
. It's on every Mac and Linux system:
FORTUNE(1) General Commands Manual FORTUNE(1)
NAME
fortune - sample lines from a file
SYNOPSIS
fortune [ file ]
DESCRIPTION
Fortune prints a one-line aphorism chosen at random. If a file is specified, the saying is taken from that file;
otherwise it is selected from /lib/fortunes.
FILES
/lib/fortunes
/lib/fortunes.index fast lookup table, maintained automatically
SOURCE
/src/cmd/fortune.c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are going to supply a custom file of fortunes, you can't rip them off someone else. They have to be Quokka-specific. And ideally about quokkas.
@psharda, do you still want to proceed with this, or can I close it off? |
Description
Wouldn't it be fun to see a random (possibly funny, definitely geeky) quote every time you compile Quokka? Just type
cmake ..
and see the magic.Related issues
Checklist
Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an
x
inside the square brackets[ ]
in the Markdown source below:/azp run
.