to be continued
checkerror() { if [ "$?" -eq 1 ] then echo "error $*" exit else echo "OK" fi } #get archtechture result=`uname -a |grep "x86_64"` if [ ! -s arch ] then arch=amd64 fi result=`uname -a |grep "x86_64"` if [ ! -s arch ] then arch=amd64 fi targetone="dists/edgy/main/binary-$arch" if [ ! -e $targetone ] then command="mkdir -p $targetone" $command fi checkerror $command targettwo="packs" if [ ! -e $targettwo ] then command="mkdir $targettwo" $command fi checkerror $command cd ./ source="archives/" if [ ! -e $source ] then echo "no source dir $source" exit else rsync -av --exclude-from=exclude.list $source $targettwo rsync -av --exclude-from=exclude.list $source $targetone checkerror $command fi command=`dpkg-scanpackages packs /dev/null | gzip > $targetone/Packages.gz` echo dpkgcommand=$command $command checkerror $command :<<BLOCK current=`pwd` aptlist="/etc/apt/sources.list" aptlistbak="/etc/apt/sources.list.bak" newsource="deb file://$current edgy main" if [ -e $aptlist ] then sudo cp $aptlist $aptlistbak fi command=`sudo su` $command checkerror $command command=`echo $newsource>$aptlist` $command checkerror $command exit BLOCK command="sudo apt-get update" $command checkerror $command
install.sh
sudo apt-get install ia32-libs sudo apt-get install libc6-dev-i386 sudo apt-get install python sudo apt-get install zlib1g-dev sudo apt-get install git-core gnupg sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip cur sudo apt-get install sun-java6-jdk sudo apt-get install openjdk-6-jre apt-get install samba apt-get install samba-common-bin