intl/icu/source/mkinstalldirs

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 #! /bin/sh
     2 #  ********************************************************************
     3 #  * COPYRIGHT:
     4 #  * Copyright (c) 2002-2004, International Business Machines Corporation and
     5 #  * others. All Rights Reserved.
     6 #  ********************************************************************
     7 # mkinstalldirs --- make directory hierarchy
     8 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
     9 # Created: 1993-05-16
    10 # Public domain
    12 errstatus=0
    14 for file
    15 do
    16    set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
    17    shift
    19    pathcomp=
    20    for d
    21    do
    22      pathcomp="$pathcomp$d"
    23      case "$pathcomp" in
    24        -* ) pathcomp=./$pathcomp ;;
    25      esac
    27      if test ! -d "$pathcomp"; then
    28         echo "mkdir $pathcomp"
    30         mkdir "$pathcomp" || lasterr=$?
    32         if test ! -d "$pathcomp"; then
    33   	  errstatus=$lasterr
    34         fi
    35      fi
    37      pathcomp="$pathcomp/"
    38    done
    39 done
    41 exit $errstatus
    43 # mkinstalldirs ends here

mercurial