patches/uClibc/0.9.30/210-find-portable.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 24 20:08:13 2011 +0200 (2011-07-24)
changeset 2898 7e0af0188fc3
permissions -rw-r--r--
functions: add new helpers that create a dir and cd/pushd into it

A lot of places are currently doing:
mkdir -p foo/bar
cd foo/bar

Or even:
mkdir -p foo/bar
pushd foo/bar
[...]
popd

Provide both wrapper to ease doing this.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
titus@2627
     1
--- uClibc-0.9.30.orig/extra/scripts/install_headers.sh	2008-10-10 15:50:38.000000000 +0200
titus@2627
     2
+++ uClibc-0.9.30/extra/scripts/install_headers.sh	2011-08-21 09:49:03.000000000 +0200
titus@2627
     3
@@ -33,7 +33,7 @@
titus@2627
     4
 (
titus@2627
     5
 # We must cd, or else we'll prepend "$1" to filenames!
titus@2627
     6
 cd "$1" || exit 1
titus@2627
     7
-find ! -name '.' -a ! -path '*/.*' | sed -e 's/^\.\///' -e '/^config\//d' \
titus@2627
     8
+find . ! -name '.' -a ! -path '*/.*' | sed -e 's/^\.\///' -e '/^config\//d' \
titus@2627
     9
 	-e '/^config$/d'
titus@2627
    10
 ) | \
titus@2627
    11
 (