target_jar=$1
tmp_dir="tmp_dir_for_update_META-INF"
mkdir $tmp_dir
cp $target_jar $tmp_dir/
cd $tmp_dir/
unzip $target_jar
mv META-INF/MANIFEST.MF .
rm -rf META-INF/*
mv MANIFEST.MF META-INF/
rm -r unzip $target_jar
zip -r $target_jar *
mv $target_jar ../
cd ..
rm -rf $tmp_dir