OLD | NEW |
(Empty) | |
| 1 From 7fc9ef8ce9ce630b53b20f1d4207c587df9b9763 Mon Sep 17 00:00:00 2001 |
| 2 From: Lucas Meneghel Rodrigues <lmr@redhat.com> |
| 3 Date: Thu, 8 Apr 2010 09:57:10 -0300 |
| 4 Subject: [PATCH 2/2] Changing shebangs on lmbench scripts |
| 5 |
| 6 Some distros such as ubuntu use dash as the default |
| 7 shell, and lmbench scripts use constructs incompatible |
| 8 with it. So, at least for ubuntu, let's change the |
| 9 shebangs from /bin/sh to /bin/bash. |
| 10 |
| 11 Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com> |
| 12 --- |
| 13 scripts/build | 2 +- |
| 14 scripts/compiler | 2 +- |
| 15 scripts/config | 2 +- |
| 16 scripts/config-run | 2 +- |
| 17 scripts/config-scaling | 2 +- |
| 18 scripts/do_ctx | 2 +- |
| 19 scripts/info | 2 +- |
| 20 scripts/lmbench | 2 +- |
| 21 scripts/make | 2 +- |
| 22 scripts/mkrelease | 2 +- |
| 23 scripts/os | 2 +- |
| 24 scripts/output | 2 +- |
| 25 scripts/results | 2 +- |
| 26 scripts/synchronize | 2 +- |
| 27 scripts/target | 2 +- |
| 28 scripts/version | 2 +- |
| 29 scripts/xroff | 2 +- |
| 30 17 files changed, 17 insertions(+), 17 deletions(-) |
| 31 |
| 32 diff --git a/scripts/build b/scripts/build |
| 33 index 16a6600..7f0d41e 100755 |
| 34 --- a/scripts/build |
| 35 +++ b/scripts/build |
| 36 @@ -1,4 +1,4 @@ |
| 37 -#!/bin/sh |
| 38 +#!/bin/bash |
| 39 |
| 40 CC=${CC-`../scripts/compiler`} |
| 41 MAKE=${MAKE-`../scripts/make`} |
| 42 diff --git a/scripts/compiler b/scripts/compiler |
| 43 index 2fca921..de57298 100755 |
| 44 --- a/scripts/compiler |
| 45 +++ b/scripts/compiler |
| 46 @@ -1,4 +1,4 @@ |
| 47 -#!/bin/sh |
| 48 +#!/bin/bash |
| 49 |
| 50 if [ "X$CC" != "X" ] && echo "$CC" | grep -q '`' |
| 51 then |
| 52 diff --git a/scripts/config b/scripts/config |
| 53 index b58cb60..2c0276d 100755 |
| 54 --- a/scripts/config |
| 55 +++ b/scripts/config |
| 56 @@ -1,4 +1,4 @@ |
| 57 -#!/bin/sh |
| 58 +#!/bin/bash |
| 59 |
| 60 UNAME=`uname -n 2>/dev/null` |
| 61 if [ X$UNAME = X ] |
| 62 diff --git a/scripts/config-run b/scripts/config-run |
| 63 index 9958a31..76ead34 100755 |
| 64 --- a/scripts/config-run |
| 65 +++ b/scripts/config-run |
| 66 @@ -1,4 +1,4 @@ |
| 67 -#!/bin/sh |
| 68 +#!/bin/bash |
| 69 |
| 70 # Configure parameters for lmbench. |
| 71 # %I% %E% %@% |
| 72 diff --git a/scripts/config-scaling b/scripts/config-scaling |
| 73 index 12e0f02..03f3e38 100755 |
| 74 --- a/scripts/config-scaling |
| 75 +++ b/scripts/config-scaling |
| 76 @@ -1,4 +1,4 @@ |
| 77 -#!/bin/sh |
| 78 +#!/bin/bash |
| 79 |
| 80 # config-scaling - reconfigure just the scaling parameter SYNC_MAX |
| 81 # |
| 82 diff --git a/scripts/do_ctx b/scripts/do_ctx |
| 83 index 002a6c2..2b1db4c 100755 |
| 84 --- a/scripts/do_ctx |
| 85 +++ b/scripts/do_ctx |
| 86 @@ -1,4 +1,4 @@ |
| 87 -#!/bin/sh |
| 88 +#!/bin/bash |
| 89 |
| 90 # Make sure we can find: ./cmd, df, and netstat |
| 91 PATH=.:$PATH:/etc:/usr/etc:/sbin:/usr/sbin |
| 92 diff --git a/scripts/info b/scripts/info |
| 93 index e6860ed..18a10b2 100755 |
| 94 --- a/scripts/info |
| 95 +++ b/scripts/info |
| 96 @@ -1,4 +1,4 @@ |
| 97 -#!/bin/sh |
| 98 +#!/bin/bash |
| 99 |
| 100 UNAME=`uname -n 2>/dev/null` |
| 101 if [ X$UNAME = X ] |
| 102 diff --git a/scripts/lmbench b/scripts/lmbench |
| 103 index 53ea511..63e5e07 100755 |
| 104 --- a/scripts/lmbench |
| 105 +++ b/scripts/lmbench |
| 106 @@ -1,4 +1,4 @@ |
| 107 -#!/bin/sh |
| 108 +#!/bin/bash |
| 109 |
| 110 # lmbench - run the lmbench benchmark suite. |
| 111 # |
| 112 diff --git a/scripts/make b/scripts/make |
| 113 index 59bf238..2886ba6 100755 |
| 114 --- a/scripts/make |
| 115 +++ b/scripts/make |
| 116 @@ -1,4 +1,4 @@ |
| 117 -#!/bin/sh |
| 118 +#!/bin/bash |
| 119 |
| 120 if [ "X$MAKE" != "X" ] && echo "$MAKE" | grep -q '`' |
| 121 then |
| 122 diff --git a/scripts/mkrelease b/scripts/mkrelease |
| 123 index be50f03..656f9dd 100755 |
| 124 --- a/scripts/mkrelease |
| 125 +++ b/scripts/mkrelease |
| 126 @@ -1,4 +1,4 @@ |
| 127 -#!/bin/sh |
| 128 +#!/bin/bash |
| 129 |
| 130 # %W% |
| 131 # |
| 132 diff --git a/scripts/os b/scripts/os |
| 133 index ea767c6..c9aed11 100755 |
| 134 --- a/scripts/os |
| 135 +++ b/scripts/os |
| 136 @@ -1,4 +1,4 @@ |
| 137 -#!/bin/sh |
| 138 +#!/bin/bash |
| 139 |
| 140 if [ "X$OS" != "X" ] && echo "$OS" | grep -q '`' |
| 141 then |
| 142 diff --git a/scripts/output b/scripts/output |
| 143 index 2a204e3..a27571a 100755 |
| 144 --- a/scripts/output |
| 145 +++ b/scripts/output |
| 146 @@ -1,4 +1,4 @@ |
| 147 -#!/bin/sh |
| 148 +#!/bin/bash |
| 149 trap "echo /dev/null" 20 |
| 150 OUTPUT=/dev/null; export OUTPUT |
| 151 if [ -w /dev/tty ]; then |
| 152 diff --git a/scripts/results b/scripts/results |
| 153 index cd07c15..5f817d9 100755 |
| 154 --- a/scripts/results |
| 155 +++ b/scripts/results |
| 156 @@ -1,4 +1,4 @@ |
| 157 -#!/bin/sh |
| 158 +#!/bin/bash |
| 159 |
| 160 # $Id$ |
| 161 |
| 162 diff --git a/scripts/synchronize b/scripts/synchronize |
| 163 index 302db00..eb36d5b 100755 |
| 164 --- a/scripts/synchronize |
| 165 +++ b/scripts/synchronize |
| 166 @@ -1,4 +1,4 @@ |
| 167 -#!/bin/sh |
| 168 +#!/bin/bash |
| 169 |
| 170 # %W% %@% Copyright (c) 1998 Larry McVoy. |
| 171 # |
| 172 diff --git a/scripts/target b/scripts/target |
| 173 index 77eee07..6998da9 100755 |
| 174 --- a/scripts/target |
| 175 +++ b/scripts/target |
| 176 @@ -1,4 +1,4 @@ |
| 177 -#!/bin/sh |
| 178 +#!/bin/bash |
| 179 |
| 180 # Figure out the OS name if possible. |
| 181 # |
| 182 diff --git a/scripts/version b/scripts/version |
| 183 index 879b700..9e6bf6c 100755 |
| 184 --- a/scripts/version |
| 185 +++ b/scripts/version |
| 186 @@ -1,4 +1,4 @@ |
| 187 -#!/bin/sh |
| 188 +#!/bin/bash |
| 189 |
| 190 # %W% %@% |
| 191 |
| 192 diff --git a/scripts/xroff b/scripts/xroff |
| 193 index d5acf20..02c61d2 100755 |
| 194 --- a/scripts/xroff |
| 195 +++ b/scripts/xroff |
| 196 @@ -1,4 +1,4 @@ |
| 197 -#!/bin/sh |
| 198 +#!/bin/bash |
| 199 |
| 200 # X previewer like groff/nroff scripts. |
| 201 groff -P -filename -P "| groff -Z -X -Tps $*" -X -Tps "$@" |
| 202 -- |
| 203 1.6.6.1 |
| 204 |
OLD | NEW |