Name: github-backup
Version: 1.20161118
Cabal-Version: >= 1.8
Maintainer: Joey Hess <id@joeyh.name>
Author: Joey Hess
Stability: Stable
Copyright: 2012 Joey Hess
License: GPL-3
License-File: COPYRIGHT
Build-Type: Custom
Homepage: https://github.com/joeyh/github-backup
Category: Utility
Synopsis: backs up everything github knows about a repository, to the repository
Description:
 github-backup is a simple tool you run in a git repository you cloned from
 Github. It backs up everything Github knows about the repository, including
 other forks, issues, comments, milestones, pull requests, and watchers.

 Also includes gitriddance, which can be used to close all open issues and
 pull requests.
Extra-Source-Files:
  stack.yaml
  README.md
  CHANGELOG
  COPYRIGHT
  GPL
  github-backup.1
  gitriddance.1
  Makefile
  configure.hs
  Build/collect-ghc-options.sh

Flag network-uri
  Description: Get Network.URI from the network-uri package
  Default: True

Executable github-backup
  Main-Is: github-backup.hs
  GHC-Options: -Wall -fno-warn-tabs
  Build-Depends: MissingH, hslogger, directory, filepath, containers, mtl,
   network, exceptions, transformers, unix-compat, bytestring, vector,
   IfElse, pretty-show, text, process, optparse-applicative, utf8-string,
   github >= 0.14.0 && < 0.15.0,
   base >= 4.8, base < 5
  
  if (! os(windows))
    Build-Depends: unix
  else
    Build-Depends: Win32, setenv
  
  if flag(network-uri)
    Build-Depends: network-uri (>= 2.6), network (>= 2.6)
  else
    Build-Depends: network (< 2.6), network (>= 2.0)
  
  Other-Modules:
    Build.Version
    Build.TestConfig
    Build.Configure
    Common
    Github.GetAuth
    Github.EnumRepos
    Git
    Git.CatFile
    Git.Branch
    Git.Ref
    Git.Url
    Git.Command
    Git.Version
    Git.Construct
    Git.Config
    Git.UpdateIndex
    Git.FilePath
    Git.Types
    Git.DiffTreeItem
    Git.Queue
    Git.BuildVersion
    Git.HashObject
    Git.Index
    Git.Sha
    Git.Remote
    Utility.Tmp
    Utility.Path
    Utility.FileSystemEncoding
    Utility.Monad
    Utility.SafeCommand
    Utility.Exception
    Utility.State
    Utility.Process
    Utility.FileMode
    Utility.CoProcess
    Utility.Process.Shim
    Utility.UserInfo
    Utility.Misc
    Utility.Env
    Utility.PosixFiles
    Utility.Data
    Utility.PartialPrelude
    Utility.DottedVersion
    Utility.Applicative
    Utility.Directory
    Utility.SystemDirectory

Executable gitriddance
  Main-Is: gitriddance.hs
  GHC-Options: -Wall -fno-warn-tabs
  Build-Depends: github >= 0.14.0 && < 0.15.0, base >= 4.8, base < 5, text, filepath,
    MissingH, exceptions, transformers, bytestring, vector, hslogger, process,
    containers, unix-compat, IfElse, directory, mtl, utf8-string
  
  if (! os(windows))
    Build-Depends: unix
  else
    Build-Depends: Win32, setenv
  
  if flag(network-uri)
    Build-Depends: network-uri (>= 2.6), network (>= 2.6)
  else
    Build-Depends: network (< 2.6), network (>= 2.0)

custom-setup
  Setup-Depends: base (>= 4.5), hslogger, MissingH, directory, process,
    unix-compat, unix, exceptions, bytestring, filepath, IfElse, mtl, Cabal

source-repository head
  type: git
  location: git://github.com/joeyh/github-backup.git
