Fix r15779 and generalise. Also implement
[libfirm] / scripts /
drwxr-xr-x   ..
-rwxr-xr-x 3807 gen_init.py