summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-28 16:41:56 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-28 16:41:56 +0100
commitf4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf (patch)
tree5feb099e89c1209f55d9b9b036b58aa3f1be2b3c /pkgs/stdenv/generic
parentcf8daf63120adedbeaf5bc8c2f396be2496a741e (diff)
downloadnixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.tar
nixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.tar.gz
nixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.tar.bz2
nixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.tar.lz
nixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.tar.xz
nixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.tar.zst
nixpkgs-f4ed8a3b911628335a53b3b5ddb48e9ec8d8bdcf.zip
Remove trailing whitespace
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/setup.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index d697fcb7c4f..16b05fc0b29 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -1,7 +1,7 @@
 # Run the named hook, either by calling the function with that name or
 # by evaluating the variable with that name.  This allows convenient
 # setting of hooks both from Nix expressions (as attributes /
-# environment variables) and from shell scripts (as functions). 
+# environment variables) and from shell scripts (as functions).
 runHook() {
     local hookName="$1"
     case "$(type -t $hookName)" in
@@ -29,10 +29,10 @@ exitHandler() {
         # - system time for all child processes
         echo "build time elapsed: " ${times[*]}
     fi
-    
+
     if [ $exitCode != 0 ]; then
         runHook failureHook
-    
+
         # If the builder had a non-zero exit code and
         # $succeedOnFailure is set, create the file
         # `$out/nix-support/failed' to signal failure, and exit
@@ -43,11 +43,11 @@ exitHandler() {
             echo -n $exitCode > "$out/nix-support/failed"
             exit 0
         fi
-        
+
     else
         runHook exitHook
     fi
-    
+
     exit $exitCode
 }
 
@@ -462,7 +462,7 @@ unpackFile() {
 
 unpackPhase() {
     runHook preUnpack
-    
+
     if [ -z "$srcs" ]; then
         if [ -z "$src" ]; then
             echo 'variable $src or $srcs should point to the source'
@@ -529,9 +529,9 @@ unpackPhase() {
 
 patchPhase() {
     runHook prePatch
-    
+
     if [ -z "$patchPhase" -a -z "$patches" ]; then return; fi
-    
+
     for i in $patches; do
         header "applying patch $i" 3
         local uncompress=cat
@@ -728,7 +728,7 @@ fixupPhase() {
         if [ -n "$stripDebugList" ]; then
             stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
         fi
-        
+
         stripAllList=${stripAllList:-}
         if [ -n "$stripAllList" ]; then
             stripDirs "$stripAllList" "${stripAllFlags:--s}"
@@ -844,7 +844,7 @@ genericBuild() {
 
         showPhaseHeader "$curPhase"
         dumpVars
-        
+
         # Evaluate the variable named $curPhase if it exists, otherwise the
         # function named $curPhase.
         eval "${!curPhase:-$curPhase}"
@@ -852,7 +852,7 @@ genericBuild() {
         if [ "$curPhase" = unpackPhase ]; then
             cd "${sourceRoot:-.}"
         fi
-        
+
         if [ -n "$tracePhases" ]; then
             echo
             echo "@ phase-succeeded $out $curPhase"