[ PHPXref.com ] [ Generated: Sun Jul 20 19:55:08 2008 ] [ phpSlash 0.8.1.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> Makefile (source)

   1  # 
   2  # PHPSlash MAKEFILE
   3  #
   4  # $Id: Makefile,v 1.9 2006/01/15 16:07:09 lems1 Exp $
   5  # 
   6  # Release early, release often - `make dist` will create for you
   7  # four different archives for the current revision with only one command
   8  #
   9  # Use `make all` to make the documents and other minor things needed
  10  # after you already have a "dist" (or a tarball that was unpacked.
  11  #
  12  # "clean" make target will do just that for the "dist" (or current 
  13  # directory)
  14  #
  15  # Copyright (c) 1998,1999 Sascha Schumann <sascha@schumann.cx>
  16  #
  17  # some other goodies (written up, because I tend to forget them...)
  18  # 
  19  # cvs export -D now -d dist phpslash
  20  # (will export (without CVS directories) the module phpslash at its
  21  # current state into directory dist)
  22  #
  23  # cvs rtag -D now PHPLIB-X.XX phpslash
  24  # (assign the current revisions a special tag)
  25  #
  26  
  27  REVISION=$(shell cat VERSION)
  28  
  29  PACKAGE=phpslash
  30  
  31  DISTDIR="../$PACKAGE}-$REVISION}"
  32  
  33  BSF="../$PACKAGE}-$REVISION}"
  34  
  35  all: clean
  36      $MAKE} -C doc/html html txt
  37  
  38  dist:
  39      if [ -d $DISTDIR} ] ; then echo "DISTDIR exists already"; exit 1; fi
  40      if [ -f ".filelist" ] ; then echo "stalled .filelist?"; exit 1; fi
  41      ls > .filelist
  42      mkdir $DISTDIR}
  43      chmod 755 $DISTDIR}
  44      cp -Rpf `cat .filelist` $DISTDIR}
  45      @# for the debian package we need config_setup.php in doc
  46      cp public_html/config_setup.php $DISTDIR}/doc/
  47      echo "RELEASE $REVISION}" > $DISTDIR}/VERSION
  48      rm .filelist
  49      find $DISTDIR} -name CVS -type d -print0 | xargs -0 rm -rf 
  50      find $DISTDIR} -name .cvsignore -exec rm -rf {} \;
  51      find $DISTDIR} -name "*.bak" -exec rm -rf {} \;
  52      @# fixes permissions
  53      find $DISTDIR} -name "*.gif" -exec chmod 0644 {} \;
  54      find $DISTDIR} -name "*.png" -exec chmod 0644 {} \;
  55      find $DISTDIR} -name "*.jpg" -exec chmod 0644 {} \;
  56      find $DISTDIR} -name "*.php" -exec chmod 0644 {} \;
  57      find $DISTDIR} -name "*.tpl" -exec chmod 0644 {} \;
  58      find $DISTDIR} -name "*.htm*" -exec chmod 0644 {} \;
  59      @# make the needed config* files
  60      cp public_html/config-dist.ini.php $DISTDIR}/public_html/config.ini.php
  61      cp public_html/config-dist.php $DISTDIR}/public_html/config.php
  62      $MAKE} -C $DISTDIR}/doc/html all
  63      tar cvf $BSF}.tar $DISTDIR} > /dev/null
  64      gzip -c9 $BSF}.tar > $BSF}.tar.gz
  65      @# We don't build these for phpslash 
  66      @#bzip2 -c9 $BSF}.tar > $BSF}.tar.bz2
  67      @#zip -r9 $BSF}.zip $DISTDIR} &> /dev/null
  68      @#shar -z $DISTDIR} > $BSF}.shar 2>/dev/null
  69      rm $BSF}.tar
  70      rm -rf $DISTDIR}
  71  
  72  clean:
  73      rm -fr $PACKAGE}*
  74      rm -f *.tar *.tar.gz .filelist
  75      $MAKE} -C doc/html clean
  76      
  77  .PHONY: clean all dist test


[ Powered by PHPXref - Served by Debian GNU/Linux ]