Skip to content

Commit 5c24fa1

Browse files
committed
sclocka-1.0.3
1 parent 07bb6ef commit 5c24fa1

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
* 2023.08.18 sclocka-1.0.3
4+
* `Makefile` fixed, simplified
5+
* `sclocka.c` minor typo fix
6+
* `README.md` updated
7+
38
* 2023.08.17 sclocka-1.0.2
49
* `WITH_PAM` variable to control linking PAM library; OpenBSD support
510

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ deinstall uninstall clean
4040

4141
all: with_pam
4242

43-
with_pam: $(OBJS)
44-
$(CC) -DWITH_PAM=1 -o $(NAME) $(OBJS) $(LIBS) -lpam
43+
with_pam:
44+
$(CC) $(CFLAGS) -DWITH_PAM=1 -o $(NAME) $(NAME).c $(LIBS) -lpam
4545

4646
FreeBSD: without_pam
4747
NetBSD: without_pam
4848
Linux: without_pam
4949

50-
without_pam: $(OBJS)
51-
$(CC) -o $(NAME) $(OBJS) $(LIBS)
50+
without_pam:
51+
$(CC) $(CFLAGS) -o $(NAME) $(NAME).c $(LIBS)
5252

5353
OpenBSD: without_pam
5454

55-
install:
55+
install: all
5656
install -d $(PREFIX)/bin
5757
install -m 755 -s $(NAME) $(PREFIX)/bin/
5858

@@ -63,5 +63,3 @@ uninstall: deinstall
6363

6464
clean:
6565
rm -rf $(NAME) *.o *.dSYM *.core
66-
67-
$(NAME).o: $(NAME).c

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ Wait for a screensaver to appear
112112
```sh
113113
$ sclocka -h
114114

115-
Sclocka - screen saver/lock for terminals, v1.0
115+
Sclocka - screen saver/lock for terminals, v1.0.2
116116

117117
Usage:
118-
sclocka [-b n|b|c] [-c] [-B] [-i n] [-s n] [-p] [-P service] [-h]
118+
sclocka [-b n|f|b|c] [-c] [-B] [-i n] [-s n] [-p] [-P service] [-h]
119119

120-
[-b b] Method to restore the screen: (n)one, (b)uffer, (c)apabilities
120+
[-b f] Screen restore: (n)one, (f)ormfeed, (b)uffer, (c)apabilities
121121
[-c] Do not clear the window
122122
[-B] Black-only, no screensaver animation
123123
[-i 5] Wait n minutes before launching the screensaver

0 commit comments

Comments
 (0)