#!/bin/sh # Arguments: 'init' or 'stable' ORIG_DIR=`pwd` BASE_URL="http://gauvain.tuxfamily.org/school/2006-10-31/textcat" WGET=wget if [ $1 ] && [ $1 = "init" ]; then LIST="changelog compat control copyright createfp.8 docs rules" elif [ $1 ] && [ $1 = "stable" ]; then LIST="changelog control createfp.8 docs libtextcat-bin.install rules compat copyright createfp.install libtextcat0.install libtextcat-dev.install" fi if [ ! $1 ]; then exit 1; else if [ -d textcat ]; then rm -rf textcat; fi mkdir -p $ORIG_DIR/textcat/debian; cd $ORIG_DIR/textcat; wget $BASE_URL/libtextcat_2.2.orig.tar.gz; cd debian; for i in $LIST; do wget $BASE_URL/debian-$1/$i; done chmod a+x rules; cd $ORIG_DIR; fi