Commit 6b007b88 authored by Joel Rosdahl's avatar Joel Rosdahl
Browse files

Debian package building.

parent d215629c
1999-11-18 Joel Rosdahl <joel@lysator.liu.se>
* Makefile: Debian package building.
1999-11-17 David Byers <davby@ida.liu.se>
* startup.el (lyskom): Set process coding system to latin-1 again.
......
......@@ -38,6 +38,7 @@
CLIENTVERSION = 0.46-BETA-C
DOCFILES=NEWS-0.46
DEBIANCLIENTVERSION = $(shell echo $(CLIENTVERSION) | tr - .)
FTPDIR=/home/davby/www-pub
#FTPDIR = /usr/ftp/pub/lyskom/elisp-client
......@@ -155,7 +156,9 @@ TAGS: $(HEADER) $(SOURCES)
install: lyskom.elc lyskom.el
cp lyskom.el lyskom.elc $(LISPDIR)
release: $(HEADER) $(SOURCES) $(DISTSRC) $(MISC) lyskom.el
release: release-files release-cleanup release-move
release-files: $(HEADER) $(SOURCES) $(DISTSRC) $(MISC) lyskom.el
mkdir lyskom-$(CLIENTVERSION)
cp $(HEADER) $(SOURCES) $(MISC) lyskom-$(CLIENTVERSION)
for i in $(DISTFILES) ; do \
......@@ -167,17 +170,36 @@ release: $(HEADER) $(SOURCES) $(DISTSRC) $(MISC) lyskom.el
chmod -R u+rw,g+r,o+r lyskom-$(CLIENTVERSION)
tar cvf lyskom-$(CLIENTVERSION).tar lyskom-$(CLIENTVERSION)
gzip -9 lyskom-$(CLIENTVERSION).tar
cp lyskom-$(CLIENTVERSION).tar.gz $(FTPDIR)
rm -rf lyskom-$(CLIENTVERSION)
rm -rf lyskom-$(CLIENTVERSION).tar.gz
mv lyskom.el $(FTPDIR)/lyskom-$(CLIENTVERSION).el
release-cleanup:
$(RM) -rf lyskom-$(CLIENTVERSION) lyskom-elisp-client-$(DEBIANCLIENTVERSION)
release-move: release-files
if [ -d $(FTPDIR) ]; then \
mv lyskom-$(CLIENTVERSION).tar.gz $(FTPDIR) ; \
mv lyskom.el $(FTPDIR)/lyskom-$(CLIENTVERSION).el ; \
else \
echo "Flyttade inte release-filerna till $(FTPDIR)." ; \
fi
debian-package: release-files debian-build release-cleanup
debian-build: release-files
cp -R debian lyskom-$(CLIENTVERSION)
$(RM) -rf lyskom-$(CLIENTVERSION)/debian/CVS
perl -pi -e 's/\((.+)\)/($(DEBIANCLIENTVERSION)-1)/ if (1..1)' lyskom-$(CLIENTVERSION)/debian/changelog
mv lyskom-$(CLIENTVERSION) lyskom-elisp-client-$(DEBIANCLIENTVERSION)
cp lyskom-$(CLIENTVERSION).tar.gz lyskom-elisp-client_$(DEBIANCLIENTVERSION).orig.tar.gz
cd lyskom-elisp-client-$(DEBIANCLIENTVERSION) && dpkg-buildpackage
clean:
$(RM) *.el.gz *.elc.gz lyskom.el english-lyskom.el
$(RM) -rf lyskom-$(CLIENTVERSION) \
lyskom-$(CLIENTVERSION).tar \
lyskom-$(CLIENTVERSION).tar.gz
lyskom-$(CLIENTVERSION).tar.gz \
lyskom-elisp-client-$(DEBIANCLIENTVERSION)
$(RM) *~ *.elc $(GENERIC-CLEAN)
$(RM) -r build-stamp lyskom-elisp-client*
distclean: clean
$(RM) $(GENERIC-DIST-CLEAN) vars.el
lyskom-elisp-client (0.46.BETA.C-1) unstable; urgency=low
lyskom-elisp-client (0.46-1) unstable; urgency=low
* New version.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment