diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /qa/xlate_2_new_pmns | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'qa/xlate_2_new_pmns')
-rwxr-xr-x | qa/xlate_2_new_pmns | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/qa/xlate_2_new_pmns b/qa/xlate_2_new_pmns new file mode 100755 index 0000000..faae4cf --- /dev/null +++ b/qa/xlate_2_new_pmns @@ -0,0 +1,36 @@ +#! /bin/sh +# +# translate to the new pmns names (drop irix. prefix etc) +# +# Usage: xlate_2_new_pmns [file ...] +# +# Copyright (c) 1997-2002 Silicon Graphics, Inc. All Rights Reserved. +# + +_map() +{ + sed \ + -e 's/^/ /' \ + -e 's/\([^a-zA-Z0-9_.]\)irix\.numa/\1origin.numa/g' \ + -e 's/\([^a-zA-Z0-9_.]\)irix\.node/\1origin.node/g' \ + -e 's/\([^a-zA-Z0-9_.]\)irix\./\1/g' \ + -e 's/\([^a-zA-Z0-9_.]\)resource\.name_cache/\1name_cache/g' \ + -e 's/\([^a-zA-Z0-9_.]\)resource\.buffer_cache/\1buffer_cache/g' \ + -e 's/\([^a-zA-Z0-9_.]\)resource\.vnodes/\1vnodes/g' \ + -e 's/\([^a-zA-Z0-9_.]\)resource\.efs/\1efs/g' \ + -e 's/^ //' +} + +if [ $# -eq 0 ] +then + _map +else + tmp=/var/tmp/$$ + trap "rm -f $tmp; exit 0" 0 1 2 3 15 + for file + do + _map <$file >$tmp + cp $tmp $file + done +fi + |