all repos — slstatus @ 7246dc4381c6c95454672a5c1aff65a02d6d3747

my build of slstatus (tools.suckless.org/slstatus/)

Move components into dedicated subdirectory

This brings us a lot more tidiness.
Laslo Hunhold dev@frign.de
Sun, 24 Sep 2017 15:33:01 +0200
commit

7246dc4381c6c95454672a5c1aff65a02d6d3747

parent

61e44e894890c1521a01148fbf969cbd4dbb4cae

M MakefileMakefile

@@ -6,25 +6,25 @@ include config.mk

REQ = util COM =\ - battery\ - cpu\ - datetime\ - disk\ - entropy\ - hostname\ - ip\ - kernel_release\ - keyboard_indicators\ - load_avg\ - num_files\ - ram\ - run_command\ - swap\ - temperature\ - uptime\ - user\ - volume\ - wifi + components/battery\ + components/cpu\ + components/datetime\ + components/disk\ + components/entropy\ + components/hostname\ + components/ip\ + components/kernel_release\ + components/keyboard_indicators\ + components/load_avg\ + components/num_files\ + components/ram\ + components/run_command\ + components/swap\ + components/temperature\ + components/uptime\ + components/user\ + components/volume\ + components/wifi all: slstatus

@@ -39,14 +39,14 @@ .o:

$(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS) .c.o: - $(CC) -c $(CPPFLAGS) $(CFLAGS) $< + $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $< clean: rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o) dist: rm -rf "slstatus-$(VERSION)" - mkdir -p "slstatus-$(VERSION)" + mkdir -p "slstatus-$(VERSION)/components" cp -R LICENSE Makefile README config.mk config.def.h \ arg.h slstatus.c $(COM:=.c) $(REQ:=.c) $(REQ:=.h) \ slstatus.1 "slstatus-$(VERSION)"
M battery.ccomponents/battery.c

@@ -3,7 +3,7 @@ #include <limits.h>

#include <stdio.h> #include <string.h> -#include "util.h" +#include "../util.h" const char * battery_perc(const char *bat)
M cpu.ccomponents/cpu.c

@@ -2,7 +2,7 @@ /* See LICENSE file for copyright and license details. */

#include <stdio.h> #include <string.h> -#include "util.h" +#include "../util.h" const char * cpu_freq(void)
M datetime.ccomponents/datetime.c

@@ -1,7 +1,7 @@

/* See LICENSE file for copyright and license details. */ #include <time.h> -#include "util.h" +#include "../util.h" const char * datetime(const char *fmt)
M disk.ccomponents/disk.c

@@ -3,7 +3,7 @@ #include <err.h>

#include <stdio.h> #include <sys/statvfs.h> -#include "util.h" +#include "../util.h" const char * disk_free(const char *mnt)
M entropy.ccomponents/entropy.c

@@ -1,7 +1,7 @@

/* See LICENSE file for copyright and license details. */ #include <stdio.h> -#include "util.h" +#include "../util.h" const char * entropy(void)
M hostname.ccomponents/hostname.c

@@ -2,7 +2,7 @@ /* See LICENSE file for copyright and license details. */

#include <err.h> #include <unistd.h> -#include "util.h" +#include "../util.h" const char * hostname(void)
M ip.ccomponents/ip.c

@@ -5,7 +5,7 @@ #include <netdb.h>

#include <stdio.h> #include <string.h> -#include "util.h" +#include "../util.h" const char * ipv4(const char *iface)
M kernel_release.ccomponents/kernel_release.c

@@ -2,7 +2,7 @@ /* See LICENSE file for copyright and license details. */

#include <sys/utsname.h> #include <stdio.h> -#include "util.h" +#include "../util.h" const char * kernel_release(void)
M keyboard_indicators.ccomponents/keyboard_indicators.c

@@ -2,7 +2,7 @@ /* See LICENSE file for copyright and license details. */

#include <err.h> #include <X11/Xlib.h> -#include "util.h" +#include "../util.h" const char * keyboard_indicators(void)
M load_avg.ccomponents/load_avg.c

@@ -2,7 +2,7 @@ /* See LICENSE file for copyright and license details. */

#include <err.h> #include <stdlib.h> -#include "util.h" +#include "../util.h" const char * load_avg(const char *fmt)
M num_files.ccomponents/num_files.c

@@ -4,7 +4,7 @@ #include <err.h>

#include <stdio.h> #include <string.h> -#include "util.h" +#include "../util.h" const char * num_files(const char *dir)
M ram.ccomponents/ram.c

@@ -1,7 +1,7 @@

/* See LICENSE file for copyright and license details. */ #include <stdio.h> -#include "util.h" +#include "../util.h" const char * ram_free(void)
M run_command.ccomponents/run_command.c

@@ -3,7 +3,7 @@ #include <err.h>

#include <stdio.h> #include <string.h> -#include "util.h" +#include "../util.h" const char * run_command(const char *cmd)
M swap.ccomponents/swap.c

@@ -3,7 +3,7 @@ #include <err.h>

#include <stdio.h> #include <string.h> -#include "util.h" +#include "../util.h" const char * swap_free(void)
M temperature.ccomponents/temperature.c

@@ -1,7 +1,7 @@

/* See LICENSE file for copyright and license details. */ #include <stdio.h> -#include "util.h" +#include "../util.h" const char * temp(const char *file)
M uptime.ccomponents/uptime.c

@@ -1,7 +1,7 @@

/* See LICENSE file for copyright and license details. */ #include <sys/sysinfo.h> -#include "util.h" +#include "../util.h" const char * uptime(void)
M user.ccomponents/user.c

@@ -4,7 +4,7 @@ #include <pwd.h>

#include <sys/types.h> #include <unistd.h> -#include "util.h" +#include "../util.h" const char * gid(void)
M volume.ccomponents/volume.c

@@ -7,7 +7,7 @@ #include <stdio.h>

#include <string.h> #include <unistd.h> -#include "util.h" +#include "../util.h" const char * vol_perc(const char *card)
M wifi.ccomponents/wifi.c

@@ -9,7 +9,7 @@ #include <string.h>

#include <sys/ioctl.h> #include <unistd.h> -#include "util.h" +#include "../util.h" const char * wifi_perc(const char *iface)