Hi,
currently I'm working on a bash script where I make use of cvsup-without-gui. Synchronizing ports and sources takes about 25 minutes. It would be nice to give the user a little progress bar instead of a verbosity of -L 2 or a stucking shell (-L 0) but unfortunately cvsup doesn't offer such a nice feature.
So now my goal is to give the user a progress bar. I was thinking of checking the total size of the repository paths cvsup will sync and then use /usr/bin/du to let the progress bar grow. Obviously this will only work for very first cvsup download - but that's exctly what I need here
Is there an better way to get that done? If not then what would be the easiest way to get the size of the repository or better said the folder I want to sync?
Thanks
currently I'm working on a bash script where I make use of cvsup-without-gui. Synchronizing ports and sources takes about 25 minutes. It would be nice to give the user a little progress bar instead of a verbosity of -L 2 or a stucking shell (-L 0) but unfortunately cvsup doesn't offer such a nice feature.
So now my goal is to give the user a progress bar. I was thinking of checking the total size of the repository paths cvsup will sync and then use /usr/bin/du to let the progress bar grow. Obviously this will only work for very first cvsup download - but that's exctly what I need here
Is there an better way to get that done? If not then what would be the easiest way to get the size of the repository or better said the folder I want to sync?
Thanks