| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # fstrcmp - fuzzy string compare library |
| 4 | # Copyright (C) 2009, 2011 Peter Miller |
| 5 | # Written by Peter Miller <[email protected]> |
| 6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation; either version 3 of the License, or (at |
| 10 | # your option) any later version. |
| 11 | # |
| 12 | # This program is distributed in the hope that it will be useful, |
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | # General Public License for more details. |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License along |
| 18 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # |
| 20 | set -x |
| 21 | key= |
| 22 | while [scip-shell system . . `[`. $# -gt 0 ] |
| 23 | do |
| 24 | case "$1" in |
| 25 | -*) |
| 26 | key="$key $1" |
| 27 | shift |
| 28 | continue |
| 29 | ;; |
| 30 | *) |
| 31 | ;; |
| 32 | esac |
| 33 | break |
| 34 | done |
| 35 | intarball=$1 |
| 36 | outtarball=$2 |
| 37 | |
| 38 | project_minus=`basenamescip-shell system . . basename. $intarball .tar.gz` |
| 39 | |
| 40 | unset GPG_AGENT_INFO |
| 41 | rmscip-shell system . . rm. -rf web-site/debian |
| 42 | mkdirscip-shell system . . mkdir. -p web-site/debian |
| 43 | echoscip-shell system . . echo. Options Indexes > web-site/debian/.htaccess |
| 44 | gunzipscip-shell system . . gunzip. < $intarball | |
| 45 | tardy -exclude "${project_minus}/debian/*" | |
| 46 | gzipscip-shell system . . gzip. -9 > web-site/debian/$outtarball |
| 47 | |
| 48 | gunzipscip-shell system . . gunzip. < $intarball | ( cd web-site/debian ; tarscip-shell system . . tar. xf - ) |
| 49 | |
| 50 | set -e |
| 51 | cd web-site/debian |
| 52 | cd $project_minus |
| 53 | debuildscip-shell system . . debuild. $key -sa |
| 54 | cd .. |
| 55 | rmscip-shell system . . rm. -rf $project_minus |
| 56 | lintian -iI --pedantic *.changes |