From 540e0c641a98f8af113d70ccc422fe4dad07ce1d Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Mon, 28 Nov 2005 20:17:49 +0000 Subject: [PATCH] Replaced the xsl:param "unpackdir" by the shell envar "$UNPACKDIR" --- dump-blfs-scripts.xsl | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/dump-blfs-scripts.xsl b/dump-blfs-scripts.xsl index 1011038..2f77011 100644 --- a/dump-blfs-scripts.xsl +++ b/dump-blfs-scripts.xsl @@ -29,21 +29,17 @@ - #!/bin/sh set -e - cd ~/sources/ - rm -rf - - + rm -rf $UNPACKDIR exit @@ -53,7 +49,6 @@ - @@ -66,16 +61,15 @@ - tar -xf - .* cd - - + .* > /tmp/unpacked + UNPACKDIR=`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'` + cd $UNPACKDIR @@ -116,7 +110,6 @@ - wget