patch-1.3.76 linux/scripts/tkparse.c

Next file: linux/scripts/tkparse.h
Previous file: linux/scripts/tkgen.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.75/linux/scripts/tkparse.c linux/scripts/tkparse.c
@@ -326,10 +326,9 @@
       tok = tok_menuoption;
       pnt += 15;
     }
-  else if      (strncmp(pnt, "$MAKE -C drivers/sound", 22) == 0) 
+  else if (strncmp(pnt, "$MAKE ", 6) == 0) 
     {
-      pnt += 22;
-      tok = tok_sound;
+      tok = tok_make;
     }
   else if (strncmp(pnt, "comment", 7) == 0) 
     {
@@ -508,9 +507,11 @@
 	  pnt = get_qstring(pnt, &kcfg->label);
 	}
       break;
+    case tok_make:
+      kcfg->value=strdup(pnt);
+      break;
     case tok_else:
     case tok_fi:
-    case tok_sound:
     case tok_endmenu:
       break;
     case tok_if:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this