Merge branch 'joeyconfig'
This commit is contained in:
commit
4c94fd4703
30
Makefile
30
Makefile
|
@ -5,9 +5,11 @@ CABAL?=cabal
|
||||||
run: build
|
run: build
|
||||||
./propellor
|
./propellor
|
||||||
|
|
||||||
dev: build tags
|
build: tags propellor.1 dist/setup-config
|
||||||
|
$(CABAL) build
|
||||||
|
ln -sf dist/build/propellor-config/propellor-config propellor
|
||||||
|
|
||||||
install: propellor.1
|
install:
|
||||||
install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor
|
install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor
|
||||||
install -s dist/build/propellor/propellor $(DESTDIR)/usr/bin/propellor
|
install -s dist/build/propellor/propellor $(DESTDIR)/usr/bin/propellor
|
||||||
mkdir -p dist/gittmp
|
mkdir -p dist/gittmp
|
||||||
|
@ -22,9 +24,6 @@ install: propellor.1
|
||||||
&& git show-ref master --hash > $(DESTDIR)/usr/src/propellor/head
|
&& git show-ref master --hash > $(DESTDIR)/usr/src/propellor/head
|
||||||
rm -rf dist/gittmp
|
rm -rf dist/gittmp
|
||||||
|
|
||||||
propellor.1: doc/usage.mdwn doc/mdwn2man
|
|
||||||
doc/mdwn2man propellor 1 < doc/usage.mdwn > propellor.1
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf dist Setup tags propellor propellor.1 privdata/local
|
rm -rf dist Setup tags propellor propellor.1 privdata/local
|
||||||
find -name \*.o -exec rm {} \;
|
find -name \*.o -exec rm {} \;
|
||||||
|
@ -34,7 +33,14 @@ clean:
|
||||||
# duplicate tags with Propellor.Property. removed from the start, as we
|
# duplicate tags with Propellor.Property. removed from the start, as we
|
||||||
# often import qualified by just the module base name.
|
# often import qualified by just the module base name.
|
||||||
tags:
|
tags:
|
||||||
find . | grep -v /.git/ | grep -v /tmp/ | grep -v /dist/ | grep -v /doc/ | egrep '\.hs$$' | xargs hothasktags | perl -ne 'print; s/Propellor\.Property\.//; print' | sort > tags 2>/dev/null
|
find . | grep -v /.git/ | grep -v /tmp/ | grep -v /dist/ | grep -v /doc/ | egrep '\.hs$$' | xargs hothasktags | perl -ne 'print; s/Propellor\.Property\.//; print' | sort > tags 2>/dev/null || true
|
||||||
|
|
||||||
|
dist/setup-config: propellor.cabal
|
||||||
|
@if [ "$(CABAL)" = ./Setup ]; then ghc --make Setup; fi
|
||||||
|
@$(CABAL) configure
|
||||||
|
|
||||||
|
propellor.1: doc/usage.mdwn doc/mdwn2man
|
||||||
|
doc/mdwn2man propellor 1 < doc/usage.mdwn > propellor.1
|
||||||
|
|
||||||
# Upload to hackage.
|
# Upload to hackage.
|
||||||
hackage:
|
hackage:
|
||||||
|
@ -42,15 +48,3 @@ hackage:
|
||||||
@cabal upload dist/*.tar.gz
|
@cabal upload dist/*.tar.gz
|
||||||
|
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
|
|
||||||
# The rules below are only used when bootstrapping new propellor
|
|
||||||
# installations and building packages; propellor contains equivilant
|
|
||||||
# haskell code that it uses to re-build itself.
|
|
||||||
|
|
||||||
build: dist/setup-config
|
|
||||||
@if ! $(CABAL) build; then $(CABAL) configure; $(CABAL) build; fi
|
|
||||||
@ln -sf dist/build/propellor-config/propellor-config propellor
|
|
||||||
|
|
||||||
dist/setup-config: propellor.cabal
|
|
||||||
@if [ "$(CABAL)" = ./Setup ]; then ghc --make Setup; fi
|
|
||||||
@$(CABAL) configure
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
propellor (2.2.0) UNRELEASED; urgency=medium
|
propellor (2.2.0) unstable; urgency=medium
|
||||||
|
|
||||||
* When running shimmed (eg in a docker container),
|
* When running shimmed (eg in a docker container),
|
||||||
improve process name visible in ps.
|
improve process name visible in ps.
|
||||||
|
@ -7,7 +7,7 @@ propellor (2.2.0) UNRELEASED; urgency=medium
|
||||||
* Propellor now builds itself, and gets its build dependencies installed
|
* Propellor now builds itself, and gets its build dependencies installed
|
||||||
when deploying to a new host, without needing the Makefile.
|
when deploying to a new host, without needing the Makefile.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Mon, 16 Feb 2015 19:00:48 -0400
|
-- Joey Hess <id@joeyh.name> Mon, 09 Mar 2015 12:02:31 -0400
|
||||||
|
|
||||||
propellor (2.1.0) unstable; urgency=medium
|
propellor (2.1.0) unstable; urgency=medium
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ configure Propellor!
|
||||||
Let's take a quick tour of the `config.hs` file..
|
Let's take a quick tour of the `config.hs` file..
|
||||||
|
|
||||||
[[!format haskell """
|
[[!format haskell """
|
||||||
-- | This is the main configuration file for Propellor, and is used to build
|
-- This is the main configuration file for Propellor, and is used to build
|
||||||
-- the propellor program.
|
-- the propellor program.
|
||||||
"""]]
|
"""]]
|
||||||
|
|
||||||
|
|
|
@ -322,7 +322,7 @@ twitRss = combineProperties "twitter rss" $ props
|
||||||
-- Work around for expired ssl cert.
|
-- Work around for expired ssl cert.
|
||||||
pumpRss :: Property NoInfo
|
pumpRss :: Property NoInfo
|
||||||
pumpRss = Cron.job "pump rss" (Cron.Times "15 * * * *") "joey" "/srv/web/tmp.kitenet.net/"
|
pumpRss = Cron.job "pump rss" (Cron.Times "15 * * * *") "joey" "/srv/web/tmp.kitenet.net/"
|
||||||
"wget https://pump2rss.com/feed/joeyh@identi.ca.atom -O pump.atom --no-check-certificate 2>/dev/null"
|
"wget https://pump2rss.com/feed/joeyh@identi.ca.atom -O pump.atom.new --no-check-certificate 2>/dev/null; sed 's/ & / /g' pump.atom.new > pump.atom"
|
||||||
|
|
||||||
ircBouncer :: Property HasInfo
|
ircBouncer :: Property HasInfo
|
||||||
ircBouncer = propertyList "IRC bouncer" $ props
|
ircBouncer = propertyList "IRC bouncer" $ props
|
||||||
|
|
Loading…
Reference in New Issue