Just keep pushing.
I'm in a crap situation myself where my Canadian work visa expires on the 27th of next month and my permanent residency application won't be reviewed or accepted for at least a couple months after that, and as a recent college grad, it's not easy to find work in my field here, which means I may be torn away from my girlfriend for who-knows-how-long until everything is okayed.
It's not as bad as situations come, but it's depressing to think that even after a year and a half together that we're still days away from a long-distance relationship, even with countries as supposedly diplomatically close as the US and Canada, and it gets depressing.
Adam Carolla once gave a good piece of advise to a Loveline caller that I've remembered ever since and I'll paraphrase it here:
Depression is like a giant brick wall that extends into the clouds that you have to climb, but you can't stand back and look up at the whole thing or you'll get discouraged. You just have to take the wall one brick at a time, just focus on one brick after another, and you'll eventually be over the top. Depression saps you of your will to do exactly what you need to do to get out of it, which is work. Get out, be active, take long walks and listen to classical music.
This bit of advise is really something that extends to everything. Sometimes even the things I need to do daily seem daunting from afar, but if I focus on one task at a time, I'm done before I realize I was working most times.
Curling up into a ball and laying down is just as easy as having everything handed to you, and neither one is rewarding like taking a bad situation and turning it into a good one through hard work and perseverance. You just have to push and push and push some more; take that brick wall one brick at a time.