TclXMPP

Check-in [767ea9ff52]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added a simple makefile which installs the TclXMPP and bundled TclXML into /usr/lib and jsend.tcl and rssbot.tcl into /usr/local/bin (by default).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:767ea9ff5282a1aa3365c6c27264117a26a2f1f3
User & Date: sgolovan 2015-06-02 09:02:49
Context
2015-06-03
19:21
Added clean target. check-in: 81a008cd64 user: sgolovan tags: trunk
2015-06-02
09:02
Added a simple makefile which installs the TclXMPP and bundled TclXML into /usr/lib and jsend.tcl and rssbot.tcl into /usr/local/bin (by default). check-in: 767ea9ff52 user: sgolovan tags: trunk
08:29
Replaced the literal rssbot.tcl string by $argv0 in short help notice. check-in: e8ee93c2c5 user: sgolovan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.

1




2
3
4
5
6
7
8
2015-06-02  Sergei Golovan  <sgolovan@nes.ru>





	* examples/rssbot.tcl: Replaced the literal rssbot.tcl string by
	  $argv0 in short help notice.

	* examples/rssbot.man: Added a short manpage for the rssbot RSS/XMPP
	  gateway example.


>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
2015-06-02  Sergei Golovan  <sgolovan@nes.ru>

	* Makefile: Added a simple makefile which installs the TclXMPP and
	  bundled TclXML into /usr/lib and jsend.tcl and rssbot.tcl into
	  /usr/local/bin (by default).

	* examples/rssbot.tcl: Replaced the literal rssbot.tcl string by
	  $argv0 in short help notice.

	* examples/rssbot.man: Added a short manpage for the rssbot RSS/XMPP
	  gateway example.

Added 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
# TclXMPP Makefile

# Tcl can't find libraries in /usr/local hierarchy, so install
# the libraries into /usr/lib
LIBDIR = /usr/lib

# The binaries and docs go to /usr/local by default
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
DOCDIR = $(PREFIX)/share/doc/tclxmpp
MANDIR = $(PREFIX)/share/man

SUBDIRS = xmpp \
	  tclxml

MANPAGES3 = doc/xmpp.3 \
	    doc/xmpp_jid.3 \
	    doc/xmpp_xml.3

MANPAGES1 = examples/jsend.1 \
	    examples/rssbot.1

all: doc

doc: $(MANPAGES3) $(MANPAGES1)

%.3: %.man
	mpexpand nroff $< $@

%.1: %.man
	mpexpand nroff $< $@

install: install-lib install-bin install-doc install-examples

install-lib:
	install -d $(DESTDIR)$(LIBDIR)
	cp -dr --no-preserve=ownership $(SUBDIRS) $(DESTDIR)$(LIBDIR)

install-bin:
	install -d $(DESTDIR)$(BINDIR)
	install -m 755 -T examples/jsend.tcl $(DESTDIR)$(BINDIR)/jsend
	install -m 755 -T examples/rssbot.tcl $(DESTDIR)$(BINDIR)/rssbot

install-doc: doc
	install -d $(DESTDIR)$(DOCDIR)
	install -d $(DESTDIR)$(MANDIR)/man1
	install -d $(DESTDIR)$(MANDIR)/man3
	install -m 644 ChangeLog license.terms $(DESTDIR)$(DOCDIR)
	install -m 644 $(MANPAGES1) $(DESTDIR)$(MANDIR)/man1
	install -m 644 $(MANPAGES3) $(DESTDIR)$(MANDIR)/man3

install-examples:
	install -d $(DESTDIR)$(DOCDIR)/examples
	install -m 755 examples/*.tcl $(DESTDIR)$(DOCDIR)/examples

# Update TclXMPP from Fossil repository
up:
	test -f .fslckout -o -f _FOSSIL_ && fossil update

.PHONY: all doc install install-lib install-bin install-doc install-examples up