|
ad6cbf62af
|
Remove -flto option.
|
2024-05-21 04:27:20 +04:00 |
|
|
97664825e2
|
Remove strip option, this is up to user to decide.
|
2024-05-20 18:28:08 +04:00 |
|
|
35894ebafc
|
Remove unused LDFLAGS.
|
2024-05-20 18:11:44 +04:00 |
|
|
49c2cf90d4
|
Added a cyan color to a test input.
|
2024-05-19 23:22:26 +04:00 |
|
|
5f802d2084
|
Also added a check for build of a TARGET in a test target.
|
2024-05-19 23:18:05 +04:00 |
|
|
3611b94ab6
|
Added -p flag to install to preserve timestamps, also added -s flag to strip debug data of an executable .
|
2024-05-19 23:17:04 +04:00 |
|
|
00f15ca913
|
Updated README.
|
2024-05-19 23:15:16 +04:00 |
|
|
6c1288d741
|
An extra - was removed from -std= CFLAGS option. This prevented compiling by tcc.
Also added -flto to enable link time optimisation.
|
2024-05-19 22:14:29 +04:00 |
|
|
8e4f505ad0
|
No .o object files produced, remove it from .gitignore.
|
2024-05-19 21:58:29 +04:00 |
|
|
79ab374f86
|
Version was set to 1.1.3.
|
2024-05-19 21:57:38 +04:00 |
|
|
acc7655e83
|
Fixed a typo licence -> license.
|
2024-05-19 21:57:18 +04:00 |
|
|
c657ed047c
|
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.
|
2024-05-19 05:29:13 +04:00 |
|
|
c083462a63
|
Actually, argv[i] cannot has a length of 0, so let's compare here against 1, meaning there was just a '-' was passed.
|
2024-05-19 05:23:47 +04:00 |
|
|
a469ae41a2
|
Replace exit() with simple return;
|
2024-05-19 05:21:35 +04:00 |
|
|
62a16292ec
|
main.c -> kwh-cost.c
|
2024-05-19 04:36:33 +04:00 |
|
|
9a8277dd07
|
Initialise the uninitialised.
|
2024-04-27 02:15:34 +04:00 |
|
|
a9a649d280
|
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 .
|
2024-04-26 04:45:27 +04:00 |
|
|
4b4e64500a
|
Updated a README.md.
|
2024-04-26 04:35:58 +04:00 |
|
|
f24c7aafc1
|
Let's put some more safety to parse_arguments().
|
2024-04-26 04:29:26 +04:00 |
|
|
328cbc3b0c
|
In PKGBUILD DESTDIR was removed in build(), and in package() was set to "$pkgdir".
|
2024-04-26 04:17:42 +04:00 |
|
|
4e016a3b4f
|
Do not set DESTDIR in Makefile.
|
2024-04-26 04:09:34 +04:00 |
|
|
43d86103c4
|
A version was set to 1.1.2. And a year 2023 was set to 2024.
|
2024-04-26 04:06:31 +04:00 |
|
|
9112fc018c
|
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.
|
2024-04-26 04:03:48 +04:00 |
|
|
5fa6142b21
|
From PKGBUILD removed provides and conflicts options.
|
2023-09-23 05:20:03 +04:00 |
|
|
ba6f28db2b
|
In main.h set VERSION to 1.1.1.
|
2023-09-23 05:16:47 +04:00 |
|
|
a999cf3b98
|
Removed makedepends from PKGBUILD, because gcc is a part of base-devel package.
|
2023-09-17 23:53:50 +04:00 |
|
|
64bcbfbc45
|
if else was replaced by switch. Added handling for an unknown flag.
|
2023-09-17 23:49:06 +04:00 |
|
|
18a593e800
|
Return 99 if an unknown flag occured. Also updated price_to_wattspersecond to price_kwh_to_wattspersecond.
|
2023-09-17 23:48:13 +04:00 |
|
|
cd84aee61f
|
Removed a space symbol after an * symbol.
|
2023-09-17 22:51:28 +04:00 |
|
|
caa57721f7
|
A func price_to_wattspersecond was renamed to price_kwh_to_wattspersecond.
|
2023-09-17 22:49:13 +04:00 |
|
|
ca7859f8f8
|
puts was replaced by fputs to set stderr output. In version changed years and an e-mail address.
|
2023-09-17 22:48:18 +04:00 |
|
|
69ff91861b
|
Removed a space symbol after * symbol. Renamed price_to_wattspersecond to price_kwh_to_wattspersecond.
|
2023-09-17 22:47:17 +04:00 |
|
|
f4ce191ae7
|
Added PREFIX in Makefile.Fixed .PHONY. Standard c2x was changed to c99.
|
2023-09-17 22:46:12 +04:00 |
|
|
b0f1b367d2
|
Updated domain, added PREFIX to make, made use of $pkgver. Updated version to 1.1.1.
|
2023-09-17 22:45:14 +04:00 |
|
|
044b898db3
|
Updated years and an e-mail in LICENSE.
|
2023-09-17 22:43:54 +04:00 |
|
|
aa6b0cd453
|
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.
|
2022-10-07 03:56:15 +04:00 |
|
|
cfa5c344cd
|
Added year 2022 to copyright.
Changed usage a little.
|
2022-10-07 03:51:52 +04:00 |
|
|
7eecfbee01
|
Removed unnecessary (double) casting of interval_to_seconds result to interval_t.
|
2022-10-07 03:50:57 +04:00 |
|
|
d398de1f8f
|
to_wattspersecond() changed to price_to_wattspersecond().
|
2022-10-07 03:49:56 +04:00 |
|
|
d7501eb2a9
|
Changed formatting for parse_arguments().
|
2022-10-07 03:48:34 +04:00 |
|
|
4e69cde16d
|
Weird int const chenged to const int in main().
|
2022-10-07 03:46:56 +04:00 |
|
|
e68a52b95c
|
[README.md] Decided to update our cost of kWh. :)
|
2022-10-06 22:09:17 +04:00 |
|
|
8699dbae89
|
Added info on how to install a downloaded package in Arch Linux.
|
2022-04-10 21:08:19 +04:00 |
|
|
0024d33575
|
Oh, dir must be removed as well.
|
2022-04-10 21:01:54 +04:00 |
|
|
8937e237dd
|
PKGBUILD made right.
|
2022-04-10 20:59:02 +04:00 |
|
|
9673e4cd9d
|
A little typo fix. And yeah, electricity became a little higher. :)
|
2022-04-10 18:45:54 +04:00 |
|
|
8556f85781
|
[main.{c,h}] Let's put some safety into this code! xD
|
2022-01-06 04:23:20 +04:00 |
|
|
1ef712c6a5
|
[Makefile] Added a simple test that verifies output. Mostly as an example of use for test command.
|
2022-01-06 04:21:08 +04:00 |
|
|
3d52d708bc
|
[README.md] shell to console.
|
2022-01-03 02:20:17 +04:00 |
|
|
7a0f155e44
|
Oh, commas are not allowed here... Yikes.
|
2021-12-30 03:34:56 +04:00 |
|