forked from PhotoFilmStrip/PFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (38 loc) · 1.27 KB
/
Makefile
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
#
# Makefile for PhotoFilmStrip
#
appname = photofilmstrip
displayname = PhotoFilmStrip
mkdir = mkdir -p --
srcdir = .
compile:
python -c "import compileall, re;compileall.compile_dir('.', rx=re.compile('/[.]svn'), force=True, quiet=True)"
python -OO -c "import compileall, re;compileall.compile_dir('.', rx=re.compile('/[.]svn'), force=True, quiet=True)"
python setup.py build
clean:
if [ -e ./dist ] ; then rm -r ./dist ; fi
find . -name "*.pyc" -exec rm {} ';'
find . -name "*.pyo" -exec rm {} ';'
find . -name "_scmInfo.py*" -exec rm {} ';'
python setup.py clean
rm -f "$(displayname).pot"
pot:
pygettext -o "$(displayname).pot" -v "$(srcdir)/photofilmstrip"
versioninfo:
python -c "from photofilmstrip import Constants;print Constants.APP_VERSION"; \
package:
curdir=`pwd`; \
ver=`python -c "from photofilmstrip import Constants;print Constants.APP_VERSION"`; \
appver=`echo $(appname)-$$ver`; \
releasedir=`echo release_\`date +"%Y_%m_%d"\``; \
targetdir=`echo $$releasedir/$$appver`; \
rm -rf $$releasedir; \
$(mkdir) "$$releasedir"; \
python setup.py sdist; \
mv dist/*.tar.gz "$$releasedir/"; \
cd "$$releasedir"; \
tar -xzf "$$appver.tar.gz"; \
cd "$$appver"; \
cp -r "../../debian/" .; \
dch -d Makefile packaging; \
debuild --no-tgz-check -us -uc;