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
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with phpcomposer
override_dh_auto_build:
if [ ! -e libs/sysplugins/smarty_internal_configfilelexer.php.orig ]; then \
cp libs/sysplugins/smarty_internal_configfilelexer.php libs/sysplugins/smarty_internal_configfilelexer.php.orig; \
fi
if [ ! -e libs/sysplugins/smarty_internal_configfileparser.php.orig ]; then \
cp libs/sysplugins/smarty_internal_configfileparser.php libs/sysplugins/smarty_internal_configfileparser.php.orig; \
fi
php /usr/share/php/smarty-lexer/Create_Config_Parser.php
if [ ! -e libs/sysplugins/smarty_internal_templatelexer.php.orig ]; then \
cp libs/sysplugins/smarty_internal_templatelexer.php libs/sysplugins/smarty_internal_templatelexer.php.orig; \
fi
if [ ! -e libs/sysplugins/smarty_internal_templateparser.php.orig ]; then \
cp libs/sysplugins/smarty_internal_templateparser.php libs/sysplugins/smarty_internal_templateparser.php.orig; \
fi
php /usr/share/php/smarty-lexer/Create_Template_Parser.php
dh_auto_build
override_dh_auto_clean:
if [ -e libs/sysplugins/smarty_internal_configfilelexer.php.orig ]; then \
mv libs/sysplugins/smarty_internal_configfilelexer.php.orig libs/sysplugins/smarty_internal_configfilelexer.php; \
fi
if [ -e libs/sysplugins/smarty_internal_configfileparser.php.orig ]; then \
mv libs/sysplugins/smarty_internal_configfileparser.php.orig libs/sysplugins/smarty_internal_configfileparser.php; \
fi
if [ -e libs/sysplugins/smarty_internal_templatelexer.php.orig ]; then \
mv libs/sysplugins/smarty_internal_templatelexer.php.orig libs/sysplugins/smarty_internal_templatelexer.php; \
fi
if [ -e libs/sysplugins/smarty_internal_templateparser.php.orig ]; then \
mv libs/sysplugins/smarty_internal_templateparser.php.orig libs/sysplugins/smarty_internal_templateparser.php; \
fi
rm -f lexer/smarty_internal_configfilelexer.php
rm -f lexer/smarty_internal_configfileparser.out
rm -f lexer/smarty_internal_configfileparser.php
rm -f lexer/smarty_internal_templatelexer.php
rm -f lexer/smarty_internal_templateparser.out
rm -f lexer/smarty_internal_templateparser.php
override_dh_install:
dh_install
rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.bak
rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.bak
rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.orig
rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.orig
override_dh_installchangelogs:
dh_installchangelogs CHANGELOG.md
|