{"id":9038,"date":"2005-06-03T03:23:35","date_gmt":"2005-06-03T00:23:35","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/03\/recursively-adding-files-and-directories-in-gnu-arch\/"},"modified":"2005-10-03T00:19:54","modified_gmt":"2005-10-02T21:19:54","slug":"recursively-adding-files-and-directories-in-gnu-arch","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/03\/recursively-adding-files-and-directories-in-gnu-arch\/","title":{"rendered":"Recursively adding files and directories in Gnu Arch"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>One of the little annoyances of Gnu Arch is that it does not add files and directories recursively.  Not to worry, though.  Here is a little shell script that can assist with that task:<\/p>\n<pre>\r\n#!\/bin\/bash\r\n\r\n# Find all files and directories, skipping .\/{arch}\r\nfor FILE in `find . -path '.\/{arch}' -prune -o -print`\r\ndo\r\n        # Get rid of the leading .\/\r\n        FILE=`echo $FILE | sed -e 's\/\\.\\\/\/\/'`\r\n        tla add \"$FILE\"\r\ndone\r\n<\/pre>\n<p>Skipping the script itself is left as an exercise to the reader.<\/p>\n<p><ins datetime=\"2005-06-15T05:47:25-03:00\">Update<\/ins>: <a href=\"http:\/\/www.stepanoff.org\/blog\/?itemid=262\">Simplier method<\/a> indeed is <\/p>\n<pre>tla inventory --source --names | xargs tla add<\/pre>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>One of the little annoyances of Gnu Arch is that it does not add files and directories recursively. Not to worry, though. Here is a little shell script that can assist with that task: #!\/bin\/bash # Find all files and directories, skipping .\/{arch} for FILE in `find . -path &#8216;.\/{arch}&#8217; -prune -o -print` do # &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/03\/recursively-adding-files-and-directories-in-gnu-arch\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Recursively adding files and directories in Gnu Arch<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18],"tags":[74,1588],"keyring_services":[],"class_list":["post-9038","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","tag-tips","tag-version-control"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":9078,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/15\/telling-gnu-arch-the-truth\/","url_meta":{"origin":9038,"position":0},"title":"Telling Gnu Arch the truth","author":"Leonid Mamchenkov","date":"June 15, 2005","format":false,"excerpt":"Yet another problem (and solution) that I've stumbled across while using Gnu Arch. We have two branches in our archive: program--vendor--0.1 and program--local--0.1. Vendor's version has all the source files in SomeDirectory, while our local version has all source files in somedir. Except for the name and few local changes,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9077,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/15\/the-magic-of-tla-cacherev\/","url_meta":{"origin":9038,"position":1},"title":"The magic of tla cacherev","author":"Leonid Mamchenkov","date":"June 15, 2005","format":false,"excerpt":"I've stumbled upon an annoying problem while use Gnu Arch. During the development process, one of the directories in the source tree was given bad permissions (r-xr-x-rx). With the next patch, this directory was removed altogether. That introduced a problem for tla get as it was dying with permission denied\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7309,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/12\/19\/2003-12-19\/","url_meta":{"origin":9038,"position":2},"title":"2003-12-19","author":"Leonid Mamchenkov","date":"December 19, 2003","format":false,"excerpt":"Yet another status change at PerlMonks. Now I am a bishop (level 8). :) Also, my ranting about the lack of documentation for arch was totally wrong. There is an excellent tutorial\/reference in the distribution. :) Meanwhile, the more I use arch, the more I like it. Another sweet addition\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9031,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/01\/subversion-vs-gnu-arch\/","url_meta":{"origin":9038,"position":3},"title":"Subversion vs. Gnu Arch","author":"Leonid Mamchenkov","date":"June 1, 2005","format":false,"excerpt":"I've spent some time today fighting with both Subversion and Gnu Arch. After the first few battles, it was decided that Subversion is not going to be used for the project, and that we'd go with Gnu Arch instead. There were three reasons for that. Subversion is a pain to\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11351,"url":"https:\/\/mamchenkov.net\/wordpress\/2008\/08\/27\/convert-russian-mp3-id3-tags-from-koi8-cp1251-to-utf8\/","url_meta":{"origin":9038,"position":4},"title":"mp3 collection maintenance","author":"Leonid Mamchenkov","date":"August 27, 2008","format":false,"excerpt":"I have a rather large MP3 collection.\u00a0 The directories and files are named correctly more or less, but ID3 tags used to be a mess until very recently.\u00a0 Two applications helped me to bring some order in that mess. EasyTag, a GUI application, that helped me to fix lots of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9488,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/","url_meta":{"origin":9038,"position":5},"title":"Finding files in Linux","author":"Leonid Mamchenkov","date":"September 23, 2005","format":false,"excerpt":"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=9038"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9038\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=9038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=9038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=9038"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=9038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}