forked from StartupAPI/users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (65 loc) · 1.77 KB
/
Makefile
File metadata and controls
77 lines (65 loc) · 1.77 KB
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
72
73
74
75
76
77
all: updatecode updatedb
updatecode:
ifneq "$(wildcard .svn )" ""
rm -rf dbupgrade oauth-php admin/swfobject modules/facebook/php-sdk
svn update
mkdir dbupgrade/
svn export http://svn.github.com/sergeychernyshev/DBUpgrade.git _dbupgrade
mv _dbupgrade/* dbupgrade/
rm -rf _dbupgrade
mkdir oauth-php
svn export http://svn.github.com/sergeychernyshev/oauth-php.git _oauth-php
mv _oauth-php/* oauth-php
rm -rf _oauth-php
mkdir admin/swfobject
svn export http://svn.github.com/swfobject/swfobject.git _swfobject
mv _swfobject/* admin/swfobject
rm -rf _swfobject
rm -rf _php-sdk
mkdir modules/facebook/php-sdk
git clone git://github.com/facebook/php-sdk.git _php-sdk
( cd _php-sdk; git archive v2.1.2 | tar -x -C ../modules/facebook/php-sdk )
rm -rf _php-sdk
endif
ifneq "$(wildcard .git )" ""
git pull origin master
git submodule init
git submodule update
endif
updatedb:
php dbupgrade.php
php aggregatepoints.php
rel: release
release: releasetag packages
releasetag:
ifndef v
# Must specify version as 'v' param
#
# make rel v=1.1.1
#
else
#
# Tagging it with release tag
#
git tag -a REL_${subst .,_,${v}}
git push --tags
endif
packages:
ifndef v
# Must specify version as 'v' param
#
# make rel v=1.1.1
#
else
mkdir StartupAPI_${v}
# generate the package
git clone . StartupAPI_${v}/users
cd StartupAPI_${v}/users/ && git checkout REL_${subst .,_,${v}}
cd StartupAPI_${v}/users/ && ${MAKE} updatecode
cd StartupAPI_${v}/users/ && find ./ -name "\.git*" | xargs -n10 rm -r
tar -c StartupAPI_${v}/ |bzip2 > StartupAPI_${v}.tar.bz2
zip -r StartupAPI_${v}.zip StartupAPI_${v}
rm -rf StartupAPI_${v}
endif
documentation:
phpdoc -o HTML:frames:default -d . -t docs -i "*/oauth-php/*,*/modules/facebook/php-sdk/*,*/dbupgrade/*,*/admin/swfobject/*,*/docs/*"