Robert Morin worked nearly 50 years at the University of New Hampshire library and never seemed to spend any money.
He lived alone, rarely bought clothes, had Fritos and soda for breakfast, drove a 1992 Plymouth, and spent spare time reading almost every book — in chronological order — that had been published in the United States from 1930 to 1938.
Now, more than a year after his death at age 77, a lifetime of frugality has become UNH’s unexpected gift: Morin left his alma mater his entire estate of $4 million — a gold-plated nest egg that few people knew he had.
“His whole life was the library,” said Edward Mullen, Morin’s longtime financial adviser.
Elated UNH officials announced the bequest this week after it had cleared Probate Court, praising the single-minded generosity of a man who took pleasure in his work and in his decades of conversations with students.
“It’s very inspiring and exciting,” said Erika Mantz, a UNH spokeswoman. “In our history, I’m not aware of anything like this.”
The university will use $2.5 million from the estate on an expanded career center and $1 million for a new video scoreboard at the football stadium. An additional $100,000 will go to the university’s Dimond Library, the only gift specified by the will.
Mullen said he spoke with Morin about using some of the money to fund a scholarship related to library science but said his client wanted UNH to spend almost all of the gift in any way it chose.
“He said, ‘They’ll figure out what to do with it,’ ” Mullen recalled Thursday.
Morin, who retired in 2014, never bothered figuring out how to spend it on himself. To call his life spartan would be an understatement.
“He would have some Fritos and a Coke for breakfast, a quick cheese sandwich at the library, and at home would have a frozen dinner because the only thing he had to work with was a microwave,” Mullen said. “He was a very unusual gentleman.”
Morin said he met Mullen in the early 1970s, a time when the librarian had been stashing nearly all of his income in a checking account and certificates of deposit. Mullen helped him expand into mutual funds and annuities, which complemented the sizable savings Morin was accruing in a retirement account.
Morin also bought several life-insurance policies over the years, all intended to benefit the university from which he earned a bachelor’s degree in 1961. Morin later got a master’s degree in library science from Simmons College in Boston.
“He was a very bright guy and a very smart guy,” Mullen said.
He also was a very recognizable figure on campus. Morin stood just over 5 feet tall, smoked a pipe, had a hunched back, and wore an elevated shoe, Mullen said.
The library staff looked after him, sometimes persuading Morin to shop for clothes with them and later driving him when his health deteriorated. Mantz, the university spokeswoman, said Morin cherished his time with the many students and staff he met over nearly half a century at UNH.
“He loved talking with students, especially the students who worked at the library,” Mantz said.
That connection makes the $2.5 million allocation for the career center a good fit.
“We are committed to providing the resources needed to ensure every student achieves professional success, and Bob’s gift will play a major role in that effort,” UNH President Mark Huddleston said.
The $1 million for a video scoreboard also is linked to Morin’s interests.
After he entered the assisted-living center, Mantz said, Morin became a football aficionado — learning the rules and memorizing the names of the players he saw on television. From 1979 to 1997, he watched more than 22,000 movie videos before switching his off-the-clock attention to American books from the 1930s.
Morin’s legacy will linger at UNH, not only in his $4 million bequest but also in a simple gesture that befits this quiet man. Near the Dimond Library where Morin spent his long career, a bench now bears the name of a graduate who never sought attention or publicity.
“He was,” Mullen said, “somebody you only meet once in a lifetime.”Brian MacQuarrie can be reached at brian.macquarrie @globe.com.