All pastes #230664 Raw Edit

Gloubi

public shellscript v1 · immutable
#230664 ·published 2006-10-31 11:13 UTC
rendered paste body
#!/bin/sh# Arguments: 'init' or 'stable'ORIG_DIR=`pwd`BASE_URL="http://gauvain.tuxfamily.org/school/2006-10-31/textcat"WGET=wgetif [ $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"fiif [ ! $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