Changeset 1101 in kBuild
- Timestamp:
- Sep 22, 2007 10:01:37 PM (17 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/Makefile.kmk
r986 r1101 151 151 # 152 152 kmk_DEFS += CONFIG_WITH_KMK_BUILTIN 153 kmk_LIBS += $(LIB_KUTIL) 153 154 kmk_SOURCES += \ 154 155 kmkbuiltin.c \ … … 159 160 kmkbuiltin/echo.c \ 160 161 kmkbuiltin/install.c \ 162 kmkbuiltin/md5sum.c \ 161 163 kmkbuiltin/mkdir.c \ 162 164 kmkbuiltin/mv.c \ … … 171 173 # 172 174 ## @todo should probably put all those 173 PROGRAMS += kmk_append kmk_cat kmk_cp kmk_echo kmk_m kdir kmk_mv kmk_install kmk_ln kmk_printf kmk_rm kmk_rmdir175 PROGRAMS += kmk_append kmk_cat kmk_cp kmk_echo kmk_md5sum kmk_mkdir kmk_mv kmk_install kmk_ln kmk_printf kmk_rm kmk_rmdir 174 176 175 177 kmk_append_TEMPLATE = BIN-KMK … … 209 211 kmk_mkdir_SOURCES = \ 210 212 kmkbuiltin/mkdir.c 213 214 kmk_md5sum_TEMPLATE = BIN-KMK 215 kmk_md5sum_DEFS = kmk_builtin_md5sum=main 216 kmk_md5sum_SOURCES = \ 217 kmkbuiltin/md5sum.c 218 kmk_md5sum_LIBS = $(LIB_KUTIL) 211 219 212 220 kmk_mv_TEMPLATE = BIN-KMK -
trunk/src/kmk/kmkbuiltin.c
r803 r1101 203 203 rc = kmk_builtin_rmdir(argc, argv, environ); 204 204 /* rarely used commands: */ 205 else if (!strcmp(pszCmd, "cp")) 206 rc = kmk_builtin_cp(argc, argv, environ); 207 else if (!strcmp(pszCmd, "md5sum")) 208 rc = kmk_builtin_md5sum(argc, argv, environ); 205 209 else if (!strcmp(pszCmd, "cat")) 206 210 rc = kmk_builtin_cat(argc, argv, environ); 207 else if (!strcmp(pszCmd, "cp"))208 rc = kmk_builtin_cp(argc, argv, environ);209 211 else 210 212 { -
trunk/src/kmk/kmkbuiltin.h
r785 r1101 34 34 extern int kmk_builtin_install(int argc, char **argv, char **envp); 35 35 extern int kmk_builtin_ln(int argc, char **argv, char **envp); 36 extern int kmk_builtin_md5sum(int argc, char **argv, char **envp); 36 37 extern int kmk_builtin_mkdir(int argc, char **argv, char **envp); 37 38 extern int kmk_builtin_mv(int argc, char **argv, char **envp); -
trunk/src/kmk/variable.c
r938 r1101 1090 1090 #ifdef CONFIG_WITH_KMK_BUILTIN 1091 1091 /* The supported kMk Builtin commands. */ 1092 (void) define_variable ("KMK_BUILTIN", 11, "append cat cp echo install ln m kdir mv printf rm rmdir", o_default, 0);1092 (void) define_variable ("KMK_BUILTIN", 11, "append cat cp echo install ln md5sum mkdir mv printf rm rmdir", o_default, 0); 1093 1093 #endif 1094 1094
Note:
See TracChangeset
for help on using the changeset viewer.