Skip to content

Commit 4b1d3b6

Browse files
committed
mkdist.sh: use git instead of darcs
Use git instead of darcs to generate the ChangeLog. Also, refuse to create a distribution if git HEAD does not have a tag, to prevent a common mistake.
1 parent fe84f5d commit 4b1d3b6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mkdist.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
NJOBS=4
22

3-
darcs pull [email protected]:darcs/fftw3
3+
tag=`git tag --contains HEAD`
4+
if [ -z "$tag" ]; then
5+
echo "Current git HEAD is not tagged---refusing to build distribution"
6+
exit 1
7+
fi
48

59
# hackery to build ChangeLog
6-
darcs changes --summary > ChangeLog
10+
git log --pretty=medium --date-order > ChangeLog
711

812
sh bootstrap.sh
913

0 commit comments

Comments
 (0)