Skip to content

Commit

Permalink
Brought web site and win32 build directory into CVS and build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hiebert committed Jan 27, 2002
1 parent 2a2e68f commit b58dce8
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 1,206 deletions.
1 change: 1 addition & 0 deletions .cvsignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ syntax.vim
ctags-[0-9].[0-9]*
showtags
win32
releases
3 changes: 3 additions & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
define pst
call ps(st)
end
1 change: 1 addition & 0 deletions EXTENDING.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- $Id$ -->
<html>
<head>
<title>Exuberant Ctags: Adding a new parser</title>
Expand Down
47 changes: 39 additions & 8 deletions maintainer.mak
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ REDIR = 2>&1 | tee $(ERRFILE)

RPM_ROOT= $(HOME)/Rpm
CTAGS_DOSDIR = win32
WEB_ARCHIVE_DIR = $(HOME)/public_html/archives
WEB_CTAGS_DIR = $(HOME)/public_html/ctags
WEB_ARCHIVE_DIR = releases
CTAGS_WEBSITE = website
DEP_DIR = .deps

CC = gcc
CC = gcc3
INCLUDE = -I.
DEFS = -DHAVE_CONFIG_H
COMP_FLAGS = $(INCLUDE) $(DEFS) $(CFLAGS)
Expand Down Expand Up @@ -198,6 +198,38 @@ cvs-tagcheck-%:
cvs-files:
@ls -1 $(CVS_FILES)

#
# Web site files
#
website-%: website-man-% website-index-% $(CTAGS_WEBSITE)/news.html \
$(CTAGS_WEBSITE)/EXTENDING.html
:

website-man-%: ctags.1 Makefile
@ echo "---------- Generating $(CTAGS_WEBSITE)/ctags.html"
man2html $< | sed -e "s/@@VERSION@@/$*/g" \
-e 's%<A HREF="mailto:[^"]*">\([^@]*\)@\([^<]*\)</A>%\1\&#64;\2%' \
> $(CTAGS_WEBSITE)/ctags.html

website-index-%: index.html Makefile
@ echo "---------- Generating $(CTAGS_WEBSITE)/index.html"
sed -e "s/@@VERSION@@/$*/g" \
-e "s/@@DOS_VERSION@@/`echo $* | sed 's/\.//g'`/g" \
-e "s/@@DATE@@/`date +'%d %B %Y'`/" \
$< > $(CTAGS_WEBSITE)/index.html

$(CTAGS_WEBSITE)/EXTENDING.html: EXTENDING.html
@ echo "---------- Generating $(CTAGS_WEBSITE)/EXTENDING.html"
ln -s ../$< $@

$(CTAGS_WEBSITE)/news.html: NEWS Makefile
@ echo "---------- Generating $(CTAGS_WEBSITE)/news.html"
sed -e 's/</\&lt;/g' -e 's/>/\&gt;/g' \
-e 's@^Current Version:.*$$@<html><head><title>Exuberant Ctags: Change Notes</title></head><body><h1>Change Notes</h1><pre>@' \
-e 's@\(^ctags-.* (.*)\)$$@<b>\1</b>@' \
-e 's@^vim:.*$$@</pre><hr><a href="http:index.html">Back to <strong>Exuberant Ctags</strong></a></body></html>@' \
$< > $@

#
# Release management
#
Expand Down Expand Up @@ -237,7 +269,8 @@ dos1-%: $(DOS_FILES)
done
cd $(CTAGS_DOSDIR); mv makefile makefile.bak; \
sed -e 's/^\(VERSION = \).*$$/\1$*
/' makefile.bak > makefile
/' makefile.bak > makefile ;\
rm makefile.bak

dos2-%: $(DOS_VER_FILES)
for file in $^ ;do \
Expand All @@ -260,7 +293,7 @@ rpm-%: ctags-%.tar.gz ctags.spec $(RPM_ROOT)/SOURCES $(RPM_ROOT)/SPECS
@ echo "---------- Building RPM"
cp -p ctags-$*.tar.gz $(RPM_ROOT)/SOURCES/
sed -e "s/@@VERSION@@/$*/" ctags.spec > $(RPM_ROOT)/SPECS/ctags-$*.spec
(cd $(RPM_ROOT)/SPECS; rpm -ba ctags-$*.spec)
(cd $(RPM_ROOT)/SPECS; CC=gcc3 rpm -ba ctags-$*.spec)
rm -fr $(RPM_ROOT)/BUILD/ctags-$*

ctags32-%: ctags-%.tar.gz
Expand All @@ -283,11 +316,9 @@ cleanrelease-%:
rm -f $(RPM_ROOT)/SRPMS/ctags-$*-1.src.rpm
rm -f $(RPM_ROOT)/SPECS/ctags-$*.spec

internal-release-%: ctags-%.tar.gz ctags-%.tar.Z dos-% rpm-%
internal-release-%: ctags-%.tar.gz ctags-%.tar.Z dos-% rpm-% website-%
@ echo "---------- Copying files to web archive"
cp -p ctags-$*.tar.* $(WEB_ARCHIVE_DIR)
cp -p EXTENDING.html $(WEB_CTAGS_DIR)
cp -p ctags-$*/ctags.html $(WEB_CTAGS_DIR)/ctags.html
cp -p $(RPM_ROOT)/RPMS/i386/ctags-$*-1.i386.rpm $(WEB_ARCHIVE_DIR)
cp -p $(RPM_ROOT)/SRPMS/ctags-$*-1.src.rpm $(WEB_ARCHIVE_DIR)
cp -p ctags-$*/ctags.lsm $(WEB_ARCHIVE_DIR)/ctags-$*.lsm
Expand Down
2 changes: 2 additions & 0 deletions website/.cvsignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
index.html
news.html
ctags.html
Loading

0 comments on commit b58dce8

Please sign in to comment.