View source for Sandbox

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to Sandbox.

Personal tools

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:

  1. !/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'`

  1. 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