{"id":287,"date":"2019-07-04T18:21:30","date_gmt":"2019-07-04T09:21:30","guid":{"rendered":"https:\/\/took.jp\/?p=287"},"modified":"2020-06-15T16:55:13","modified_gmt":"2020-06-15T07:55:13","slug":"post-287","status":"publish","type":"post","link":"https:\/\/took.jp\/tech-blog\/post-287\/","title":{"rendered":"\u6587\u5b57\u5217\u7f6e\u304d\u63db\u3048\u306e\u30d0\u30c3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u81ea\u52d5\u3067SVN\u306b\u30b3\u30df\u30c3\u30c8\u3059\u308bteraterm macro\u3092\u4f5c\u6210\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u30de\u30af\u30ed\u306e\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u30d0\u30c3\u30c1\u3067\u3084\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u306e\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3041\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u3044\u3066\u66f8\u304d\u8fbc\u3081\u3070\u3044\u3044\u3060\u3051\u306a\u306e\u3067\u3001\u7121\u99c4\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"line-numbers\" data-start=\"1\"><code class=\"language-batch\">echo off\r\necho \u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\r\nrem \u521d\u671f\u5316\r\nset SVN_USR=\r\nset SVN_PASSWD=\r\nrem \u5165\u529b\u8981\u6c42\r\nset \/P SVN_USR=\"SVN\u306e\u30e6\u30fc\u30b6\u540d: \"\r\nset \/P SVN_PASSWD=\"SVN\u306e\u30d1\u30b9\u30ef\u30fc\u30c9: \"\r\nrem \u5165\u529b\u5024echo\r\necho \u30e6\u30fc\u30b6\u540d\u306f %SVN_USR% \u3067\u3059\r\necho \u30d1\u30b9\u30ef\u30fc\u30c9\u306f %SVN_PASSWD% \u3067\u3059\r\necho \u554f\u984c\u304c\u306a\u3051\u308c\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u51e6\u7406\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f \r\nchoice\r\nif errorlevel 2 goto :no\r\nif errorlevel 1 goto :yes\r\n \r\n:no\r\necho \u5b9f\u884c\u3092\u4e2d\u6b62\u3057\u307e\u3059\u3002\r\necho \u51e6\u7406\u4e2d\u6b62\r\npause\r\nexit \/b\r\n \r\n:yes\r\nif EXIST ..\\macro\\deploy.ttl del ..\\macro\\deploy.ttl\r\necho \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\r\n\tsetlocal enabledelayedexpansion\r\n\tfor \/f \"delims=\" %%A in (.conf\\default_deploy.ttl) do (\r\n\t    set line0=%%A\r\n\t    set line1=!line0:_svnuser_=%SVN_USR%!\r\n\t    set line2=!line1:_svnpassword_=%SVN_PASSWD%!\r\n\t    echo !line2!&gt;&gt;..\\macro\\deploy.ttl\r\n\t    )\r\n\tendlocal\r\npause<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u3001\u3088\u304f\u3042\u308b\u6587\u5b57\u5217\u306e\u7f6e\u304d\u63db\u3048\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068yesno\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3088\u308b\u5206\u5c90\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3060\u3051\u306e\u51e6\u7406\u3067\u3059\u3002<\/p>\n<p>default.ttl\u3068\u3044\u3046\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30de\u30af\u30ed\u3092\u96a0\u3057\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u7f6e\u304d\u3001<\/p>\n<p>\u305d\u308c\u3092\u53c2\u7167\u3057\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u300c_svnuser_\u300d\u300c_svnpasswd_\u300d\u3092<\/p>\n<p>\u5165\u529b\u3055\u308c\u305f\u60c5\u5831\u3067\u7f6e\u304d\u63db\u3048\u308b\u3068\u3044\u3046\u51e6\u7406\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305f\u3060\u3053\u308c\u3001\u5b9f\u306f<strong>\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u3044\u306a\u3044<\/strong>\u3067\u3059\u3002\u7b11<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u6587\u5b57\u5217\u5185\u306b\u300c\uff01\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u305f\u5834\u5408\u306b\u3001\u7279\u6b8a\u6587\u5b57\u3068\u5224\u65ad\u3057\u3066\u6d88\u3057\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u3066\u3082\u30c0\u30e1\u3002<\/p>\n<p>\u4ed6\u306e\u65b9\u6cd5\u3092\u8272\u3005\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u30d0\u30c3\u30c1\u306e\u9650\u754c\u3092\u611f\u3058\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3069\u3046\u3057\u3066\u3082\u3001\u300c!\u300d\u30de\u30fc\u30af\u306e\u6587\u5b57\u3092\u4f7f\u7528\u3057\u305f\u6587\u5b57\u5217\u306e\u7f6e\u304d\u63db\u3048\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001wsh\u3092\u4f7f\u7528\u3059\u308c\u3070\u554f\u984c\u306a\u304f\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30d0\u30c3\u30c1\u306e\u4e2d\u306bwsh\u3092\u6df7\u305c\u305f\u66f8\u304d\u65b9\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u6b21\u306e\u8a18\u4e8b\u3067\u5b9f\u969b\u306b\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u8f09\u305b\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/took.jp\/tech-blog\/post-303\/\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"100\" height=\"100\" alt=\"\u3010\u6587\u5b57\u5217\u7f6e\u63db\u3048\u3011\u30d0\u30c3\u30c1\u3060\u3068\u4e0d\u5177\u5408\u304c\u3067\u308b\u306e\u3067\u3001WSH\u3067\u5bfe\u5fdc\u3057\u3066\u307f\u308b\" loading=\"lazy\" data-src=\"https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2019\/07\/E-83-150x150.jpg\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u6587\u5b57\u5217\u7f6e\u63db\u3048\u3011\u30d0\u30c3\u30c1\u3060\u3068\u4e0d\u5177\u5408\u304c\u3067\u308b\u306e\u3067\u3001WSH\u3067\u5bfe\u5fdc\u3057\u3066\u307f\u308b<\/div><div class=\"date\">2019.7.5<\/div><div class=\"substr\">\u30d0\u30c3\u30c1\u3092\u4f7f\u7528\u3057\u3066\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u5217\u7f6e\u63db\u3048\u3092\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u3002 \u305d\u308c\u306f\u3001\u7f6e\u63db\u3048\u306e\u5165\u529b\u6587\u5b57\u3001\u3082\u3057\u304f\u306f\u3001\u7f6e\u304d\u63db\u3048\u524d\u306e\u5143\u3068\u306a\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u300c\uff01\u300d\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u305f\u6642\u306b\u3001\u305d\u308c\u3092\u7f6e\u304d\u63db\u3048\u5f8c\u30d5\u30a1\u30a4\u30eb\u306b\u53cd\u6620\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u70b9\u3067\u3059\u3002 \u304a\u305d\u3089\u304f\u7279\u6b8a\u6587\u5b57\u3068\u3057\u3066\u5224\u5b9a\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3069...<\/div><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u52d5\u3067SVN\u306b\u30b3\u30df\u30c3\u30c8\u3059\u308bteraterm macro\u3092\u4f5c\u6210\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u30de\u30af\u30ed\u306e\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u30d0\u30c3\u30c1\u3067\u3084\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u306e\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 \u307e\u3041\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u3044\u3066\u66f8\u304d\u8fbc\u3081\u3070\u3044\u3044\u3060\u3051\u306a\u306e\u3067\u3001\u7121\u99c4\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3002 \u2026<\/p>\n","protected":false},"author":3,"featured_media":1994,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,62],"tags":[],"class_list":["post-287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-batch","category-it"],"_links":{"self":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":0,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/media\/1994"}],"wp:attachment":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}