Browse Source

Move components into dedicated subdirectory

This brings us a lot more tidiness.
master
Laslo Hunhold 7 years ago
committed by Aaron Marcher
parent
commit
7246dc4381
No known key found for this signature in database GPG Key ID: 74B048E5C2474F9A
20 changed files with 40 additions and 40 deletions
  1. +21
    -21
      Makefile
  2. +1
    -1
      components/battery.c
  3. +1
    -1
      components/cpu.c
  4. +1
    -1
      components/datetime.c
  5. +1
    -1
      components/disk.c
  6. +1
    -1
      components/entropy.c
  7. +1
    -1
      components/hostname.c
  8. +1
    -1
      components/ip.c
  9. +1
    -1
      components/kernel_release.c
  10. +1
    -1
      components/keyboard_indicators.c
  11. +1
    -1
      components/load_avg.c
  12. +1
    -1
      components/num_files.c
  13. +1
    -1
      components/ram.c
  14. +1
    -1
      components/run_command.c
  15. +1
    -1
      components/swap.c
  16. +1
    -1
      components/temperature.c
  17. +1
    -1
      components/uptime.c
  18. +1
    -1
      components/user.c
  19. +1
    -1
      components/volume.c
  20. +1
    -1
      components/wifi.c

+ 21
- 21
Makefile View File

@@ -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 @@ config.h:
$(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)"


battery.c → components/battery.c View File

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

#include "util.h"
#include "../util.h"

const char *
battery_perc(const char *bat)

cpu.c → components/cpu.c View File

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

#include "util.h"
#include "../util.h"

const char *
cpu_freq(void)

datetime.c → components/datetime.c View File

@@ -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)

disk.c → components/disk.c View File

@@ -3,7 +3,7 @@
#include <stdio.h>
#include <sys/statvfs.h>

#include "util.h"
#include "../util.h"

const char *
disk_free(const char *mnt)

entropy.c → components/entropy.c View File

@@ -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)

hostname.c → components/hostname.c View File

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

#include "util.h"
#include "../util.h"

const char *
hostname(void)

ip.c → components/ip.c View File

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

#include "util.h"
#include "../util.h"

const char *
ipv4(const char *iface)

kernel_release.c → components/kernel_release.c View File

@@ -2,7 +2,7 @@
#include <sys/utsname.h>
#include <stdio.h>

#include "util.h"
#include "../util.h"

const char *
kernel_release(void)

keyboard_indicators.c → components/keyboard_indicators.c View File

@@ -2,7 +2,7 @@
#include <err.h>
#include <X11/Xlib.h>

#include "util.h"
#include "../util.h"

const char *
keyboard_indicators(void)

load_avg.c → components/load_avg.c View File

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

#include "util.h"
#include "../util.h"

const char *
load_avg(const char *fmt)

num_files.c → components/num_files.c View File

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

#include "util.h"
#include "../util.h"

const char *
num_files(const char *dir)

ram.c → components/ram.c View File

@@ -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)

run_command.c → components/run_command.c View File

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

#include "util.h"
#include "../util.h"

const char *
run_command(const char *cmd)

swap.c → components/swap.c View File

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

#include "util.h"
#include "../util.h"

const char *
swap_free(void)

temperature.c → components/temperature.c View File

@@ -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)

uptime.c → components/uptime.c View File

@@ -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)

user.c → components/user.c View File

@@ -4,7 +4,7 @@
#include <sys/types.h>
#include <unistd.h>

#include "util.h"
#include "../util.h"

const char *
gid(void)

volume.c → components/volume.c View File

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

#include "util.h"
#include "../util.h"

const char *
vol_perc(const char *card)

wifi.c → components/wifi.c View File

@@ -9,7 +9,7 @@
#include <sys/ioctl.h>
#include <unistd.h>

#include "util.h"
#include "../util.h"

const char *
wifi_perc(const char *iface)

Loading…
Cancel
Save