[uClibc-cvs] uClibc/extra/scripts fix_includes.sh, 1.4, 1.5 get-needed-libgcc-objects.sh, 1.20, 1.21
Erik Andersen
andersen at uclibc.org
Thu Sep 11 10:24:32 UTC 2003
Update of /var/cvs/uClibc/extra/scripts
In directory winder:/tmp/cvs-serv18554/extra/scripts
Modified Files:
fix_includes.sh get-needed-libgcc-objects.sh
Log Message:
Stefan Allius writes:
1. Under Solaris the test command with the 'string' argument don't
work well. So I added the '-n' argument, which might work on all
platforms.
2. The sed under Solaris don't support the '-s' argument, which is a
GNU extension. I changed it to '-e' which works fine for me.
Index: get-needed-libgcc-objects.sh
===================================================================
RCS file: /var/cvs/uClibc/extra/scripts/get-needed-libgcc-objects.sh,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- get-needed-libgcc-objects.sh 18 Aug 2003 23:14:09 -0000 1.20
+++ get-needed-libgcc-objects.sh 11 Sep 2003 10:24:28 -0000 1.21
@@ -20,7 +20,7 @@
rm -f libc.ldr
$LD $LDFLAGS -r -o libc.ldr $CRTOBJS --whole-archive ../libc.a
-if $NM --undefined-only libc.ldr 2>&1 | sed -s 's/ *$//' | sed -e 's/^.*U *//' | grep -v "main$" | grep -v "_GLOBAL_OFFSET_TABLE_$" | grep -v "_gp_disp" | grep -v "^etext$" | grep -v "^__gmon_start__$" > sym.need ; then
+if $NM --undefined-only libc.ldr 2>&1 | sed -e 's/ *$//' | sed -e 's/^.*U *//' | grep -v "main$" | grep -v "_GLOBAL_OFFSET_TABLE_$" | grep -v "_gp_disp" | grep -v "^etext$" | grep -v "^__gmon_start__$" > sym.need ; then
EXIT_WITH_ERROR=0
rm -f obj.need
touch obj.need
Index: fix_includes.sh
===================================================================
RCS file: /var/cvs/uClibc/extra/scripts/fix_includes.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- fix_includes.sh 9 Sep 2003 09:11:16 -0000 1.4
+++ fix_includes.sh 11 Sep 2003 10:24:28 -0000 1.5
@@ -49,11 +49,11 @@
}
HAS_MMU="y";
-while [ "$1" ]; do
+while [ -n "$1" ]; do
case $1 in
- -k ) shift; if [ "$1" ]; then KERNEL_SOURCE=$1; shift; else usage; fi; ;;
- -t ) shift; if [ "$1" ]; then TARGET_ARCH=$1; shift; else usage; fi; ;;
- -n ) shift; if [ "$1" ]; then HAS_MMU="n"; shift; else usage; fi; ;;
+ -k ) shift; if [ -n "$1" ]; then KERNEL_SOURCE=$1; shift; else usage; fi; ;;
+ -t ) shift; if [ -n "$1" ]; then TARGET_ARCH=$1; shift; else usage; fi; ;;
+ -n ) shift; if [ -n "$1" ]; then HAS_MMU="n"; shift; else usage; fi; ;;
-* ) usage; ;;
* ) usage; ;;
esac;
More information about the uClibc-cvs
mailing list