{"action":"created","comment":{"url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/comments/61379313","id":61379313,"diff_hunk":"@@ -0,0 +1,16 @@\n+\n+\n+7za x miktex-portable-%PKG_VERSION%.exe -o%LIBRARY_PREFIX%\\miktex-portable\n+if errorlevel 1 exit 1\n+\n+\n+rem SCRIPTS dir should already be created by 7za install\n+mkdir \"%SCRIPTS%\"\n+if errorlevel 1 exit 1\n+\n+rem latex tools must be run from miktex tree\n+for %%f in (\"%LIBRARY_PREFIX%\\miktex-portable\\miktex\\bin\\*.exe\") do (\n+\techo @%%~dp0\\..\\Library\\miktex-portable\\miktex\\bin\\%%~nf %%* >> \"%SCRIPTS%\\%%~nf.bat\"","path":"recipes/miktex-portable/bld.bat","position":13,"original_position":13,"commit_id":"898537dbdde6387f9227a3e373e6e1f25bc3cd70","original_commit_id":"89c712b9ba369b092fd315995b6f3f7398c10043","user":{"login":"Korijn","id":1882046,"avatar_url":"https://avatars.githubusercontent.com/u/1882046?v=3","gravatar_id":"","url":"https://api.github.com/users/Korijn","html_url":"https://github.com/Korijn","followers_url":"https://api.github.com/users/Korijn/followers","following_url":"https://api.github.com/users/Korijn/following{/other_user}","gists_url":"https://api.github.com/users/Korijn/gists{/gist_id}","starred_url":"https://api.github.com/users/Korijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korijn/subscriptions","organizations_url":"https://api.github.com/users/Korijn/orgs","repos_url":"https://api.github.com/users/Korijn/repos","events_url":"https://api.github.com/users/Korijn/events{/privacy}","received_events_url":"https://api.github.com/users/Korijn/received_events","type":"User","site_admin":false},"body":"You're right on point there. Conda would rewrite it automatically if you relied on the env vars provided by conda-build such as `%library_prefix%`.\r\n\r\nI feel like that is actually a little bit more resistant to future changes than the current approach which embeds some knowledge of the directory structure into the script that could be abstracted away into the env vars as explained. ","created_at":"2016-04-28T06:41:42Z","updated_at":"2016-04-28T06:41:42Z","html_url":"https://github.com/conda-forge/staged-recipes/pull/469#discussion_r61379313","pull_request_url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469","_links":{"self":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/comments/61379313"},"html":{"href":"https://github.com/conda-forge/staged-recipes/pull/469#discussion_r61379313"},"pull_request":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469"}}},"pull_request":{"url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469","id":68119635,"html_url":"https://github.com/conda-forge/staged-recipes/pull/469","diff_url":"https://github.com/conda-forge/staged-recipes/pull/469.diff","patch_url":"https://github.com/conda-forge/staged-recipes/pull/469.patch","issue_url":"https://api.github.com/repos/conda-forge/staged-recipes/issues/469","number":469,"state":"open","locked":false,"title":"Add (repackaged) miktex portable","user":{"login":"janschulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/janschulz","html_url":"https://github.com/janschulz","followers_url":"https://api.github.com/users/janschulz/followers","following_url":"https://api.github.com/users/janschulz/following{/other_user}","gists_url":"https://api.github.com/users/janschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/janschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janschulz/subscriptions","organizations_url":"https://api.github.com/users/janschulz/orgs","repos_url":"https://api.github.com/users/janschulz/repos","events_url":"https://api.github.com/users/janschulz/events{/privacy}","received_events_url":"https://api.github.com/users/janschulz/received_events","type":"User","site_admin":false},"body":"miktex is a Latex environment for windows.\r\n\r\nThese packages are based on the ones found at\r\nhttps://github.com/ClinicalGraphics/conda-recipes/tree/master/miktex-portable\r\nhttps://github.com/ClinicalGraphics/conda-recipes/tree/master/miktex\r\n\r\nrelated to https://github.com/conda-forge/staged-recipes/issues/359\r\n\r\nCC: @jakirkham @ivoflipse","created_at":"2016-04-27T20:31:25Z","updated_at":"2016-04-28T06:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1511dd28cd20dda401fa599b6ce5ab5f092f8256","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469/commits","review_comments_url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469/comments","review_comment_url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conda-forge/staged-recipes/issues/469/comments","statuses_url":"https://api.github.com/repos/conda-forge/staged-recipes/statuses/898537dbdde6387f9227a3e373e6e1f25bc3cd70","head":{"label":"janschulz:miktex-portable","ref":"miktex-portable","sha":"898537dbdde6387f9227a3e373e6e1f25bc3cd70","user":{"login":"janschulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/janschulz","html_url":"https://github.com/janschulz","followers_url":"https://api.github.com/users/janschulz/followers","following_url":"https://api.github.com/users/janschulz/following{/other_user}","gists_url":"https://api.github.com/users/janschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/janschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janschulz/subscriptions","organizations_url":"https://api.github.com/users/janschulz/orgs","repos_url":"https://api.github.com/users/janschulz/repos","events_url":"https://api.github.com/users/janschulz/events{/privacy}","received_events_url":"https://api.github.com/users/janschulz/received_events","type":"User","site_admin":false},"repo":{"id":47678464,"name":"staged-recipes","full_name":"janschulz/staged-recipes","owner":{"login":"janschulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/janschulz","html_url":"https://github.com/janschulz","followers_url":"https://api.github.com/users/janschulz/followers","following_url":"https://api.github.com/users/janschulz/following{/other_user}","gists_url":"https://api.github.com/users/janschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/janschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janschulz/subscriptions","organizations_url":"https://api.github.com/users/janschulz/orgs","repos_url":"https://api.github.com/users/janschulz/repos","events_url":"https://api.github.com/users/janschulz/events{/privacy}","received_events_url":"https://api.github.com/users/janschulz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janschulz/staged-recipes","description":"A place to submit conda recipes before they become fully fledged conda-forge feedstocks","fork":true,"url":"https://api.github.com/repos/janschulz/staged-recipes","forks_url":"https://api.github.com/repos/janschulz/staged-recipes/forks","keys_url":"https://api.github.com/repos/janschulz/staged-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janschulz/staged-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janschulz/staged-recipes/teams","hooks_url":"https://api.github.com/repos/janschulz/staged-recipes/hooks","issue_events_url":"https://api.github.com/repos/janschulz/staged-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/janschulz/staged-recipes/events","assignees_url":"https://api.github.com/repos/janschulz/staged-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/janschulz/staged-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/janschulz/staged-recipes/tags","blobs_url":"https://api.github.com/repos/janschulz/staged-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janschulz/staged-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janschulz/staged-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/janschulz/staged-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janschulz/staged-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/janschulz/staged-recipes/languages","stargazers_url":"https://api.github.com/repos/janschulz/staged-recipes/stargazers","contributors_url":"https://api.github.com/repos/janschulz/staged-recipes/contributors","subscribers_url":"https://api.github.com/repos/janschulz/staged-recipes/subscribers","subscription_url":"https://api.github.com/repos/janschulz/staged-recipes/subscription","commits_url":"https://api.github.com/repos/janschulz/staged-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/janschulz/staged-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/janschulz/staged-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/janschulz/staged-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/janschulz/staged-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/janschulz/staged-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janschulz/staged-recipes/merges","archive_url":"https://api.github.com/repos/janschulz/staged-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janschulz/staged-recipes/downloads","issues_url":"https://api.github.com/repos/janschulz/staged-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/janschulz/staged-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/janschulz/staged-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/janschulz/staged-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janschulz/staged-recipes/labels{/name}","releases_url":"https://api.github.com/repos/janschulz/staged-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/janschulz/staged-recipes/deployments","created_at":"2015-12-09T08:28:46Z","updated_at":"2015-12-09T08:28:47Z","pushed_at":"2016-04-27T21:35:42Z","git_url":"git://github.com/janschulz/staged-recipes.git","ssh_url":"git@github.com:janschulz/staged-recipes.git","clone_url":"https://github.com/janschulz/staged-recipes.git","svn_url":"https://github.com/janschulz/staged-recipes","homepage":null,"size":1969,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"conda-forge:master","ref":"master","sha":"49be79e7877df640faf25c77b09b9975f9904d40","user":{"login":"conda-forge","id":11897326,"avatar_url":"https://avatars.githubusercontent.com/u/11897326?v=3","gravatar_id":"","url":"https://api.github.com/users/conda-forge","html_url":"https://github.com/conda-forge","followers_url":"https://api.github.com/users/conda-forge/followers","following_url":"https://api.github.com/users/conda-forge/following{/other_user}","gists_url":"https://api.github.com/users/conda-forge/gists{/gist_id}","starred_url":"https://api.github.com/users/conda-forge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conda-forge/subscriptions","organizations_url":"https://api.github.com/users/conda-forge/orgs","repos_url":"https://api.github.com/users/conda-forge/repos","events_url":"https://api.github.com/users/conda-forge/events{/privacy}","received_events_url":"https://api.github.com/users/conda-forge/received_events","type":"Organization","site_admin":false},"repo":{"id":41829476,"name":"staged-recipes","full_name":"conda-forge/staged-recipes","owner":{"login":"conda-forge","id":11897326,"avatar_url":"https://avatars.githubusercontent.com/u/11897326?v=3","gravatar_id":"","url":"https://api.github.com/users/conda-forge","html_url":"https://github.com/conda-forge","followers_url":"https://api.github.com/users/conda-forge/followers","following_url":"https://api.github.com/users/conda-forge/following{/other_user}","gists_url":"https://api.github.com/users/conda-forge/gists{/gist_id}","starred_url":"https://api.github.com/users/conda-forge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conda-forge/subscriptions","organizations_url":"https://api.github.com/users/conda-forge/orgs","repos_url":"https://api.github.com/users/conda-forge/repos","events_url":"https://api.github.com/users/conda-forge/events{/privacy}","received_events_url":"https://api.github.com/users/conda-forge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/conda-forge/staged-recipes","description":"A place to submit conda recipes before they become fully fledged conda-forge feedstocks","fork":false,"url":"https://api.github.com/repos/conda-forge/staged-recipes","forks_url":"https://api.github.com/repos/conda-forge/staged-recipes/forks","keys_url":"https://api.github.com/repos/conda-forge/staged-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conda-forge/staged-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conda-forge/staged-recipes/teams","hooks_url":"https://api.github.com/repos/conda-forge/staged-recipes/hooks","issue_events_url":"https://api.github.com/repos/conda-forge/staged-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/conda-forge/staged-recipes/events","assignees_url":"https://api.github.com/repos/conda-forge/staged-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/conda-forge/staged-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/conda-forge/staged-recipes/tags","blobs_url":"https://api.github.com/repos/conda-forge/staged-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conda-forge/staged-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conda-forge/staged-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/conda-forge/staged-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conda-forge/staged-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/conda-forge/staged-recipes/languages","stargazers_url":"https://api.github.com/repos/conda-forge/staged-recipes/stargazers","contributors_url":"https://api.github.com/repos/conda-forge/staged-recipes/contributors","subscribers_url":"https://api.github.com/repos/conda-forge/staged-recipes/subscribers","subscription_url":"https://api.github.com/repos/conda-forge/staged-recipes/subscription","commits_url":"https://api.github.com/repos/conda-forge/staged-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/conda-forge/staged-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/conda-forge/staged-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/conda-forge/staged-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/conda-forge/staged-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/conda-forge/staged-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conda-forge/staged-recipes/merges","archive_url":"https://api.github.com/repos/conda-forge/staged-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conda-forge/staged-recipes/downloads","issues_url":"https://api.github.com/repos/conda-forge/staged-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/conda-forge/staged-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/conda-forge/staged-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/conda-forge/staged-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conda-forge/staged-recipes/labels{/name}","releases_url":"https://api.github.com/repos/conda-forge/staged-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/conda-forge/staged-recipes/deployments","created_at":"2015-09-02T21:49:20Z","updated_at":"2016-04-26T20:08:01Z","pushed_at":"2016-04-28T04:15:34Z","git_url":"git://github.com/conda-forge/staged-recipes.git","ssh_url":"git@github.com:conda-forge/staged-recipes.git","clone_url":"https://github.com/conda-forge/staged-recipes.git","svn_url":"https://github.com/conda-forge/staged-recipes","homepage":"https://conda-forge.github.io/","size":2327,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":59,"forks":48,"open_issues":59,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469"},"html":{"href":"https://github.com/conda-forge/staged-recipes/pull/469"},"issue":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/issues/469"},"comments":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/issues/469/comments"},"review_comments":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469/comments"},"review_comment":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/pulls/469/commits"},"statuses":{"href":"https://api.github.com/repos/conda-forge/staged-recipes/statuses/898537dbdde6387f9227a3e373e6e1f25bc3cd70"}}}}