summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-06-10 22:53:47 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2009-06-10 22:53:47 +0200
commit2baf1c8b53018ed6970468196616c2dab6d05f1e (patch)
treefc7d542aa07559bc9c63c2e2e77a0892799ca980 /scripts
parentfind-split-python.sh: Work correctly with a $PORTDIR that has a different dep... (diff)
downloadgnome-2baf1c8b53018ed6970468196616c2dab6d05f1e.tar.gz
gnome-2baf1c8b53018ed6970468196616c2dab6d05f1e.tar.bz2
gnome-2baf1c8b53018ed6970468196616c2dab6d05f1e.zip
scripts/{convert,find}-split-python:
* Fix regular expression for matching blank caracters * Replace a sed call by standard shell substitution
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/convert-split-python.sh2
-rwxr-xr-xscripts/find-split-python.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/convert-split-python.sh b/scripts/convert-split-python.sh
index 31fec750..1a648628 100755
--- a/scripts/convert-split-python.sh
+++ b/scripts/convert-split-python.sh
@@ -32,7 +32,7 @@ echo $IMPORTS
# Find the python files
for import in $(echo $IMPORTS)
do
- if egrep -q " $import($|,|[:blank:])" $TMP; then
+ if egrep -q " $import($|,|[[:blank:]])" $TMP; then
#echo ""
echo -n " * Mapping $import"
echo ": $(egrep " $import( |,|$)" $TMP | cut -f1 -d:|xargs echo)"
diff --git a/scripts/find-split-python.sh b/scripts/find-split-python.sh
index af5069f4..7579f23c 100755
--- a/scripts/find-split-python.sh
+++ b/scripts/find-split-python.sh
@@ -21,7 +21,7 @@ do
if egrep -q G_PY_BINDINGS $x; then
BINDINGS=$(sed -n "/G_PY_BINDINGS/ p" $x | sed "s/G_PY_BINDINGS=\"//;s/\"//")
else
- BINDINGS=$(echo $PN|sed "s/-python//")
+ BINDINGS="${PN%-python}"
fi
# There might be multiple bindings per package
@@ -39,7 +39,7 @@ do
done
echo "$CAT/$PN: $BINDINGS_OUT" | tr -s ' ' >> $TMP
-done
+done
cat $TMP |sort -u