Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump version to 0.10.1

Ignore-this: cf7faf262aa440d9c955380e0511ce74

darcs-hash:20110818092819-62b54-33042b5b49638ca8bf18d4589591d41470ca601f.gz
  • Loading branch information...
commit 959f97a88411b6f17526d936129de927bfc13b19 1 parent 3045d38
@phonohawk authored
Showing with 46 additions and 4 deletions.
  1. +2 −1  HsOpenSSL.cabal
  2. +44 −3 cabal-package.mk
View
3  HsOpenSSL.cabal
@@ -5,13 +5,14 @@ Description:
can generate RSA and DSA keys, read and write PEM files,
generate message digests, sign and verify messages, encrypt
and decrypt messages.
-Version: 0.10
+Version: 0.10.1
License: PublicDomain
License-File: COPYING
Author: Adam Langley, Mikhail Vorozhtsov, PHO, Taru Karttunen
Maintainer: PHO <pho at cielonegro dot org>
Stability: stable
Homepage: http://cielonegro.org/HsOpenSSL.html
+Bug-Reports: http://static.cielonegro.org/ditz/HsOpenSSL/
Category: Cryptography
Tested-With: GHC == 7.0.3
Cabal-Version: >= 1.6
View
47 cabal-package.mk
@@ -13,11 +13,15 @@ FIND ?= find
RM_RF ?= rm -rf
SUDO ?= sudo
AUTOCONF ?= autoconf
+HLINT ?= hlint
+HPC ?= hpc
+DITZ ?= ditz
CONFIGURE_ARGS ?= --disable-optimization
SETUP_FILE := $(wildcard Setup.*hs)
CABAL_FILE := $(wildcard *.cabal)
+PKG_NAME := $(CABAL_FILE:.cabal=)
ifeq ($(shell ls configure.ac 2>/dev/null),configure.ac)
AUTOCONF_AC_FILE := configure.ac
@@ -39,6 +43,7 @@ all: build
build: setup-config build-hook
./Setup build
+ $(RM_RF) *.tix
build-hook:
@@ -69,7 +74,7 @@ Setup: $(SETUP_FILE)
$(GHC) --make Setup
clean: clean-hook
- $(RM_RF) dist Setup *.o *.hi .setup-config *.buildinfo
+ $(RM_RF) dist Setup *.o *.hi .setup-config *.buildinfo *.tix .hpc
$(FIND) . -name '*~' -exec rm -f {} \;
clean-hook:
@@ -84,6 +89,42 @@ sdist: setup-config
./Setup sdist
test: build
+ $(RM_RF) dist/test
./Setup test
-
-.PHONY: build build-hook setup-config setup-config-hook run clean clean-hook install doc sdist test
+ if ls *.tix >/dev/null 2>&1; then \
+ $(HPC) sum --output="merged.tix" --union --exclude=Main *.tix; \
+ $(HPC) markup --destdir="dist/hpc" --fun-entry-count "merged.tix"; \
+ fi
+
+ditz:
+ $(DITZ) html dist/ditz
+
+fixme:
+ @$(FIND) . \
+ \( -name 'dist' -or -name '.git' -or -name '_darcs' \) -prune \
+ -or \
+ \( -name '*.c' -or -name '*.h' -or \
+ -name '*.hs' -or -name '*.lhs' -or \
+ -name '*.hsc' -or -name '*.cabal' \) \
+ -exec egrep -i '(fixme|thinkme)' {} \+ \
+ || echo 'No FIXME or THINKME found.'
+
+lint:
+ $(HLINT) . --report
+
+push: doc ditz
+ if [ -d "_darcs" ]; then \
+ darcs push; \
+ elif [ -d ".git" ]; then \
+ git push --all && git push --tags; \
+ fi
+ if [ -d "dist/doc" ]; then \
+ rsync -av --delete \
+ dist/doc/html/$(PKG_NAME)/ \
+ www@nem.cielonegro.org:static.cielonegro.org/htdocs/doc/$(PKG_NAME); \
+ fi
+ rsync -av --delete \
+ dist/ditz/ \
+ www@nem.cielonegro.org:static.cielonegro.org/htdocs/ditz/$(PKG_NAME)
+
+.PHONY: build build-hook setup-config setup-config-hook run clean clean-hook install doc sdist test lint push
Please sign in to comment.
Something went wrong with that request. Please try again.