pagure-new/debian/rules

32 lines
1021 B
Makefile
Executable File

#!/usr/bin/make -f
export PYBUILD_NAME = pagure
export PYBUILD_DESTDIR = debian/pagure/
%:
dh $@ --with python2,systemd,sphinxdoc,apache2 --buildsystem=pybuild
override_dh_auto_build:
# Marking scripts as executable.
chmod 0755 \
createdb.py \
milters/comment_email_milter.py \
files/api_key_expire_mail.py
# Removing executable bit from font files.
find pagure/static/hack_fonts/fonts/ -type f \
\( -name "*.ttf" -o -name "*.woff*" -o -name "*.eot" -o \
-name "*.svg" \) | xargs chmod -x
# Generating the minified JS files from the no-minified ones.
find pagure/static/ -name "*.js" -type l \
| sed 's/\.js$$//' | while read file ; do \
yui-compressor -o $${file}.min.js $${file}.js; \
done
# Generating the minified CSS from the non-minified ones.
find pagure/static/ -name "*.css" -type l \
| sed 's/\.css$$//' | while read file ; do \
yui-compressor -o $${file}.min.css $${file}.css; \
done
dh_auto_build
PYTHONPATH=$(CURDIR) http_proxy='127.0.0.1:9' \
make -C doc/ html man