{"author_name":"snit21","version":"1.0","provider_url":"https://hatena.blog","url":"https://snit.hatenadiary.jp/entry/2013/04/19/161221","published":"2013-04-19 16:12:21","type":"rich","blog_title":"snit21\u306e\u65e5\u8a18","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/snit21/","image_url":null,"title":"bash\u3067SVN\u8ffd\u52a0\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30b3\u30d4\u30fc","categories":[],"height":"190","blog_url":"https://snit.hatenadiary.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnit.hatenadiary.jp%2Fentry%2F2013%2F04%2F19%2F161221\" title=\"bash\u3067SVN\u8ffd\u52a0\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30b3\u30d4\u30fc - snit21\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Trunk\u306b\u30d5\u30a1\u30a4\u30eb\u8ffd\u52a0\u304c\u3042\u308c\u3070\u3001Branch\u306b\u30b3\u30d4\u30fc\u3059\u308b\u30b7\u30a7\u30eb\u3002 workDir\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u3066\u304a\u304f\u3002 #!/bin/bash for f in `svn up workDir | awk '$1==\"A\"{print $NF;}'` do echo $f addFile=`echo $f | sed -e \"s/\u4e0d\u8981\u306a\u30d1\u30b9\u3092\u7f6e\u63db//\"` svn copy http://localhost/svn/trunk/$addFile http://localhost/svn/branch/$addFile -m \"Copy $AddFile\" done svn up\u306e\u7d50\u679c\u306f\u3001\u4e0b\u8a18\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u2026","width":"100%"}