summarylogtreecommitdiffstats
path: root/libcs50.install
diff options
context:
space:
mode:
authorEdmund2024-10-02 11:08:26 +0200
committerEdmund2024-10-02 11:08:26 +0200
commit6619769a139ce67916f31ddd93b27e1587e14325 (patch)
treec5a84037b5faa186b4114592ea3801fd1ac133e3 /libcs50.install
parent307b20d558b2ed7084b6c3d83a9080ed72a17c6f (diff)
downloadaur-6619769a139ce67916f31ddd93b27e1587e14325.tar.gz
Changed format of install message
Diffstat (limited to 'libcs50.install')
-rw-r--r--libcs50.install25
1 files changed, 21 insertions, 4 deletions
diff --git a/libcs50.install b/libcs50.install
index 4c72953b0a6c..353f0e36b5ad 100644
--- a/libcs50.install
+++ b/libcs50.install
@@ -1,6 +1,23 @@
post_install() {
- echo -e 'SUGGESTION:\n'
- echo -e '\nInstead of using a makefile, you can add the following alias to your ~/.bashrc:'
- echo -e " "alias make50="'"'make CC=clang CFLAGS="-fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow" LDLIBS="-lcrypt -lcs50 -lm"'"'"'\n'
- echo -e '\nThis would require having `clang` installed.'
+ local orange='\033[1;33m'
+ local reset='\033[0m'
+
+ printf "$orange"
+ echo -e "\nSUGGESTION:"
+ echo -e " Instead of using a makefile, you can add the following alias to your ~/.bashrc:\n"
+ echo -e " alias make50=\'make CC=clang CFLAGS=\"-fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow\" LDLIBS=\"-lcrypt -lcs50 -lm\"\'\n"
+ echo -e " This would require having \`clang\` installed."
+ printf "$reset"
+}
+
+post_upgrade() {
+ local orange='\033[1;33m'
+ local reset='\033[0m'
+
+ printf "$orange"
+ echo -e "\nSUGGESTION:"
+ echo -e " Instead of using a makefile, you can add the following alias to your ~/.bashrc:\n"
+ echo -e " alias make50=\'make CC=clang CFLAGS=\"-fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow\" LDLIBS=\"-lcrypt -lcs50 -lm\"\'\n"
+ echo -e " This would require having \`clang\` installed."
+ printf "$reset"
}