Separate v2 and v3 into dedicated directories
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 17 Jan 2019 22:13:56 +0000 (17:13 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 17 Jan 2019 22:13:56 +0000 (17:13 -0500)
64 files changed:
v2/.gitignore [new file with mode: 0644]
v2/Makefile [moved from Makefile with 90% similarity]
v2/sanity_check [moved from sanity_check with 94% similarity]
v2/src/awk/exe/actuate_alert_to_notify_send.awk [moved from src/awk/exe/actuate_alert_to_notify_send.awk with 100% similarity]
v2/src/awk/exe/actuate_device_add_to_automount.awk [moved from src/awk/exe/actuate_device_add_to_automount.awk with 100% similarity]
v2/src/awk/exe/actuate_status_bar_to_xsetroot_name.awk [moved from src/awk/exe/actuate_status_bar_to_xsetroot_name.awk with 100% similarity]
v2/src/awk/exe/bar.awk [moved from src/awk/exe/bar.awk with 100% similarity]
v2/src/awk/exe/gen_bar_make_status.awk [moved from src/awk/exe/gen_bar_make_status.awk with 100% similarity]
v2/src/awk/exe/monitor_devices.awk [moved from src/awk/exe/monitor_devices.awk with 100% similarity]
v2/src/awk/exe/monitor_energy.awk [moved from src/awk/exe/monitor_energy.awk with 100% similarity]
v2/src/awk/exe/monitor_errors.awk [moved from src/awk/exe/monitor_errors.awk with 100% similarity]
v2/src/awk/exe/parse_bluetoothctl_show.awk [moved from src/awk/exe/parse_bluetoothctl_show.awk with 100% similarity]
v2/src/awk/exe/parse_df_pcent.awk [moved from src/awk/exe/parse_df_pcent.awk with 100% similarity]
v2/src/awk/exe/parse_fan_file.awk [moved from src/awk/exe/parse_fan_file.awk with 100% similarity]
v2/src/awk/exe/parse_free.awk [moved from src/awk/exe/parse_free.awk with 100% similarity]
v2/src/awk/exe/parse_ip_addr.awk [moved from src/awk/exe/parse_ip_addr.awk with 100% similarity]
v2/src/awk/exe/parse_iwconfig.awk [moved from src/awk/exe/parse_iwconfig.awk with 100% similarity]
v2/src/awk/exe/parse_loadavg_file.awk [moved from src/awk/exe/parse_loadavg_file.awk with 100% similarity]
v2/src/awk/exe/parse_metar_d_output.awk [moved from src/awk/exe/parse_metar_d_output.awk with 100% similarity]
v2/src/awk/exe/parse_mpd_status_currentsong.awk [moved from src/awk/exe/parse_mpd_status_currentsong.awk with 100% similarity]
v2/src/awk/exe/parse_pactl_list_sinks.awk [moved from src/awk/exe/parse_pactl_list_sinks.awk with 100% similarity]
v2/src/awk/exe/parse_ps.awk [moved from src/awk/exe/parse_ps.awk with 100% similarity]
v2/src/awk/exe/parse_sys_block_stat.awk [moved from src/awk/exe/parse_sys_block_stat.awk with 100% similarity]
v2/src/awk/exe/parse_udevadm_monitor_block.awk [moved from src/awk/exe/parse_udevadm_monitor_block.awk with 100% similarity]
v2/src/awk/exe/parse_upower.awk [moved from src/awk/exe/parse_upower.awk with 100% similarity]
v2/src/awk/lib/cache.awk [moved from src/awk/lib/cache.awk with 100% similarity]
v2/src/awk/lib/msg.awk [moved from src/awk/lib/msg.awk with 100% similarity]
v2/src/awk/lib/num.awk [moved from src/awk/lib/num.awk with 100% similarity]
v2/src/awk/lib/str.awk [moved from src/awk/lib/str.awk with 100% similarity]
v2/src/bash/exe/khatus.sh [moved from src/bash/exe/khatus.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_bluetooth_power.sh [moved from src/bash/exe/khatus_sensor_bluetooth_power.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_datetime.sh [moved from src/bash/exe/khatus_sensor_datetime.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_devices.sh [moved from src/bash/exe/khatus_sensor_devices.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_disk_io.sh [moved from src/bash/exe/khatus_sensor_disk_io.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_disk_space.sh [moved from src/bash/exe/khatus_sensor_disk_space.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_energy.sh [moved from src/bash/exe/khatus_sensor_energy.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_fan.sh [moved from src/bash/exe/khatus_sensor_fan.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_loadavg.sh [moved from src/bash/exe/khatus_sensor_loadavg.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_memory.sh [moved from src/bash/exe/khatus_sensor_memory.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_mpd.sh [moved from src/bash/exe/khatus_sensor_mpd.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_net_addr_io.sh [moved from src/bash/exe/khatus_sensor_net_addr_io.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_net_wifi_status.sh [moved from src/bash/exe/khatus_sensor_net_wifi_status.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_procs.sh [moved from src/bash/exe/khatus_sensor_procs.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_screen_brightness.sh [moved from src/bash/exe/khatus_sensor_screen_brightness.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_temperature.sh [moved from src/bash/exe/khatus_sensor_temperature.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_volume.sh [moved from src/bash/exe/khatus_sensor_volume.sh with 100% similarity]
v2/src/bash/exe/khatus_sensor_weather.sh [moved from src/bash/exe/khatus_sensor_weather.sh with 100% similarity]
v3/.gitignore [moved from .gitignore with 68% similarity]
v3/Makefile [new file with mode: 0644]
v3/src/exe/khatus_cache_dumper.ml [moved from src/ocaml/exe/khatus_cache_dumper.ml with 100% similarity]
v3/src/exe/khatus_cache_dumper.mli [moved from src/ocaml/exe/khatus_cache_dumper.mli with 100% similarity]
v3/src/lib/khatus.ml [moved from src/ocaml/lib/khatus.ml with 100% similarity]
v3/src/lib/khatus_cache.ml [moved from src/ocaml/lib/khatus_cache.ml with 100% similarity]
v3/src/lib/khatus_cache.mli [moved from src/ocaml/lib/khatus_cache.mli with 100% similarity]
v3/src/lib/khatus_msg.ml [moved from src/ocaml/lib/khatus_msg.ml with 100% similarity]
v3/src/lib/khatus_msg.mli [moved from src/ocaml/lib/khatus_msg.mli with 100% similarity]
v3/src/lib/khatus_msg_parser.mli [moved from src/ocaml/lib/khatus_msg_parser.mli with 100% similarity]
v3/src/lib/khatus_msg_parser.mll [moved from src/ocaml/lib/khatus_msg_parser.mll with 100% similarity]
v3/src/lib/khatus_msg_stream.ml [moved from src/ocaml/lib/khatus_msg_stream.ml with 100% similarity]
v3/src/lib/khatus_msg_stream.mli [moved from src/ocaml/lib/khatus_msg_stream.mli with 100% similarity]
v3/src/lib/khatus_state.ml [moved from src/ocaml/lib/khatus_state.ml with 100% similarity]
v3/src/lib/khatus_state.mli [moved from src/ocaml/lib/khatus_state.mli with 100% similarity]
v3/src/lib/khatus_time.ml [moved from src/ocaml/lib/khatus_time.ml with 100% similarity]
v3/src/lib/khatus_time.mli [moved from src/ocaml/lib/khatus_time.mli with 100% similarity]

diff --git a/v2/.gitignore b/v2/.gitignore
new file mode 100644 (file)
index 0000000..e660fd9
--- /dev/null
@@ -0,0 +1 @@
+bin/
similarity index 90%
rename from Makefile
rename to v2/Makefile
index 873ebeb..c2d3f52 100644 (file)
--- a/Makefile
@@ -45,9 +45,7 @@ BASH_EXECUTABLE_NAMES := \
        khatus_sensor_volume \
        khatus_sensor_weather
 BASH_EXECUTABLES := $(foreach exe,$(BASH_EXECUTABLE_NAMES),bin/$(exe))
-OCAML_EXECUTABLES := \
-       bin/khatus_cache_dumper
-EXECUTABLES := $(AWK_EXECUTABLES) $(BASH_EXECUTABLES) $(OCAML_EXECUTABLES)
+EXECUTABLES := $(AWK_EXECUTABLES) $(BASH_EXECUTABLES)
 
 define BUILD_AWK_EXE
        echo '#! $(PATH_TO_AWK) -f'                                > $@ && \
@@ -80,7 +78,6 @@ install:
 
 clean:
        rm -rf bin
-       ocamlbuild -clean
 
 bin:
        mkdir -p bin
@@ -212,11 +209,3 @@ bin/khatus_parse_upower: \
        src/awk/exe/parse_upower.awk \
        src/awk/lib/msg.awk
        $(BUILD_AWK_EXE)
-
-#-----------------------------------------------------------------------------
-# OCaml
-#-----------------------------------------------------------------------------
-bin/khatus_cache_dumper: src/ocaml/exe/khatus_cache_dumper.ml
-       ocamlbuild -cflags '-w A' -pkg unix -I src/ocaml/exe -I src/ocaml/lib khatus_cache_dumper.byte
-       mv _build/src/ocaml/exe/khatus_cache_dumper.byte bin/khatus_cache_dumper
-       rm -f khatus_cache_dumper.byte
similarity index 94%
rename from sanity_check
rename to v2/sanity_check
index ef95ef6..8131813 100755 (executable)
@@ -14,7 +14,6 @@
                 -v Status_Args='@energy_percent,@memory_percent,@processes_count_all,@processes_count_r,@processes_count_d,@processes_count_t,@processes_count_i,@processes_count_z,@cpu_loadavg,@cpu_temp,@cpu_fan_speed,@disk_space,@disk_io_w,@disk_io_r,@net_wifi:wlp4s0,@net_io_w:wlp4s0,@net_io_r:wlp4s0,@bluetooth_power,@backlight_percent,@volume:0,@mpd,@weather_temp_f,@datetime' \
             ) \
     ) \
-    >(stdbuf -o L ./bin/khatus_cache_dumper $(hostname) 5 "$PWD/data") \
     >(stdbuf -o L ./bin/khatus_monitor_energy) \
     >(stdbuf -o L ./bin/khatus_monitor_errors) \
     >(stdbuf -o L ./bin/khatus_monitor_devices) \
similarity index 100%
rename from src/awk/exe/bar.awk
rename to v2/src/awk/exe/bar.awk
similarity index 100%
rename from src/awk/lib/msg.awk
rename to v2/src/awk/lib/msg.awk
similarity index 100%
rename from src/awk/lib/num.awk
rename to v2/src/awk/lib/num.awk
similarity index 100%
rename from src/awk/lib/str.awk
rename to v2/src/awk/lib/str.awk
similarity index 68%
rename from .gitignore
rename to v3/.gitignore
index 271527f..02cd8d8 100644 (file)
@@ -1,3 +1,2 @@
 _build/
 bin/
-data/
diff --git a/v3/Makefile b/v3/Makefile
new file mode 100644 (file)
index 0000000..dc01562
--- /dev/null
@@ -0,0 +1,30 @@
+MAKEFLAGS := --no-builtin-rules
+
+PREFIX   := $(HOME)
+EXE_NAME := khatus_cache_dumper
+EXE_TYPE := native  # native | byte
+
+.PHONY: \
+       build \
+       install \
+       clean
+
+build: | bin
+       @ocamlbuild \
+               -cflags '-w A' \
+               -pkg unix \
+               -I src/exe \
+               -I src/lib \
+               $(EXE_NAME).$(EXE_TYPE)
+       @mv _build/src/exe/$(EXE_NAME).$(EXE_TYPE) bin/$(EXE_NAME)
+       @rm -f $(EXE_NAME).$(EXE_TYPE)
+
+install:
+       $(foreach filename,$(wildcard bin/*),cp -p "$(filename)" "$(PREFIX)/$(filename)"; )
+
+clean:
+       @rm -rf bin
+       @ocamlbuild -clean
+
+bin:
+       @mkdir -p bin
similarity index 100%
rename from src/ocaml/lib/khatus.ml
rename to v3/src/lib/khatus.ml
This page took 0.090566 seconds and 4 git commands to generate.