-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
69 lines (51 loc) · 1.98 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# how do i check if $ENV{PAGER} is already set?
# like this, says ketmar. probably gmake only.
PAGER ?= more
##############################################################################
## INSTALLATION
install: INSTALL.txt README.txt
# @$(PAGER) echo Your environment variable PAGER is not configured!
$(PAGER) INSTALL.txt
@clear
./install.sh || ksh install.sh
test:
(cd bin && perl -c edata && perl -c psyconf && perl -c fmt2textdb)
clean:
-rm INSTALL.txt world/LP_SWAP* world/OBJ_DUMP world/*.log world/log
-rm world/WIZLIST world/.methods
# find . -follow -name '.*.swp' -print
# find . -follow -name '*.b' -print -exec rm {} \;
README.txt:
lynx -dump http://www.psyced.org/README.html >$@
INSTALL.txt:
lynx -dump http://www.psyced.org/INSTALL.html >$@
corpses:
find . -name .#\* -print
# show me the fingerprint of the certificate i am about to install
fp: local/cert.pem
openssl x509 -in local/cert.pem -fingerprint -sha1 | head -n 1
##############################################################################
## USER AND PLACE DATA MAINTAINANCE
MTIME = +120
clean.log:
(cd data;nice find person -mtime $(MTIME) -print -exec rm {} \;) >$@
wc clean.log
preview:
(cd data;nice find person -mtime $(MTIME) -exec ls -l {} \;) | $(PAGER)
(cd data;nice find place -mtime $(MTIME) -exec ls -l {} \;) | $(PAGER)
today:
(cd data;nice find person -mtime -1 -print) | wc
##############################################################################
## THE REST OF THE MAKEFILE PROBABLY ISN'T VERY INTERESTING OR USEFUL FOR YOU
# generate a file that autoloads all lpc classes.. good only for debugging
local/all.ls:
(cd world;find . -follow -name '*.c' -print) | grep -vw not >$@
.methods:
(cd world;../bin/rmeth net/* pro/*) | sort >$@
.links:
(cd world;../bin/findlinks */de/* */en/*) >$@
rights:
# how do i tell him to skip .git ?
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod +x bin/* run/* config/psyced.settings install.sh utility/multipatcher