#!/bin/bash

case $@ in
	
	userhome2)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz userhome2.png
		mv userhome2.png user-home.png
		cd ../../; \
	;;

	userhome3)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz userhome3.png
		mv userhome3.png user-home.png
		cd ../../; \
	;;

	userhome1)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz userhome1.png
		mv userhome1.png user-home.png
		cd ../../; \
	;;

	folder1)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz folder1.png 
		mv folder1.png folder.png 
		cd ../status && \
		tar -xf status.tar.gz folderopen1.png
		mv folderopen1.png folder-open.png 
		ln -sf folder-open.png folder-drag-accept.png 
		tar -xf status.tar.gz foldervisiting1.png 
		mv foldervisiting1.png folder-visiting.png 
		cd ../../; \
	;;

	folder2)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz folder2.png
		mv folder2.png folder.png
		cd ../status && \
		tar -xf status.tar.gz folderopen2.png
		mv folderopen2.png folder-open.png
		ln -sf folder-open.png folder-drag-accept.png
		tar -xf status.tar.gz foldervisiting2.png
		mv foldervisiting2.png folder-visiting.png
		cd ../../; \
	;;

	folder3)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz folder3.png
		mv folder3.png folder.png
		cd ../status && \
		tar -xf status.tar.gz folderopen3.png
		mv folderopen3.png folder-open.png
		ln -sf folder-open.png folder-drag-accept.png
		tar -xf status.tar.gz foldervisiting3.png
		mv foldervisiting3.png folder-visiting.png
		cd ../../; \
	;;

	usertrash1)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz usertrash1.png
		mv usertrash1.png user-trash.png
		cd ../status && \
		tar -xf status.tar.gz usertrashfull1.png
		mv usertrashfull1.png user-trash-full.png
		cd ../../; \
	;;

	usertrash2)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz usertrash2.png
		mv usertrash2.png user-trash.png
		cd ../status && \
		tar -xf status.tar.gz usertrashfull2.png
		mv usertrashfull2.png user-trash-full.png
		cd ../../; \
	;;

	usertrash3)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz usertrash3.png
		mv usertrash3.png user-trash.png
		cd ../status && \
		tar -xf status.tar.gz usertrashfull3.png
		mv usertrashfull3.png user-trash-full.png
		cd ../../; \
	;;

	starthere1)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz starthere1.png
		mv starthere1.png start-here.png
		cd ../../; \
	;;

	starthere2)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz starthere2.png
		mv starthere2.png start-here.png
		cd ../../; \
	;;

	starthere3)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz starthere3.png
		mv starthere3.png start-here.png
		cd ../../; \
	;;

	starthere4)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz starthere4.png
		mv starthere4.png start-here.png
		cd ../../; \
	;;

	starthere5)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz starthere5.png
		mv starthere5.png start-here.png
		cd ../../; \
	;;

	starthere6)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz starthere6.png
		mv starthere6.png start-here.png
		cd ../../; \
	;;

	userdesktop1)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz userdesktop1.png
		mv userdesktop1.png user-desktop.png
		cd ../../; \
	;;

	userdesktop2)
		cd ~/.icons/Mashup/places
		tar -xf places.tar.gz userdesktop2.png
		mv userdesktop2.png user-desktop.png
		cd ../../; \
	;;

	computer1)
		cd ~/.icons/Mashup/devices
		tar -xf devices.tar.gz computer1.png
		mv computer1.png computer.png
		cd ../../; \
	;;

	computer2)
		cd ~/.icons/Mashup/devices
		tar -xf devices.tar.gz computer2.png
		mv computer2.png computer.png
		cd ../../; \
	;;

	computer3)
		cd ~/.icons/Mashup/devices
		tar -xf devices.tar.gz computer3.png
		mv computer3.png computer.png
		cd ../../; \
	;;

	evolution1)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz evolution1.png
		mv evolution1.png evolution.png
		cd ../../; \
	;;

	evolution2)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz evolution2.png
		mv evolution2.png evolution.png
		cd ../../; \
	;;

	firefox1)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz firefox1.png
		mv firefox1.png firefox-icon.png
		cd ../../; \
	;;

	firefox2)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz firefox2.png
		mv firefox2.png firefox-icon.png
		cd ../../; \
	;;

	firefox3)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz firefox3.png
		mv firefox3.png firefox-icon.png
		cd ../../; \
	;;

	vlc1)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz vlc1.png
		mv vlc1.png vlc.png
		cd ../../; \
	;;

	vlc2)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz vlc2.png
		mv vlc2.png vlc.png
		cd ../../; \
	;;

	vlc3)
		cd ~/.icons/Mashup/apps
		tar -xf apps.tar.gz vlc3.png
		mv vlc3.png vlc.png
		cd ../../; \
	;;

	manillafolder)
		for size in 16x16 22x22 24x24 32x32 48x48 72x72 128x128; \
			do cd $size/places && \
				ln -sf manilla-folder.png folder.png && \
				cd ../../;\
		done
esac
