Version was set to 1.2.0. Now m, K, M, G, T units can be specified for wattage. Dropped support for long arguments (--). Functions were reorganised.
1.2.0
Alexander "Arav" Andreev2024-11-04 15:20:26 +0400
Added -p flag to install to preserve timestamps, also added -s flag to strip debug data of an executable .Alexander "Arav" Andreev2024-05-19 23:17:04 +0400
An extra - was removed from -std= CFLAGS option. This prevented compiling by tcc. Also added -flto to enable link time optimisation.Alexander "Arav" Andreev2024-05-19 22:14:29 +0400
Made a proper Makefile as it should be fixing many errors, like ignoring VAR overwriting. Also, wherever meaningful, = was replaced with := that evaluates once. Also made use of so-called "Order-only prerequisites" in an install target to build a program if it is not already built. Also removed a dangerous rm -rf with rm -f for a LICENSE file and rmdir for a directory.Alexander "Arav" Andreev2024-05-19 05:29:13 +0400
Actually, argv[i] cannot has a length of 0, so let's compare here against 1, meaning there was just a '-' was passed.Alexander "Arav" Andreev2024-05-19 05:23:47 +0400
To make it compile with clang I added void to print_*() funcs' arguments. Also I had to remove inline specifiers because clang was throwing undefined reference.Alexander "Arav" Andreev2024-04-26 04:45:27 +0400
src directory as well as a separate header file is absolutely not necessary. Also fixed a typo price_kwh_to_wattspersecond -> price_kwh_to_wattsecond, because because a price per kilowatt-hour is being converted to watt-second. Also added a notice about a licence that is used.Alexander "Arav" Andreev2024-04-26 04:03:48 +0400
Return 99 if an unknown flag occured. Also updated price_to_wattspersecond to price_kwh_to_wattspersecond.Alexander "Arav" Andreev2023-09-17 23:48:13 +0400
Removed a space symbol after * symbol. Renamed price_to_wattspersecond to price_kwh_to_wattspersecond.Alexander "Arav" Andreev2023-09-17 22:47:17 +0400
Version updated to 1.1.0. Now, instead of git repo cloning, release archive is being used. And let's remove that sentence from README.
1.1.0
Alexander "Arav" Andreev2022-10-07 03:56:15 +0400
[main.c] Structure arguments_t removed. Use ptrs to vars instead. parse_arguments now returns status codes instead of printing stuff and closing program. to_wattpersecond is now to_wattspersecond. Fixed typo in usage, capitalised options word. Rephrased print_version text. Removed unnecessary check from interval_to_seconds (former to_seconds) function.Alexander "Arav" Andreev2021-12-25 23:27:53 +0400
[Makefile] Added .PHONY. Removed object compilation. This project won't get extra .c files anyway, so let's compile directly into executable.Alexander "Arav" Andreev2021-12-25 23:22:32 +0400
Final fix. Let's set DESTDIR to / root by default. You can always change it with running make DESTDIR=your/path un/install.Alexander "Arav" Andreev2021-12-24 02:37:36 +0400