Annotation of Gnu-Mach/doc/Makefrag.am, revision 1.1

1.1     ! root        1: # Makefile fragment for the documentation.
        !             2: 
        !             3: # Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
        !             4: 
        !             5: # This program is free software; you can redistribute it and/or modify it
        !             6: # under the terms of the GNU General Public License as published by the
        !             7: # Free Software Foundation; either version 2, or (at your option) any later
        !             8: # version.
        !             9: # 
        !            10: # This program is distributed in the hope that it will be useful, but
        !            11: # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
        !            12: # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
        !            13: # for more details.
        !            14: # 
        !            15: # You should have received a copy of the GNU General Public License along
        !            16: # with this program; if not, write to the Free Software Foundation, Inc.,
        !            17: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
        !            18: 
        !            19: #
        !            20: # The GNU Mach Reference Manual.
        !            21: #
        !            22: 
        !            23: info_TEXINFOS += \
        !            24:        doc/mach.texi
        !            25: mach_TEXINFOS = \
        !            26:        doc/fdl.texi doc/gpl.texi
        !            27: EXTRA_DIST += \
        !            28:        $(mach_TEXINFOS)
        !            29: 
        !            30: #
        !            31: # Web pages of the GNU Mach Reference Manual.
        !            32: #
        !            33: 
        !            34: web = doc/web
        !            35: 
        !            36: # Prepare a checkout in `$(web)/' of the web pages of the GNU Mach Reference
        !            37: # Manual, using the same account that was used for the source code.  Then
        !            38: # install the potentially updated files into `$(web)/'.
        !            39: .PHONY: $(web)
        !            40: $(web):
        !            41:        if test -d $@/CVS; then :; else         \
        !            42:          mkdir -p $@ $@/CVS &&                 \
        !            43:          sed -e s%cvsroot%web%                 \
        !            44:            < $(top_srcdir)/CVS/Root            \
        !            45:            > $@/CVS/Root &&                    \
        !            46:          echo hurd/gnumach-doc                 \
        !            47:            > $@/CVS/Repository &&              \
        !            48:          : > $@/CVS/Entries;                   \
        !            49:        fi
        !            50:        cd $@/ &&                               \
        !            51:        cvs update
        !            52:        $(MAKE) $(AM_MAKEFLAGS)                 \
        !            53:          html                                  \
        !            54:          ps                                    \
        !            55:          pdf
        !            56: 
        !            57: # Update the files, if such a checkout exists.
        !            58: html-local:
        !            59:        if test -d $(web); then                                         \
        !            60:          ( cd $(web)/ &&                                               \
        !            61:            for f in *.html; do                                         \
        !            62:              if test -f ../../$(HTMLS)/"$$f"; then :; else             \
        !            63:                echo "\`$$f' isn't anymore.  Removing." &&              \
        !            64:                rm "$$f" &&                                             \
        !            65:                cvs remove "$$f";                                       \
        !            66:              fi;                                                       \
        !            67:            done ) &&                                                   \
        !            68:          cp $(HTMLS)/*.html $(web)/ &&                                 \
        !            69:          cd $(web)/ &&                                                 \
        !            70:          { cvs add *.html || :; };                                     \
        !            71:        fi
        !            72: ps-local:
        !            73:        if test -d $(web); then                                         \
        !            74:          ( cd $(web)/ &&                                               \
        !            75:            for f in *.ps; do                                           \
        !            76:              case \ $(PSS)\  in                                        \
        !            77:                \ doc/"$$f"\ ) :;;                                      \
        !            78:                *) echo "\`$$f' isn't anymore.  Removing." &&           \
        !            79:                   rm -f "$$f" "$$f".ps &&                              \
        !            80:                   cvs remove "$$f" "$$f".ps ;;                         \
        !            81:              esac;                                                     \
        !            82:            done ) &&                                                   \
        !            83:          cp $(PSS) $(web)/ &&                                          \
        !            84:          cd $(web)/ &&                                                 \
        !            85:          for f in *.ps; do                                             \
        !            86:            gzip -9 < "$$f" > "$$f".gz;                                 \
        !            87:          done &&                                                       \
        !            88:          { cvs add *.ps *.ps.gz || :; };                               \
        !            89:        fi
        !            90: pdf-local:
        !            91:        if test -d $(web); then                                         \
        !            92:          ( cd $(web)/ &&                                               \
        !            93:            for f in *.pdf; do                                          \
        !            94:              case \ $(PDFS)\  in                                       \
        !            95:                \ doc/"$$f"\ ) :;;                                      \
        !            96:                *) echo "\`$$f' isn't anymore.  Removing." &&           \
        !            97:                   rm "$$f" &&                                          \
        !            98:                   cvs remove "$$f";;                                   \
        !            99:              esac;                                                     \
        !           100:            done ) &&                                                   \
        !           101:          cp $(PDFS) $(web)/ &&                                         \
        !           102:          cd $(web)/ &&                                                 \
        !           103:          { cvs add *.pdf || :; };                                      \
        !           104:        fi
        !           105: # TODO.  There doesn't seem to be a hook or `-local' target suitable for this.
        !           106: $(srcdir)/doc/version.texi: $(srcdir)/doc/stamp-vti
        !           107:        @if test -d $(web); then :;                                     \
        !           108:        elif grep 2> /dev/null                                          \
        !           109:               -q :ext: $(top_srcdir)/CVS/Root 2> /dev/null &&          \
        !           110:             grep 2> /dev/null                                          \
        !           111:               -q ^Tgnumach-1-branch$$ $(top_srcdir)/CVS/Tag;           \
        !           112:        then                                                            \
        !           113:          echo "*** As it seems that you'd be allowed to check in the"  \
        !           114:            "possible resulting fixes, you may consider running"        \
        !           115:            " \`make $(web)' to get a checkout of the web pages of the" \
        !           116:            "GNU Mach manual and have possible changes installed into"  \
        !           117:            "\`$(web)/', ready for checking them in in there." &&       \
        !           118:          sleep 2;                                                      \
        !           119:        fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.