/* * vii - buffer and display output * Copyright (C) 2005 Peter Miller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: archive.cook */ setenv GROFF_NO_SGR = -c; integration-build-targets += archive/[project_minus].README archive/[project_minus].ae archive/[project_minus].tar.gz archive/[project_minus].lsm archive/index.html archive/[project_short].png; ; source_file_order = README [sort [stringset [source_files] install-sh etc/CHANGES.[version_short] MANIFEST - README ] ] ; MANIFEST: etc/MANIFEST.sh [vs_file] { sh [resolve etc/MANIFEST.sh [source_file_order]] > [target]; } archive/[project_minus].tar.gz: [source_file_order] set shallow { tar chf - [resolve [source_file_order]] | tardy -unu 0 -gnu 0 -una Peter -gna Miller [addprefix "-rp=" [search_list] [arch]] -p [project_minus] -ms 0644 -mc 07022 -now > archive/[project_minus].tar; gzip -9 -v archive/[project_minus].tar; } archive/[project].%: etc/%.roff: [arch]/bin/ssp etc/version.so set shallow { roffpp [prepost "-I" "/etc" [search_list]] [resolve etc/%.roff] | groff -Tascii -t -P-hub | [resolve [arch]/bin/ssp] - [target]; } archive/%.html: etc/%.html etc/version.so set shallow { groff -Tascii -P-hub [prepost "-I" "/etc" [search_list]] [resolve etc/%.html] > [target]; } if [find_command png2ico] then { integration-build-targets += archive/favicon.ico; archive/favicon.ico: archive/[project_short].png set shallow { pngtopnm [resolve archive/[project_short].png] /* | pnmgamma 2.0 */ | pnmscale -xysize 16 16 > temp1.pnm; pnmquant 16 temp1.pnm | pnmtopng > temp16.png; pngtopnm [resolve archive/[project_short].png] /* | pnmgamma 2.0 */ | pnmscale -xysize 32 32 > temp1.pnm; pnmquant 16 temp1.pnm | pnmtopng > temp32.png; png2ico [target] temp16.png temp32.png; rm temp1.pnm temp16.png temp32.png; } } archive/%0%: etc/%0%.uue set shallow { uudecode -o [target] [resolve [need]]; } archive/[project_minus].ae: [source_files] { if [find_command aedist] then { aedist --send --entire-source -ndh -cte\=none -p\=[project] -c\=[change] -o [target]; } else { function print Skipping [target], no aedist(1) to be found.; } } archive/[project_minus].lsm: etc/lsm.roff etc/version.so set shallow { groff -Tascii -P-hub [prepost "-I" "/etc" [search_list]] [resolve etc/lsm.roff] > [target]; } archive/[project_minus].README: README set shallow { cp [resolve README] [target]; }