Changeset 15097


Ignore:
Timestamp:
Nov 21, 2005, 6:35:50 AM (15 years ago)
Author:
jberry
Message:

Add dis target to top level makefile that creates the tar archives and generates
checksums for a distribution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release_1_2/base/Makefile.in

    r14528 r15097  
    1 SUBDIR= doc src
     1SUBDIR          = doc src
     2DISTDIR         = dist
     3DISTNAME        = DarwinPorts-${DISTVER}
    24
    35include Mk/dports.subdir.mk
     
    3335distclean::
    3436        rm -f config.log config.status configure.lineno
    35         rm -rf autom4te.cache
     37        rm -rf autom4te.cache ${DISTDIR}
    3638        rm -f Makefile Mk/dports.autoconf.mk
     39       
     40dist::
     41        @[ -n "${DISTVER}" ] || ( echo Must specify DISTVER, like: make DISTVER=1.1 dist; exit 1 )
     42        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
     43        tar --exclude CVS --exclude ${DISTDIR} -c . | gzip > ${DISTDIR}/${DISTNAME}.tar.gz
     44        tar --exclude CVS --exclude ${DISTDIR} -c . | bzip2 > ${DISTDIR}/${DISTNAME}.tar.bz2
     45       
     46        cd ${DISTDIR}; for type in -md5 -sha1 -ripemd160; do openssl dgst $$type *.gz *.bz2; done > ${DISTNAME}.chk.txt
     47        cat ${DISTDIR}/${DISTNAME}.chk.txt
    3748
    3849test::
Note: See TracChangeset for help on using the changeset viewer.