-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
72 lines (56 loc) · 2.37 KB
/
Makefile.in
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# $Id: Makefile.in,v 1.3 2006-05-16 19:27:38 hww3 Exp $
@make_variables@
VPATH=@srcdir@:@srcdir@/../..:../..
# things we should define.
# the .o files that we need to generate for the module
# rules will automatically generate these from .c, .cmod, .m and .mmod files.
OBJS=
# the module directory we put things into. it should be a directory path
# of .pmod directories, and this must end with a trailing slash.
MODDIR=Public.pmod/
# the module name the resulting dynamic and/or pike module will be
# installed as. note that it's just a module or class name without extension.
MODNAME=Syndication
# used by the module repository to scan for autodocs. should be the
# list of non pike files containing autodoc markup (ie cmod or c files).
AUTODOC_SRC_IN=
# the module name note that there is no error checking, so all of these
# related variables should agree.
MODULE_NAME=Public.Syndication
# the module name, with periods replaced with underscores. used to
# generate the module distribution.
MODULE_DIR_NAME=Public_Syndication
# need i say more?
MODULE_LICENSE=GPL/LGPL/MPL
# we shouldn't need to do anything to the rest of the file.
CFLAGS=@CMOD_CFLAGS@
LDFLAGS=@CMOD_LIBS@
MODULE_LDFLAGS=@LDFLAGS@
CONFIG_HEADERS=@CONFIG_HEADERS@
@dynamic_module_makefile@
@dependencies@
pmar: verify
mkdir ${MODULE_DIR_NAME}-1.${MIN}
mkdir ${MODULE_DIR_NAME}-1.${MIN}/MODULE
mkdir ${MODULE_DIR_NAME}-1.${MIN}/SCRIPTS
-cp package/*.pike ${MODULE_DIR_NAME}-1.${MIN}/SCRIPTS
-cp -rf plib/modules/* ${MODULE_DIR_NAME}-1.${MIN}/MODULE
echo "MODULE=${MODULE_NAME}" > ${MODULE_DIR_NAME}-1.${MIN}/METADATA.TXT
echo "VERSION=1.${MIN}" >> ${MODULE_DIR_NAME}-1.${MIN}/METADATA.TXT
if test x${OBJS} = x ; then \
echo "PLATFORM=any/any" >> ${MODULE_DIR_NAME}-1.${MIN}/METADATA.TXT ; \
else \
echo "CREATING A NON-PLATFORM INDEPENDENT PACKAGE! YOU MUST UPDATE THE PLATFORM VALUE IN METADATA.TXT." ;\
fi
tar cvf ${MODULE_DIR_NAME}-1.${MIN}.pmar ${MODULE_DIR_NAME}-1.${MIN}
rm -rf ${MODULE_DIR_NAME}-1.${MIN}
release:
hg tag -r tip RELEASE_1.${MIN}
hg push
hg archive -r RELEASE_1.${MIN} Public_Syndication-1.${MIN}
cd Public_Syndication-1.${MIN} && \
pike -x module --autoheader && pike -x module --autoconf && \
rm -rf autom4*
tar czvf Public_Syndication-1.${MIN}.tar.gz Public_Syndication-1.${MIN}
rm -rf Public_Syndication-1.${MIN}
pike upload_module_version.pike ${MODULE_NAME} 1.${MIN} "${MODULE_LICENSE}"