{"action":"closed","issue":{"url":"https://api.github.com/repos/devexp-db/cont-postgresql/issues/2","labels_url":"https://api.github.com/repos/devexp-db/cont-postgresql/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/devexp-db/cont-postgresql/issues/2/comments","events_url":"https://api.github.com/repos/devexp-db/cont-postgresql/issues/2/events","html_url":"https://github.com/devexp-db/cont-postgresql/issues/2","id":78011241,"number":2,"title":"Use 'distgen' to generate files, not sed & autoconf","user":{"login":"praiskup","id":3277839,"avatar_url":"https://avatars.githubusercontent.com/u/3277839?v=3","gravatar_id":"","url":"https://api.github.com/users/praiskup","html_url":"https://github.com/praiskup","followers_url":"https://api.github.com/users/praiskup/followers","following_url":"https://api.github.com/users/praiskup/following{/other_user}","gists_url":"https://api.github.com/users/praiskup/gists{/gist_id}","starred_url":"https://api.github.com/users/praiskup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praiskup/subscriptions","organizations_url":"https://api.github.com/users/praiskup/orgs","repos_url":"https://api.github.com/users/praiskup/repos","events_url":"https://api.github.com/users/praiskup/events{/privacy}","received_events_url":"https://api.github.com/users/praiskup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-19T09:28:27Z","updated_at":"2015-09-01T22:45:41Z","closed_at":"2015-09-01T22:45:41Z","body":"Distgen project https://github.com/devexp-db/distgen uses jinja2 template\r\nsystem, which will allow us more easily handle distribution differences\r\nright inside the template.\r\n\r\nWith autotools, we would need to do './configure --with-distro=fedora' and\r\nalso add many additional variables into configure.ac .. with distgen we are OK\r\nto drop 'configure' completely and just do something like\r\n\r\n  ```\r\n  {% if config.distribution == 'fedora' and config.distversion >= 22 %}\r\n  .. do something ..\r\n  {% else %}\r\n  .. do something else ..\r\n  {% endif %}\r\n  ```\r\n\r\n.. right inside the template.\r\n"}}