Sandbox
From Openmoko
m (test of categories) |
|||
Line 10: | Line 10: | ||
Literal curly brace test: | Literal curly brace test: | ||
+ | |||
Line 24: | Line 25: | ||
with a space | with a space | ||
+ | |||
+ | Attached is a beta fix for the .la problem. Untar the .tar.bz2 as root, and execute the following bash script as root: | ||
+ | |||
+ | #!/bin/sh | ||
+ | DIR=/usr/local/openmoko/arm | ||
+ | for la in `find $DIR -iname \*.la`; do | ||
+ | dependency_libs= | ||
+ | . $la | ||
+ | for lib in $dependency_libs ; do | ||
+ | delib=`echo $lib | grep -E .la$` | ||
+ | if [ -z $delib ] ; then | ||
+ | echo -n | ||
+ | elif [ -f $delib ]; then | ||
+ | echo -n | ||
+ | else | ||
+ | basedelib=`basename $delib` | ||
+ | replacedelibs=`find $DIR -iname $basedelib` | ||
+ | found=0 | ||
+ | for replacedelib in $replacedelibs ; do | ||
+ | if [ $replacedelib == $delib ]; then | ||
+ | found=1 | ||
+ | fi | ||
+ | done | ||
+ | if [ $found -gt 0 ] ; then | ||
+ | echo -n | ||
+ | else | ||
+ | sed_delib=`echo $delib | sed 's/\//\\\\\//g'` | ||
+ | sed_replacedelib=`echo $replacedelib | sed 's/\//\\\\\//g'` | ||
+ | # A bit slow, we could chain expressions for speed. :) | ||
+ | cp $la $la.old | ||
+ | cat $la | sed "s/$sed_delib/$sed_replacedelib/g" > $la.new | ||
+ | mv $la.new $la | ||
+ | rm $la.old | ||
+ | fi | ||
+ | fi | ||
+ | done | ||
+ | done | ||
+ | |||
+ | * Please use the [http://lists.openmoko.org/mailman/listinfo/openmoko-devel Openmoko-Devel] mailing list. | ||
[[Category:Test]] | [[Category:Test]] |
Revision as of 02:13, 18 November 2008
Sandbox - Test page for Wiki editing
Please leave this intro and edit below the line.
Feel free to use this article to try formatting, editing or whatever related. Don't worry, someone will clean up after you.
This is a test Citation needed
here!
Literal curly brace test:
device {
iscan enable;
pscan enable;
}
hello
with a space
Attached is a beta fix for the .la problem. Untar the .tar.bz2 as root, and execute the following bash script as root:
- !/bin/sh
DIR=/usr/local/openmoko/arm for la in `find $DIR -iname \*.la`; do dependency_libs= . $la for lib in $dependency_libs ; do delib=`echo $lib | grep -E .la$` if [ -z $delib ] ; then echo -n elif [ -f $delib ]; then echo -n else basedelib=`basename $delib` replacedelibs=`find $DIR -iname $basedelib` found=0 for replacedelib in $replacedelibs ; do if [ $replacedelib == $delib ]; then found=1 fi done if [ $found -gt 0 ] ; then echo -n else sed_delib=`echo $delib | sed 's/\//\\\\\//g'` sed_replacedelib=`echo $replacedelib | sed 's/\//\\\\\//g'`
- A bit slow, we could chain expressions for speed. :)
cp $la $la.old cat $la | sed "s/$sed_delib/$sed_replacedelib/g" > $la.new mv $la.new $la rm $la.old fi fi done done
- Please use the Openmoko-Devel mailing list.