This commit is contained in:
Your Name 2024-08-06 11:59:05 +03:00
parent d03f82d266
commit 078b018ebc
3 changed files with 1 additions and 48 deletions

View File

@ -3,21 +3,6 @@
CC=cc CC=cc
FLAGS="-Os -s -pedantic -Wall -Wextra" FLAGS="-Os -s -pedantic -Wall -Wextra"
#Test
echo -e "#include <stdio.h>\nint main(void){return 0;}" > file.c
cc file.c -o test
rm file.c
if ! ./test
then
rm test
echo "Install libc-headers and C compiler (ep: tcc, clang, gcc)"
exit 1
fi
rm test
#Compile #Compile
$CC -Iinclude -I. src/main.c -c -o main.o && $CC -Iinclude -I. src/main.c -c -o main.o &&
$CC -Iinclude -I. src/fetch.c -c -o fetch.o && $CC -Iinclude -I. src/fetch.c -c -o fetch.o &&

View File

@ -22,7 +22,7 @@ int main(int argc, char **argv) {
case 'h': case 'h':
default: default:
printf("kfetch [-hld]\n\t-h Help menu\n\t-l Doesnt print logo\n\t-d N Set N as distro name\n"); printf("kfetch [-hld]\n\t-h Help\n\t-l Dont print logo\n\t-d NAME\n");
return 0; return 0;
} }
} }

View File

@ -1,32 +0,0 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "fetch.h"
#include "structs.h"
/* Config, EDIT THERE */
#define COLORS " \033[31m<> \033[32m<> \033[33m<> \033[34m<> \033[35m<> \033[36m<>\033[0m"
#define FONT_COLOR "\033[1;37m"
#ifdef _MAIN_C
#define ON_ERROR_STR "none"
PARAMETR CONFIG[] = {
{PrintOs, {.str0=" os ", .str1=NULL}},
{GetKernel, {.str0=" kr ", .str1=NULL}},
{GetUser, {.str0=" usr ", .str1=NULL}},
{GetUptime, {.str0=" upt ", .str1=NULL}},
{GetArch, {.str0=" arch ", .str1=NULL}},
{GetShell, {.str0="shell ", .str1=NULL}},
{GetPkg, {.str0=" pkgs ", .str1=NULL}},
{GetMem, {.str0=" mem ", .str1=NULL}},
{GetModel, {.str0="model ", .str1=NULL}},
{GetHostname, {.str0=" host ", .str1=NULL}},
{GetAVG, {.str0=" AVG ", .str1=NULL}},
{Blank, {.str0=" ", .str1=NULL}},
{Execute, {.str0=" Id's ", .str1=NULL, .str2="id -gn"}},
{Blank, {.str0=COLORS, .str1=NULL}}
};
#endif
#endif