default_pre_build && cd ${SOURCE_DIRECTORY} && awk ' BEGIN { menufile = "jwmrc-menu"; print "" > menufile } END { print "" > menufile } function rootmenu_end() { if (!/^ *<\/RootMenu>/) return 1 printf " /etc/%s\n", menufile } /^ * menufile; next } 1 ' example.jwmrc > example.jwmrc.$$ && mv example.jwmrc.$$ example.jwmrc