[pulseaudio-discuss] [PATCH 1/4] Solaris: bootstrap portability

Lennart Poettering lennart at poettering.net
Thu Aug 20 16:18:08 PDT 2009


On Fri, 21.08.09 03:49, Finn Thain (fthain at telegraphics.com.au) wrote:

>
> On Solaris, cp and chmod don't have a -v option.
>
> --- pulseaudio/bootstrap.sh	Tue Aug 18 20:55:33 2009
> +++ pulseaudio/bootstrap.sh	Tue Aug 18 20:58:15 2009
> @@ -48,8 +48,8 @@
>
>  if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
>      echo "Activating pre-commit hook."
> -    cp -pv  .git/hooks/pre-commit.sample .git/hooks/pre-commit
> -    chmod -v +x  .git/hooks/pre-commit
> +    cp -p  .git/hooks/pre-commit.sample .git/hooks/pre-commit
> +    chmod +x  .git/hooks/pre-commit
>  fi

Hmm, I don't really like this one. I put the -v in there to show the
use that we are activating the git commit hook. Maybe there is another
way to handle this so that we still get the effect of -v, at least on
Linux?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list