On 8/15/13 3:23 PM, John Long wrote:
> Hi, is it possible to ignore UNIX executables? I want to do an addr on a
> directory tree but I don't know how to tell fossil not to track the binaries
> since they have no naming pattern. Until now I've been living with it but it
> is very annoying and time for me to ask. Help!

   It's Unix; try to learn using the tools at your disposal. I used to
hate when people told me that, because I thought figuring out the syntax
for all the commands took too long, but the trick is not to try to do it
in a "neat" way, but rather just get it done.

   $ find . -type f | while read line; do if ! [ -x $line ]; then fossil
add $line ; fi ; done

   .. or, if you want to put it in a script for reuse ..

   #!/bin/sh
   find . -type f | while read line
   do
     if ! [ -x $line ]
     then
       fossil add $line
     fi
   done

   .. and you could add a "if ! [ x"$line" = "x.flsckout" ]" test as
well, if you need to run it from the root.

   /Jan

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to