1 # Generated automatically from Makefile.in by configure.
4 AUTOMAKE_OPTIONS = foreign
7 exec_prefix= @execprefix@
9 uhelpdir= ${helpdir}/users
10 ohelpdir= ${helpdir}/opers
12 SYMLINKS= topic accept cmode admin names links away whowas \
13 version kick who invite quit join list nick oper part \
14 time credits motd userhost users whois ison lusers \
15 user help pass error challenge knock ping pong \
16 map trace chantrace extban monitor
24 rm -f users/index users/index.tmp opers/index opers/index.tmp
27 @echo building index files
28 @rm -f users/index.tmp
29 @for help in users/*; do \
30 if [ -f $$help ]; then \
31 echo $$help >> users/index.tmp; \
34 @for help in $(SYMLINKS); do \
35 echo $$help >> users/index.tmp; \
37 @echo 'Help topics available to users:' > users/index
38 @echo '' >> users/index
39 @cat users/index.tmp \
40 | sed -e 's|^users/||' \
46 @rm -f users/index.tmp
47 @rm -f opers/index.tmp
48 @for help in opers/*; do \
49 if [ -f $$help ]; then \
50 echo $$help >> opers/index.tmp; \
53 @echo 'Help topics available to opers:' > opers/index
54 @echo '' >> opers/index
55 @cat opers/index.tmp \
56 | sed -e 's|^opers/||' \
59 | column -c 65 -s ' ' -x \
62 @rm -f opers/index.tmp
65 -@if test -d $(DESTDIR)$(helpdir)-old; then \
66 rm -rf $(DESTDIR)$(helpdir)-old; \
68 -@if test -d $(DESTDIR)$(helpdir); then \
69 echo "ircd: backing up old help files"; \
70 mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
73 @echo "ircd: setting up help directory structure"
74 @mkdir -p -m 755 $(DESTDIR)$(helpdir)
75 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/opers
76 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/users
78 @for help in opers/*; do \
79 if [ -f $$help ]; then \
80 ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
83 @for help in users/*; do \
84 if [ -f $$help ]; then \
85 $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
88 @for link in $(SYMLINKS); do \
89 rm -f $(DESTDIR)$(uhelpdir)/$$link; \
90 ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \