forked from mono/Mono.Zeroconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
51 lines (44 loc) · 1.97 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SUBDIRS = \
src \
docs
MAINTAINERCLEANFILES = \
Makefile.in \
aclocal.m4 \
configure \
config.* \
INSTALL \
install-sh \
missing
EXTRA_DIST = \
mono-zeroconf.spec \
Mono.Zeroconf.sln \
README.Windows
collect:
rm -rf bin; \
mkdir bin; \
find src \( -iname *.exe -o -iname *.dll \) -exec cp {} bin \;
PKV=$(PACKAGE)-$(VERSION)
PKB=$(PKV)-binary
dist-windows: all
@rm -rf $(PKB) && \
mkdir -p $(PKB)/bin && \
cp src/MZClient/MZClient.exe src/Mono.Zeroconf/Mono.Zeroconf.dll src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour.dll $(PKB)/bin && \
cp AUTHORS NEWS README README.Windows $(PKB) && \
cp COPYING $(PKB)/LICENSE && \
zip -r9 $(PKB).zip $(PKB) && \
rm -rf $(PKB)
release:
(cd $(top_srcdir)/docs; make update-html) && \
test -e $(PKV).tar.bz2 -a -e $(PKV).tar.gz -a -e $(PKV).zip -a -e $(PKB).zip || { echo "You must run distcheck and dist-windows before release"; exit 1; }; \
test -z $$MONO_USER && { echo "Please set MONO_USER for the commit"; exit 1; }; \
cp ChangeLog $(PKV).changes && \
sha1sum $(PKV).* $(PKB).* > $(PKV).sha1sum && \
touch LATEST-IS-$(VERSION) && \
ssh [email protected] rm /home/bansheeweb/download.banshee-project.org/mono-zeroconf/LATEST-IS*; \
ssh [email protected] rm -rf /home/bansheeweb/download.banshee-project.org/mono-zeroconf/docs; \
scp $(PKV).* $(PKB).* mono-zeroconf.spec LATEST* README README.Windows [email protected]:/home/bansheeweb/download.banshee-project.org/mono-zeroconf/ && rm LATEST* $(PKV).* $(PKB).* && \
scp -r $(top_builddir)/docs/html [email protected]:/home/bansheeweb/download.banshee-project.org/mono-zeroconf/docs && \
echo "Sleeping 10 seconds, about to tag release (as user $$MONO_USER)..."; \
sleep 10; \
echo "Starting svn tag..."; \
svn cp svn+ssh://[email protected]/source/trunk/Mono.Zeroconf svn+ssh://[email protected]/source/tags/Mono.Zeroconf-$(VERSION) -m 'Created tag for Mono.Zeroconf $(VERSION)';