#!/bin/bash # # Copyright (C) 2023-2024 Adrien Bourmault # # This file is part of tyto-litterateur. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . default: tyto.deb ### MAKE DEB .INTERMEDIATE: debian/debian-binary debian/control.tar.gz debian/data.tar.gz .PHONY: clean tyto.deb: debian/debian-binary debian/control.tar.gz debian/data.tar.gz cd debian && ar -r ../tyto.deb debian-binary control.tar.gz data.tar.gz debian/data.tar.gz: cd src && tar czvf ../debian/data.tar.gz usr var debian/control.tar.gz: cd debian && tar czvf control.tar.gz control #preinst postinst prerm postrm debian/debian-binary: echo 2.0 > debian/debian-binary clean: -rm debian/*.tar.gz -rm debian/debian-binary -rm *.deb