Command line utilities for working with epub files (Haskell)

root / util / win-dist.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash

version=$(awk '/^[Vv]ersion/ { print $2 }' epub-tools.cabal)

buildDir="dist"

./util/install.hs -p $buildDir -t bundle

zipFile="epub-tools-$version-win.zip"

rm $zipFile

cd $buildDir

zip -r ../$zipFile *