summaryrefslogtreecommitdiff
path: root/biblio/bibtex/utils/bibsort/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/bibtex/utils/bibsort/Makefile')
-rw-r--r--biblio/bibtex/utils/bibsort/Makefile157
1 files changed, 157 insertions, 0 deletions
diff --git a/biblio/bibtex/utils/bibsort/Makefile b/biblio/bibtex/utils/bibsort/Makefile
new file mode 100644
index 0000000000..88f1ace3bd
--- /dev/null
+++ b/biblio/bibtex/utils/bibsort/Makefile
@@ -0,0 +1,157 @@
+#=======================================================================
+# Makefile for bibsort, a BibTeX bibliography file sort utility.
+#
+# Current target list:
+#
+# all make documentation files
+# bibsort.hlp VAX VMS HELP file of manual pages
+# bibsort.shar UNIX shar bundle for e-mail distribution
+# bibsort.tar UNIX tar archive bundle
+# bibsort.txt ASCII text file of manual pages
+# bibsort.zip Info-ZIP archive bundle
+# bibsort.zoo Zoo archive bundle
+# clean remove temporary files
+# clobber remove all automatically recreatable files
+# install install bibsort on system
+# install.time installation time stamp
+# install-ftp install bibsort on anonymous ftp directory
+# install-ftp.time installation time stamp
+# test-version test extraction of version number
+# uninstall remove installed executable and man pages
+# uninstall-ftp remove installed files in anonymous ftp
+# directory
+#
+# [19-Oct-1992]
+#=======================================================================
+
+# Change these two directories to match local conventions if you
+# wish to do "make install" and "make install-ftp":
+BINDIR = /usr/local/bin
+MANDIR = /usr/local/man/man1
+MANEXT = 1
+FTPDIR = /usr/spool/ftp/pub/tex/bib
+
+# Need new awk (nawk) or gawk here:
+AWK = nawk
+
+CHMOD = chmod
+
+COL = col -b
+
+COMPRESS = compress
+
+CP = /bin/cp
+
+DIST-FILES = README Makefile bibsort.man bibsort.hlp bibsort.sh \
+ bibsort.txt rofvms.awk
+
+LN = ln -s
+
+NROFF = nroff
+
+RM = /bin/rm -f
+
+SHELL = /bin/sh
+
+UNZIP = unzip
+
+VERSION = `$(AWK) '/^\#\#\#[ \t]*version *= *"[0-9.]+", *$$/ \
+ { gsub(/[^0-9.]/,"",$$4); print $$4 }' bibsort.sh`
+
+ZIP = zip
+
+ZOO = zoo
+
+#=======================================================================
+
+all: bibsort.txt bibsort.hlp
+
+# VAX VMS help file format from bibsort.txt
+bibsort.hlp: bibsort.txt rofvms.awk
+ $(AWK) -f rofvms.awk <bibsort.txt >bibsort.hlp
+
+bibsort.shar: $(DIST-FILES)
+ shar -b -c -v $(DIST-FILES) >bibsort.shar
+
+bibsort.tar: $(DIST-FILES)
+ -$(RM) bibsort.tar bibsort.tar-lst
+ tar chf bibsort.tar $(DIST-FILES)
+ -mkdir bibsort-$(VERSION)
+ cd bibsort-$(VERSION); tar xf ../bibsort.tar
+ tar cf bibsort-$(VERSION).tar bibsort-$(VERSION)
+ -$(RM) -r bibsort-$(VERSION)
+ -$(RM) bibsort.tar
+ $(LN) bibsort-$(VERSION).tar bibsort.tar
+
+bibsort.txt: bibsort.man
+ $(NROFF) -man $? | $(COL) >$@
+
+bibsort.zip: $(DIST-FILES)
+ -$(RM) bibsort*.zip
+ -$(RM) bibsort*.zip-lst
+ $(ZIP) bibsort-$(VERSION).zip $(DIST-FILES)
+ $(UNZIP) -v bibsort-$(VERSION).zip >bibsort-$(VERSION).zip-lst
+ $(LN) bibsort-$(VERSION).zip bibsort.zip
+
+bibsort.zoo: $(DIST-FILES)
+ -$(RM) bibsort*.zoo
+ -$(RM) bibsort*.zoo-lst
+ $(ZOO) a bibsort-$(VERSION).zoo $(DIST-FILES)
+ $(ZOO) v bibsort-$(VERSION).zoo >bibsort-$(VERSION).zoo-lst
+ $(LN) bibsort-$(VERSION).zoo bibsort.zoo
+
+clean:
+ -$(RM) *.o
+ -$(RM) *.shar
+ -$(RM) *.tar
+ -$(RM) *.tar-lst
+ -$(RM) *.zip
+ -$(RM) *.zip-lst
+ -$(RM) *.zoo
+ -$(RM) *.zoo-lst
+ -$(RM) *~
+ -$(RM) \#*
+ -$(RM) core
+
+clobber: clean
+ -$(RM) bibsort.hlp
+ -$(RM) bibsort.txt
+ -$(RM) install.time install-ftp.time
+
+install: install.time
+
+install.time: bibsort.sh bibsort.man
+ $(CP) bibsort.sh $(BINDIR)/bibsort
+ $(CHMOD) 755 $(BINDIR)/bibsort
+ $(CP) bibsort.man $(MANDIR)/bibsort.$(MANEXT)
+ $(CHMOD) 644 $(MANDIR)/bibsort.$(MANEXT)
+ touch install.time
+
+install-ftp: install-ftp.time
+
+install-ftp.time: bibsort.tar bibsort.zip bibsort.zoo
+ tar tvf bibsort-$(VERSION).tar >$(FTPDIR)/bibsort-$(VERSION).tar-lst
+ $(COMPRESS) <bibsort-$(VERSION).tar \
+ >$(FTPDIR)/bibsort-$(VERSION).tar.z
+ $(CP) bibsort-$(VERSION).zip $(FTPDIR)
+ $(CP) bibsort-$(VERSION).zip-lst $(FTPDIR)
+ $(CP) bibsort-$(VERSION).zoo $(FTPDIR)
+ $(CP) bibsort-$(VERSION).zoo-lst $(FTPDIR)
+ ls -l $(FTPDIR)/bibsort*
+ date >install-ftp.time
+
+test-version:
+ @echo "Version number is ""'"$(VERSION)"'"
+
+uninstall:
+ -$(RM) $(BINDIR)/bibsort $(MANDIR)/bibsort.$(MANEXT)
+ -$(RM) install.time
+
+uninstall-ftp:
+ -$(RM) $(FTPDIR)/bibsort-$(VERSION).tar
+ -$(RM) $(FTPDIR)/bibsort-$(VERSION).tar-lst
+ -$(RM) $(FTPDIR)/bibsort-$(VERSION).zip
+ -$(RM) $(FTPDIR)/bibsort-$(VERSION).zip-lst
+ -$(RM) $(FTPDIR)/bibsort-$(VERSION).zoo
+ -$(RM) $(FTPDIR)/bibsort-$(VERSION).zoo-lst
+ -$(RM) install-ftp.time