Generate portable Shell scripts from Ruby