Skip to content

Commit

Permalink
package name change
Browse files Browse the repository at this point in the history
change from "KISS colors" to "kiss for colors"
  • Loading branch information
mcpcpc committed Jul 11, 2020
1 parent 231d149 commit cec4496
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kc
kfc
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
CC ?= gcc

all: kc
all: kfc

kc: kc.c kc.h Makefile
kfc: kfc.c kfc.h Makefile
$(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS)

install: all
install -Dm755 kc $(DESTDIR)$(BINDIR)/kc
mkdir -p $(DESTDIR)/usr/share/kc
cp -r palettes $(DESTDIR)/usr/share/kc
install -Dm755 kfc $(DESTDIR)$(BINDIR)/kfc
mkdir -p $(DESTDIR)/usr/share/kfc
cp -r palettes $(DESTDIR)/usr/share/kfc

uninstall:
rm -f $(DESTDIR)$(BINDIR)/kc
rm -rf $(DESTDIR)/usr/share/kc
rm -f $(DESTDIR)$(BINDIR)/kfc
rm -rf $(DESTDIR)/usr/share/kfc

clean:
rm -f kc *.o
rm -f kfc *.o

.PHONY: all install uninstall clean
14 changes: 7 additions & 7 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kc
kfc

KISS colors, a terminal-emulator color palette setter written in C and designed
kiss for colors, a terminal-emulator color palette setter written in C and designed
for KISS Linux.


Expand All @@ -14,7 +14,7 @@ Linux have been tested at this time:

- simple terminal, st [2]

Other than a terminal emulator and C compiler (e.g. gcc), KISS Colors has no
Other than a terminal emulator and C compiler (e.g. gcc), the application has no
other dependencies.

Note: I apologize for the "ugliness" of the code at this time. I hope to address
Expand All @@ -26,21 +26,21 @@ INSTALLATION

Building and installing from source:

$ git clone https://github.com/mcpcpc/kc.git
$ cd kc/
$ git clone https://github.com/mcpcpc/kfc.git
$ cd kfc/
$ make
$ make install


Installing on KISS Linux:

$ kiss b kc && kiss i kc
$ kiss b kfc && kiss i kfc


USAGE
-----

kc [-s palette|-L|-r] [l|-v|-p]
kfc [-s palette|-L|-r] [l|-v|-p]
-s palette Select a palette
-l List all palettes
-p Print current palette
Expand Down
14 changes: 7 additions & 7 deletions kc.c → kfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include "kc.h"
#include "kfc.h"


int
find_palettes(void)
{
if ( access("/usr/share/kc/palettes", F_OK) == 0 )
if ( access("/usr/share/kfc/palettes", F_OK) == 0 )
{
strcpy(p.SEQ, "/usr/share/kc/palettes");
strcpy(p.SEQ, "/usr/share/kfc/palettes");
return 0;
}

Expand Down Expand Up @@ -172,10 +172,10 @@ main(int argc, char **argv)
fprintf(stderr, "XDG_CONFIG_HOME not defined\n");
exit(2);
}
strcat(p.CONF, "/kc");
strcat(p.CONF, "/kfc");
if ( mkdir(p.CONF,0777) == 0 )
{
printf("Created 'kc' directory in XDG_CONFIG_HOME.");
printf("Created 'kfc' directory in XDG_CONFIG_HOME.");
}
sprintf(p.CCUR, "%s/current", p.CONF);
sprintf(p.CSEQ, "%s/sequence", p.CONF);
Expand Down Expand Up @@ -203,7 +203,7 @@ main(int argc, char **argv)
p.MODE = "light";
break;
case 'v':
printf("0.0.6\n");
printf("0.0.7\n");
break;
case 'h':
p.errf++;
Expand All @@ -227,7 +227,7 @@ main(int argc, char **argv)
if (p.errf)
{
fprintf(stderr, "\
usage: kc [-s palette|-r|-L] [l|-v|-p]\n \
usage: kfc [-s palette|-r|-L] [l|-v|-p]\n \
-s palette Select a palette\n \
-l List all palettes\n \
-p Print current palette\n \
Expand Down
File renamed without changes.

0 comments on commit cec4496

Please sign in to comment.