nsprpub/config/nfspwd.pl
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Sat, 21 May 2022 19:01:56 +0000
changeset 686414 eae767d6cc0ab37f09f1782ec0652618f508d551
parent 97770 d37d4edce6dd592f04afa606deb1ae327c07b4a4
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump be -> 048f60a16451587ac53994ab382d0e236575b4e7 es-MX -> dd49eda9f851d052a57eecb6ff489136f852d6ee ia -> 15f91582d6be61be9534174fc617aeda1deda335 kk -> e22cf274f80cc6fa1c2f821695e67f41f28ca1de ko -> 7fa55be6b126b9552ce2a7a00d13ac150fc13cec pl -> 945338b758e3b3a55f0ea3fa60a8e031525b150a tr -> ca3b075fcc828c9351573fcdd5ca96273a979179

#! perl
# 
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

require "fastcwd.pl";

$_ = &fastcwd;
if (m@^/[uh]/@o || s@^/tmp_mnt/@/@o) {
    print("$_\n");
} elsif ((($user, $rest) = m@^/usr/people/(\w+)/(.*)@o)
      && readlink("/u/$user") eq "/usr/people/$user") {
    print("/u/$user/$rest\n");
} else {
    chop($host = `hostname`);
    print("/h/$host$_\n");
}