stackage/patching/scripts/create-tarballs.sh
Michael Snoyman 61818f6ff8 Script fix
2013-06-30 13:42:26 +03:00

23 lines
303 B
Bash
Executable File

#!/bin/bash -ex
mkdir -p tarballs
for f in patches/*
do
(
PKG1=$(basename $f)
PKG=${PKG1%.patch}
rm -rf tmp
mkdir tmp
(
cd tmp
cabal unpack $PKG
cd $PKG
patch -p1 < ../../$f
cabal sdist
mv dist/$PKG.tar.gz ../../tarballs
)
rm -rf tmp
)
done