#!/bin/bash
if [ x$1 = x ] ; then
  echo bitte Version als Parameter angeben
  exit
fi

if [ -e typo3_src-$1.tar.gz ] ; then
  echo using existing archive typo3_src-$1.tar.gz 
else
  wget http://prdownloads.sourceforge.net/typo3/typo3_src-$1.tar.gz 
fi

if [ x$2 != x ] ; then
	if [ -e dummy-$2.tar.gz ] ; then
	  echo using existing archive dummy-$2.tar.gz 
	else
	  wget http://prdownloads.sourceforge.net/typo3/dummy-$2.tar.gz 
	fi
fi

echo .
echo .
tar -zxvf typo3_src-$1.tar.gz 
if [ ! x$2 = x ] ; then
	echo .
	echo .
	tar -zxvf dummy-$2.tar.gz
fi
echo .
echo .
echo bitte im Unterverzeichnis noch Link neu setzen: 
echo "touch typo3conf/ENABLE_INSTALL_TOOL && rm typo3_src && ln -s ../typo3_src-$1 typo3_src"
echo .
echo .
 
Ihre aktuelle Seitenauswahl:  
>>>