#!/bin/bash
#

conf_dir=$1

if [ -z "$conf_dir" ]; then
 echo "configure folder is empty"
 exit 1 
fi

echo "--------------restore Configure $conf_dir--------------"
rm current_is_*
touch current_is_$conf_dir

echo "restore FLY.Thick.Blowing.UI.Fix.Client"
cp -Rf $conf_dir/FLY.Thick.Blowing.UI.Fix.Client/* ../Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/bin/Debug

echo "restore FLY.Thick.Blowing.UI.Fix.Server"
cp -Rf $conf_dir/FLY.Thick.Blowing.UI.Fix.Server/* ../Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Server/bin/Debug


echo "restore FLY.Thick.BlowingScan.UI.Client"
cp -Rf $conf_dir/FLY.Thick.BlowingScan.UI.Client/* ../Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Client/bin/Debug

echo "restore FLY.Thick.BlowingScan.UI.Server"
cp -Rf $conf_dir/FLY.Thick.BlowingScan.UI.Server/* ../Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Server/bin/Debug



echo "restore FLY.FeedbackRenZiJia.UI.Server"
cp -Rf $conf_dir/FLY.FeedbackRenZiJia.UI.Server/* ../Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Server/bin/Debug

echo "restore FLY.IBC.UI.Server"
cp -Rf $conf_dir/FLY.IBC.UI.Server/* ../Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug

echo "restore FLY.Weight.UI.Server"
cp -Rf $conf_dir/FLY.Weight.UI.Server/* ../Project.FLY.Weight/FLY.Weight.UI.Server/bin/Debug

echo "restore FLY.Winder.UI.Server"
cp -Rf $conf_dir/FLY.Winder.UI.Server/* ../Project.FLY.Winder_20190413/FLY.Winder.UI.Server/bin/Debug

echo "restore FLY.Weight2.UI.Server"
cp -Rf $conf_dir/FLY.Weight2.UI.Server/* ../Project.FLY.Weight2/FLY.Weight2.UI.Server/bin/Debug

echo "restore FLY.Integrated.UI.Server"
cp -Rf $conf_dir/FLY.Integrated.UI.Server/* ../Project.FLY.Integrated/FLY.Integrated.UI.Server/bin/Debug


echo "restore FLY.Thick.Blowing360.UI.Client"
cp -Rf $conf_dir/FLY.Thick.Blowing360.UI.Client/* ../Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI.Client/bin/Debug

echo "restore FLY.Thick.Blowing360.UI.Server"
cp -Rf $conf_dir/FLY.Thick.Blowing360.UI.Server/* ../Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI.Server/bin/Debug