# .easiboxrc for herbrip
#
# (script to create archive files -- see easibox documentation
# for details)
# 
# This script is only likely to work on Phil Hunt's machine,
# due to specific directory names being used

boxFormats = ['tgz', 'tar.gz', 'zip']
archiveDestination = "~/proj/v/" # archives for my projects

savingToWebsiteImage = 1

prerun('echo "----------! making %s %s !----------"' 
   %(packageName,packageVer))
prerun("make clean")

#********** define files to include **********

#***** top directory
include("*")
include(".easiboxrc")
exclude("*~")
exclude("~*")

#***** src directory
include("src/*")
exclude("src/xxxx.py")
exclude("src/*.pyc")
exclude("src/*~")
exclude("src/~*")

#***** test directory
include("test/*.py")
include("test/prepare")
exclude("test/*~")
exclude("test/~*")

#***** doc directory
include("doc/*")
exclude("doc/*~")
exclude("doc/~*")


#********** save boxfiles to local www directory
wwwDir = "~/proj/wwwfs/oss/herbivore"
if savingToWebsiteImage:
   for bf in boxFormats:
      boxFileName = "%s%s-%s.%s" % (archiveDestination,
         packageName, packageVer, bf)   
      cpCmd = "cp %s %s" % (boxFileName, wwwDir)
      print "<<<<< %s >>>>>" % cpCmd
      #postrun(cpCmd) #(commented out for now)

#end
