Annotation of src/etc/Makefile.usr, revision 1.2

1.1       dillon      1: # Makefile.pkgsrc - installed as /usr/pkgsrc/Makefile
                      2: #
                      3: # Provides simple targets to download and maintain /usr/pkgsrc.
                      4: #
                      5: # $DragonFly$
                      6: 
                      7: all:
                      8:        @echo "Install or update /usr/pkgsrc using NetBSDs anoncvs"
                      9:        @echo "    make pkgsrc-checkout"
                     10:        @echo "    make pkgsrc-update"
                     11:        @echo ""
                     12:        @echo "These targets download/update the DragonFly cvs repository into"
                     13:        @echo "/home/dcvs.  The release-src-cvsup and head-src-cvsup will"
                     14:        @echo "first synchronize /home/dcvs then issue an update into /usr/src."
                     15:        @echo "    make cvs-cvsup"
1.2     ! dillon     16:        @echo "    make release-src-cvsup     (suggested)"
        !            17:        @echo "    make preview-src-cvsup"
1.1       dillon     18:        @echo "    make head-src-cvsup"
                     19:        @echo ""
                     20:        @echo "Extract kernel sources from src-sys.tar.bz2 in this directory."
                     21:        @echo "    make release-sys-extract"
                     22:        @echo ""
                     23:        @echo "If automating please restrict updates from the NetBSD anoncvs"
                     24:        @echo "server to no more then once a week and run cvsups no more often"
                     25:        @echo "then daily."
                     26: 
                     27: pkgsrc-checkout:
                     28:        cd ${.CURDIR}; \
                     29:        cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
                     30: 
                     31: pkgsrc-update:
                     32:        cd ${.CURDIR}; \
                     33:        cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot update -Pd pkgsrc
                     34: 
                     35: release-sys-extract:
                     36:        bunzip2 < src-sys.tar.bz2 | tar xvpf -
                     37: 
                     38: cvs-cvsup:
                     39:        if [ ! -d /home/dcvs ]; then mkdir /home/dcvs; fi
                     40:        cvsup -g -L 4 /usr/share/examples/cvsup/DragonFly-cvs-supfile
                     41: 
                     42: release-src-cvsup: cvs-cvsup
                     43:        cd ${.CURDIR}; if [ -d src/CVS ]; then \
1.2     ! dillon     44:            cvs -R -d /home/dcvs update -PAd -rDragonFly_RELEASE_1_10_Slip src; \
1.1       dillon     45:        else \
1.2     ! dillon     46:            cvs -R -d /home/dcvs checkout -PAd -rDragonFly_RELEASE_1_10_Slip src; \
        !            47:        fi
        !            48: 
        !            49: preview-src-cvsup: cvs-cvsup
        !            50:        cd ${.CURDIR}; if [ -d src/CVS ]; then \
        !            51:            cvs -R -d /home/dcvs update -PAd -rDragonFly_Preview src; \
        !            52:        else \
        !            53:            cvs -R -d /home/dcvs checkout -PAd -rDragonFly_Preview src; \
1.1       dillon     54:        fi
                     55: 
                     56: head-src-cvsup: cvs-cvsup
                     57:        cd ${.CURDIR}; if [ -d src/CVS ]; then \
                     58:            cvs -R -d /home/dcvs update -PAd -rHEAD src; \
                     59:        else \
                     60:            cvs -R -d /home/dcvs checkout -PAd -rHEAD src; \
                     61:        fi
                     62: