mtd/patches patchin.sh,1.15,1.16

David Woodhouse dwmw2 at infradead.org
Fri Aug 29 10:25:51 EDT 2003


Update of /home/cvs/mtd/patches
In directory phoenix.infradead.org:/tmp/cvs-serv28634

Modified Files:
	patchin.sh 
Log Message:
Be helpful when invoked with no args


Index: patchin.sh
===================================================================
RCS file: /home/cvs/mtd/patches/patchin.sh,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- patchin.sh	12 Jun 2003 09:22:45 -0000	1.15
+++ patchin.sh	29 Aug 2003 14:25:48 -0000	1.16
@@ -62,8 +62,8 @@
 # Display usage of this script
 usage () {
 	echo "usage:  $0 [-c] [-j] kernelpath"
-	echo "-c copy files to kernel tree instead of building links"
-	echo "-j include jffs2 filesystem" 
+	echo "   -c  -- copy files to kernel tree instead of building links"
+	echo "   -j  -- include jffs2 filesystem" 
 	exit 1
 }
 
@@ -105,6 +105,10 @@
 done
 shift `expr $OPTIND - 1`
 LINUXDIR=$1
+
+if [ -z $LINUXDIR ]; then
+    usage;
+fi
 
 # Check if kerneldir contains a Makefile
 if [ ! -f $LINUXDIR/Makefile ] 




More information about the linux-mtd-cvs mailing list