| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ |
| 5 |
|
| 6 |
override_dh_auto_test: |
| 7 |
# Skip tests as they try to connect to database |
| 8 |
|
| 9 |
override_dh_auto_install: |
| 10 |
dh_auto_install |
| 11 |
file-rename 's/selectall/stag-selectall/' debian/libdbix-dbstag-perl/usr/bin/* |
| 12 |
file-rename 's/selectall/stag-selectall/' debian/libdbix-dbstag-perl/usr/share/man/man1/* |
| 13 |
file-rename 's/\.pl//' debian/libdbix-dbstag-perl/usr/share/man/man1/*.pl.1p |
| 14 |
file-rename 's/ubiq/stag-ubiq/' debian/libdbix-dbstag-perl/usr/bin/* |
| 15 |
file-rename 's/\.pl//' debian/libdbix-dbstag-perl/usr/bin/*.pl |
| 16 |
sed -i 's/ubiq\.cgi/stag-ubiq/g' debian/libdbix-dbstag-perl/usr/bin/stag-ubiq.cgi |
| 17 |
rm -f debian/libdbix-dbstag-perl/usr/bin/*.cgi |
| 18 |
# Script not useful as template2scripts not embedded per makefile |
| 19 |
rm -f debian/libdbix-dbstag-perl/usr/bin/stag-template2bin |
| 20 |
# fix man pages, rename scripts without extensions |
| 21 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/selectall_html\.pl/stag-selectall_html/g' |
| 22 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/selectall_xml\.pl/stag-selectall_xml/g' |
| 23 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoddl\.pl/stag-autoddl/g' |
| 24 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-mogrify\.pl/stag-mogrify/g' |
| 25 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoddl\.pl/stag-autoddl/g' |
| 26 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-storenode\.pl/stag-storenode/g' |
| 27 |
find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoschema\.pl/stag-autoschema/g' |