Commit e7f68c9c authored by Ercan Ersoy's avatar Ercan Ersoy

Some updates

Fix wrong string on mv command for Turkish Language, change language
several #define definitions name, change header comments on header and
source files and add header comment in "Makefile".
parent 5734f982
# Makefile - Build file
# Written by Ercan Ersoy.
CC = gcc
CFLAGS = -O3 -s -c
LD = gcc
......
No preview for this file type
No preview for this file type
/*****************************
* Minibox beep Command File *
*****************************/
/*
* beep.c - beep command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -14,12 +15,12 @@ int command_beep(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_BEEP_OUTPUT_SOUND_FROM_PC_SPEAKER);
puts(STRING_MINIBOX_BEEP_OPTIONS);
puts(STRING_MINIBOX_BEEP_DESCRIPTION);
puts(STRING_MINIBOX_BEEP_USAGE);
puts(" MINIBOX beep --help|--version\r\n");
puts(STRING_OPTIONS);
puts(STRING_FREQUENCY_SPECIFIY_SOUND_S_FROM_FREQUENCY);
puts(STRING_L_LENGTH_SPECIFIY_SOUND_S_LENGTH_AS_MILLISECONDS);
puts(STRING_MINIBOX_BEEP_OPTIONS_1);
puts(STRING_MINIBOX_BEEP_OPTIONS_2);
return 0;
}
#endif
......
/****************************
* MINIBOX cat Command File *
****************************/
/*
* cat.c - cat command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -16,12 +17,12 @@ int command_cat(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_CAT_OUTPUT_SPECIFIED_FILE_S_CONTENTS);
puts(STRING_MINIBOX_CAT_OPTIONS_FILE);
puts(STRING_MINIBOX_CAT_DESCRIPTION);
puts(STRING_MINIBOX_CAT_USAGE);
puts(" MINIBOX cat --help|--version\r\n");
puts(STRING_OPTIONS);
puts(STRING_E_ENDS_ARE_SHOWN_AS);
puts(STRING_T_TABS_ARE_SHOWN_AS);
puts(STRING_MINIBOX_CAT_OPTIONS_1);
puts(STRING_MINIBOX_CAT_OPTIONS_2);
return 0;
}
#endif
......
/***************************
* MINIBOX cd Command File *
***************************/
/*
* cd.c - cd command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -11,7 +12,7 @@ int command_cd(int argc, char *argv[])
{
if(chdir(argv[2]))
{
fprintf(stderr, STRING_DOESN_T_DIRECTORY, argv[3]);
fprintf(stderr, STRING_DOES_NOT_DIRECTORY, argv[3]);
return 1;
}
}
......
/******************************
* Minibox clear Command File *
******************************/
/*
* clear.c - clear command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -10,7 +11,7 @@ int command_clear(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_CLEAR_CLEAR_THE_TERMINAL_SCREEN);
puts(STRING_MINIBOX_CLEAR_DESCRIPTION);
puts(" MINIBOX clear");
puts(" MINIBOX clear --help|--version\r\n");
return 0;
......
/***************************
* MINIBOX cp Command File *
***************************/
/*
* cp.c - cp command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -10,8 +11,8 @@ int command_cp(int argc, char *argv[])
#if HELP
if(argc == 3 && !strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_CP_COPY_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY);
puts(STRING_MINIBOX_CP_SOURCE_DESTINATION);
puts(STRING_MINIBOX_CP_DESCRIPTION);
puts(STRING_MINIBOX_CP_USAGE);
puts(" MINIBOX cp --help|--version");
return 0;
}
......@@ -29,7 +30,7 @@ int command_cp(int argc, char *argv[])
{
if(link(argv[2], argv[3]))
{
fprintf(stderr, STRING_CAN_T_COPY, argv[2]);
fprintf(stderr, STRING_CANNOT_COPY, argv[2]);
}
}
else if(argc < 4)
......
/*****************************
* Minibox date Command File *
*****************************/
/*
* date.c - date command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -16,14 +17,14 @@ int command_date(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_DATE_PRINT_OR_SET_SYSTEM_DATE_AND_TIME);
puts(STRING_MINIBOX_DATE_S_FORMAT);
puts(STRING_MINIBOX_DATE_DESCRIPTION);
puts(STRING_MINIBOX_DATE_USAGE);
puts(" MINIBOX date --help|--version\r\n");
puts(STRING_OPTIONS);
puts(STRING_S_SYSTEM_DATE_AND_TIME);
puts(STRING_FORMAT_SPECIFIY_FORMATTED_OUTPUT_STRING_STRING_FORMAT_IS_C_PRINTF_TYPE);
puts(STRING_EXAMPLE);
puts(STRING_DEFAULT_FORMAT_IS_ISO_TYPE);
puts(STRING_MINIBOX_DATE_OPTIONS_1);
puts(STRING_MINIBOX_DATE_OPTIONS_2);
puts(STRING_MINIBOX_DATE_OPTIONS_3);
puts(STRING_MINIBOX_DATE_OPTIONS_4);
return 0;
}
#endif
......
/*****************************
* MINIBOX echo Command File *
*****************************/
/*
* echo.c - echo command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -17,13 +18,13 @@ int command_echo(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_ECHO_PRINT_SPECIFIED_MESSAGES);
puts(STRING_MINIBOX_ECHO_OPTIONS_MESSAGES);
puts(STRING_MINIBOX_ECHO_DESCRIPTION);
puts(STRING_MINIBOX_ECHO_USAGE);
puts(" MINIBOX echo --help|--version\r\n");
puts(STRING_OPTIONS);
puts(STRING_E_PRINTS_SPECIAL_CHARACTERS_MESSAGE_MUST_BE_QUOTED);
puts(STRING_CHARACTERS_ARE);
puts(STRING_N_IN_ADDITION_PRINTS_NEWLINE_CHARACTER);
puts(STRING_MINIBOX_ECHO_OPTIONS_1);
puts(STRING_MINIBOX_ECHO_OPTIONS_2);
puts(STRING_MINIBOX_ECHO_OPTIONS_3);
return 0;
}
#endif
......
/************************************
* Minibox help Command Source File *
************************************/
/*
* help.c - help command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......
/***************************
* MINIBOX ls Command File *
***************************/
/*
* ls.c - ls command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -33,13 +34,13 @@ int command_ls(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_LS_LIST_DIRECTORY_CONTENTS);
puts(STRING_MINIBOX_LS_OPTIONS_FILE);
puts(STRING_MINIBOX_LS_DESCRIPTION);
puts(STRING_MINIBOX_LS_USAGE);
puts(" MINIBOX ls --help|--version\r\n");
puts(STRING_OPTIONS);
puts(STRING__DISPLAY_OUTPUT_AS_ONE_COLUMN);
puts(STRING_A_DON_T_IGNORE_AND);
puts(STRING_L_DISPLAY_LONG_LISTING_FORMAT);
puts(STRING_MINIBOX_LS_OPTIONS_1);
puts(STRING_MINIBOX_LS_OPTIONS_2);
puts(STRING_MINIBOX_LS_OPTIONS_3);
return 0;
}
#endif
......
/******************************
* MINIBOX mkdir Command File *
******************************/
/*
* mkdir.c - mkdir command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -12,8 +13,8 @@ int command_mkdir(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_MKDIR_CREATES_SPECIFIED_DIRECTORIES);
puts(STRING_MINIBOX_MKDIR_DIRECTORIES);
puts(STRING_MINIBOX_MKDIR_DESCRIPTION);
puts(STRING_MINIBOX_MKDIR_USAGE);
puts(" MINIBOX mkdir --help|--version");
return 0;
}
......@@ -31,7 +32,7 @@ int command_mkdir(int argc, char *argv[])
{
if(mkdir(argv[i], S_IWUSR))
{
fprintf(stderr, STRING_CAN_T_CREATE, argv[i]);
fprintf(stderr, STRING_CANNOT_CREATE, argv[i]);
}
}
......
/***************************
* MINIBOX mv Command File *
***************************/
/*
* mv.c - mv command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -10,9 +11,9 @@ int command_mv(int argc, char *argv[])
#if HELP
if(argc == 3 && !strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_MV_MOVE_AND_OR_RENAME_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY_1);
puts(STRING_MINIBOX_MV_MOVE_AND_OR_RENAME_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY_2);
puts(STRING_MINIBOX_MV_SOURCE_DESTINATION);
puts(STRING_MINIBOX_MV_DESCRIPTION_1);
puts(STRING_MINIBOX_MV_DESCRIPTION_2);
puts(STRING_MINIBOX_MV_USAGE);
puts(" MINIBOX mv --help|--version");
return 0;
}
......@@ -30,7 +31,7 @@ int command_mv(int argc, char *argv[])
{
if(rename(argv[2], argv[3]))
{
fprintf(stderr, "%s can\'t move.\r\n", argv[2]);
fprintf(stderr, STRING_CANNOT_MOVE, argv[2]);
}
}
else if(argc < 4)
......
/*****************************
* MINIBOX pwd Command File *
*****************************/
/*
* pwd.c - pwd command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -12,7 +13,7 @@ int command_pwd(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_PWD_OUTPUT_CURRENT_DIRECTORY_S_NAME);
puts(STRING_MINIBOX_PWD_DESCRIPTION);
puts(" MINIBOX pwd");
puts(" MINIBOX pwd --help|--version");
return 0;
......
/**********************************
* MINIBOX rm Command Source File *
**********************************/
/*
* rm.c - rm command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -49,11 +50,11 @@ int command_rm(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_RM_REMOVE_SPECIFIED_FILES);
puts(STRING_MINIBOX_RM_R_ITEMS);
puts(STRING_MINIBOX_RM_DESCRIPTION);
puts(STRING_MINIBOX_RM_USAGE);
puts(" MINIBOX rm --help|--version\r\n");
puts(STRING_OPTION);
puts(STRING_R_REMOVE_SPECIFIED_DIRECTORIES_AND_THEIR_CONTENTS_RECURSIVELY);
puts(STRING_MINIBOX_RM_OPTION);
return 0;
}
#endif
......@@ -74,7 +75,7 @@ int command_rm(int argc, char *argv[])
{
if(item_remove(argv[i]))
{
fprintf(stderr, STRING_CAN_T_REMOVE, argv[i]);
fprintf(stderr, STRING_CANNOT_REMOVE, argv[i]);
}
}
......@@ -86,7 +87,7 @@ int command_rm(int argc, char *argv[])
{
if(remove(argv[i]))
{
fprintf(stderr, STRING_CAN_T_REMOVE, argv[i]);
fprintf(stderr, STRING_CANNOT_REMOVE, argv[i]);
}
}
}
......
/******************************
* MINIBOX rmdir Command File *
******************************/
/*
* rmdir.c - rmdir command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -12,8 +13,8 @@ int command_rmdir(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_RMDIR_REMOVE_SPECIFIED_DIRECTORIES);
puts(STRING_MINIBOX_RMDIR_DIRECTORIES);
puts(STRING_MINIBOX_RMDIR_DESCRIPTION);
puts(STRING_MINIBOX_RMDIR_USAGE);
puts(" MINIBOX rmdir --help|--version");
return 0;
}
......@@ -31,7 +32,7 @@ int command_rmdir(int argc, char *argv[])
{
if(rmdir(argv[i]))
{
fprintf(stderr, STRING_CAN_T_REMOVE, argv[i]);
fprintf(stderr, STRING_CANNOT_REMOVE, argv[i]);
}
}
......
/****************************
* MINIBOX sh Command File *
****************************/
/*
* sh.c - sh command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -12,11 +13,11 @@ int command_sh(int argc, char *argv[])
#if HELP
if(!strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_SH_MINIBOX_SHELL);
puts(STRING_MINIBOX_SH_DESCRIPTION);
puts(" MINIBOX sh");
puts(" MINIBOX sh --help|--version\r\n");
puts(STRING_NOTE);
puts(STRING_IN_MINIBOX_SHELL_GIVE_COMMAND_EXIT_TO_EXIT_SHELL);
puts(STRING_MINIBOX_SH_EXIT);
return 0;
}
#endif
......
/*****************************
* MINIBOX time Command File *
*****************************/
/*
* time.c - time command source file
* Written by Ercan Ersoy.
*/
#include "../minibox.h"
......@@ -16,8 +17,8 @@ int command_time(int argc, char *argv[])
#if HELP
if(argc == 3 && !strcmp(argv[2], "--help"))
{
puts(STRING_MINIBOX_TIME_MEASURE_SPECIFIED_COMMAND_S_EXECUTION_TIME_AS_SECOND);
puts(STRING_MINIBOX_TIME_COMMAND_ARGUMENT);
puts(STRING_MINIBOX_TIME_DESCRIPTION);
puts(STRING_MINIBOX_TIME_USAGE);
puts(" MINIBOX time --help|--version");
return 0;
}
......
/**************************
* MINIBOX Configure File *
**************************/
/*
* config.h - Configuration header file
* Written by Ercan Ersoy.
*/
// Language Configure
#define LANGUAGE EN // EN or TR
#define LANGUAGE TR // EN or TR
// Commands' Configures
......
/**********************************************
* DOS Coreutils English Language Header File *
**********************************************/
/*
* en.h - English Language header file
* Written by Ercan Ersoy.
*/
#define EN 1
#if LANGUAGE == EN
#define STRING__DISPLAY_OUTPUT_AS_ONE_COLUMN "-1 Display output as one column."
#define STRING_A_DON_T_IGNORE_AND "-a Don't ignore \".\" and \"..\"."
#define STRING_CAN_T_COPY "%s can\'t copy.\r\n"
#define STRING_CAN_T_CREATE "%s can\'t create.\r\n"
#define STRING_CAN_T_REMOVE "%s can\'t remove.\r\n"
#define STRING_CHARACTERS_ARE " Characters are: \\a \\b \\c \\e \\f \\r \\t \\v"
#define STRING_DEFAULT_FORMAT_IS_ISO_TYPE " Default format is ISO type."
#define STRING_DOESN_T_DIRECTORY "%s doesn't directory.\r\n"
#define STRING_E_ENDS_ARE_SHOWN_AS " -E: Ends are shown as \"$\"."
#define STRING_E_PRINTS_SPECIAL_CHARACTERS_MESSAGE_MUST_BE_QUOTED "-e Prints special characters. Message must be quoted."
#define STRING_EXAMPLE " Example: \"%d-%d-%d %d:%d%:%d\""
#define STRING_FORMAT_SPECIFIY_FORMATTED_OUTPUT_STRING_STRING_FORMAT_IS_C_PRINTF_TYPE "Format Specify fotmatted output string. String format is C printf type."
#define STRING_FREQUENCY_SPECIFIY_SOUND_S_FROM_FREQUENCY " -f Frequency: Specify sound's frequency."
#define STRING_IN_MINIBOX_SHELL_GIVE_COMMAND_EXIT_TO_EXIT_SHELL " In Minibox shell, type command exit \"exit\" to exit shell."
#define STRING_CANNOT_COPY "%s can\'t copy.\r\n"
#define STRING_CANNOT_CREATE "%s can\'t create.\r\n"
#define STRING_CANNOT_MOVE "%s can\'t move.\r\n"
#define STRING_CANNOT_REMOVE "%s can\'t remove.\r\n"
#define STRING_DOES_NOT_DIRECTORY "%s doesn't directory.\r\n"
#define STRING_INVALID_SYNTAX "Invalid syntax."
#define STRING_L_DISPLAY_LONG_LISTING_FORMAT "-l Display long listing format."
#define STRING_L_LENGTH_SPECIFIY_SOUND_S_LENGTH_AS_MILLISECONDS " -l Length: Specify sound's length as milliseconds."
#define STRING_MINIBOX_BEEP_OPTIONS " MINIBOX beep [Options]"
#define STRING_MINIBOX_BEEP_OUTPUT_SOUND_FROM_PC_SPEAKER "MINIBOX beep - Output sound from PC speaker."
#define STRING_MINIBOX_CAT_OPTIONS_FILE " MINIBOX cat [Options] File"
#define STRING_MINIBOX_CAT_OUTPUT_SPECIFIED_FILE_S_CONTENTS "MINIBOX cat - Output specified file's contents."
#define STRING_MINIBOX_CLEAR_CLEAR_THE_TERMINAL_SCREEN "MINIBOX clear - Clear the terminal screen."
#define STRING_MINIBOX_COMMAND_ARGUMENTS " MINIBOX Command [Arguments]"
#define STRING_MINIBOX_BEEP_DESCRIPTION "MINIBOX beep - Output sound from PC speaker."
#define STRING_MINIBOX_BEEP_OPTIONS_1 " -f Frequency: Specify sound's frequency."
#define STRING_MINIBOX_BEEP_OPTIONS_2 " -l Length: Specify sound's length as milliseconds."
#define STRING_MINIBOX_BEEP_USAGE " MINIBOX beep [Options]"
#define STRING_MINIBOX_CAT_DESCRIPTION "MINIBOX cat - Output specified file's contents."
#define STRING_MINIBOX_CAT_OPTIONS_1 " -E: Ends are shown as \"$\"."
#define STRING_MINIBOX_CAT_OPTIONS_2 " -T: Tabs are shown as \"^I\"."
#define STRING_MINIBOX_CAT_USAGE " MINIBOX cat [Options] File"
#define STRING_MINIBOX_CLEAR_DESCRIPTION "MINIBOX clear - Clear the terminal screen."
#define STRING_MINIBOX_CP_USAGE " MINIBOX cp Source Destination"
#define STRING_MINIBOX_CP_DESCRIPTION "MINIBOX cp - Copy specified file or directory to specified directory."
#define STRING_MINIBOX_COMMANDS "Minibox Commands:\r\n"
#define STRING_MINIBOX_CP_COPY_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY "MINIBOX cp - Copy specified file or directory to specified directory."
#define STRING_MINIBOX_CP_SOURCE_DESTINATION " MINIBOX cp Source Destination"
#define STRING_MINIBOX_DATE_PRINT_OR_SET_SYSTEM_DATE_AND_TIME "MINIBOX date - Print or set system date and time."
#define STRING_MINIBOX_DATE_S_FORMAT " MINIBOX date [-s] [Format]"
#define STRING_MINIBOX_ECHO_OPTIONS_MESSAGES " MINIBOX echo [Options] Messages"
#define STRING_MINIBOX_ECHO_PRINT_SPECIFIED_MESSAGES "MINIBOX echo - Prints specified messages."
#define STRING_MINIBOX_LINUX_COMMANDS_ON_DOS "MINIBOX - Linux commands on DOS"
#define STRING_MINIBOX_LS_LIST_DIRECTORY_CONTENTS "MINIBOX ls - List directory contents."
#define STRING_MINIBOX_LS_OPTIONS_FILE " MINIBOX ls [Options] [File]"
#define STRING_MINIBOX_MKDIR_CREATES_SPECIFIED_DIRECTORIES "MINIBOX mkdir - Creates specified directories."
#define STRING_MINIBOX_MKDIR_DIRECTORIES " MINIBOX mkdir Directories"
#define STRING_MINIBOX_MV_MOVE_AND_OR_RENAME_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY_1 "MINIBOX mv - Move and/or rename specified"
#define STRING_MINIBOX_MV_MOVE_AND_OR_RENAME_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY_2 "file or directory to specified directory."
#define STRING_MINIBOX_MV_SOURCE_DESTINATION " MINIBOX mv Source Destination"
#define STRING_MINIBOX_PWD_OUTPUT_CURRENT_DIRECTORY_S_NAME "MINIBOX pwd - Output current directory's name."
#define STRING_MINIBOX_RM_REMOVE_SPECIFIED_FILES "MINIBOX rm - Remove specified files."
#define STRING_MINIBOX_RM_R_ITEMS " MINIBOX rm [-r] Items"
#define STRING_MINIBOX_RMDIR_DIRECTORIES " MINIBOX rmdir Directories"
#define STRING_MINIBOX_RMDIR_REMOVE_SPECIFIED_DIRECTORIES "MINIBOX rmdir - Remove specified directories."
#define STRING_MINIBOX_SH_MINIBOX_SHELL "MINIBOX sh - Minibox shell"
#define STRING_MINIBOX_TIME_COMMAND_ARGUMENT " MINIBOX time Command [Argument]"
#define STRING_MINIBOX_TIME_MEASURE_SPECIFIED_COMMAND_S_EXECUTION_TIME_AS_SECOND "MINIBOX time - Measure specified command's execution time as second."
#define STRING_MINIBOX_DATE_DESCRIPTION "MINIBOX date - Print or set system date and time."
#define STRING_MINIBOX_DATE_OPTIONS_1 "-s Set system date and time."
#define STRING_MINIBOX_DATE_OPTIONS_2 "Format Specify fotmatted output string. String format is C printf type."
#define STRING_MINIBOX_DATE_OPTIONS_3 " Example: \"%d-%d-%d %d:%d%:%d\""
#define STRING_MINIBOX_DATE_OPTIONS_4 " Default format is ISO type."
#define STRING_MINIBOX_DATE_USAGE " MINIBOX date [-s] [Format]"
#define STRING_MINIBOX_DESCRIPTION "MINIBOX - Linux commands on DOS"
#define STRING_MINIBOX_ECHO_DESCRIPTION "MINIBOX echo - Prints specified messages."
#define STRING_MINIBOX_ECHO_OPTIONS_1 "-e Prints special characters. Message must be quoted."
#define STRING_MINIBOX_ECHO_OPTIONS_2 " Characters are: \\a \\b \\c \\e \\f \\r \\t \\v"
#define STRING_MINIBOX_ECHO_OPTIONS_3 "-n In addition, prints newline character."
#define STRING_MINIBOX_ECHO_USAGE " MINIBOX echo [Options] Messages"
#define STRING_MINIBOX_LS_DESCRIPTION "MINIBOX ls - List directory contents."
#define STRING_MINIBOX_LS_OPTIONS_1 "-1 Display output as one column."
#define STRING_MINIBOX_LS_OPTIONS_2 "-a Don't ignore \".\" and \"..\"."
#define STRING_MINIBOX_LS_OPTIONS_3 "-l Display long listing format."
#define STRING_MINIBOX_LS_USAGE " MINIBOX ls [Options] [File]"
#define STRING_MINIBOX_MKDIR_DESCRIPTION "MINIBOX mkdir - Creates specified directories."
#define STRING_MINIBOX_MKDIR_USAGE " MINIBOX mkdir Directories"
#define STRING_MINIBOX_MV_DESCRIPTION_1 "MINIBOX mv - Move and/or rename specified"
#define STRING_MINIBOX_MV_DESCRIPTION_2 "file or directory to specified directory."
#define STRING_MINIBOX_MV_USAGE " MINIBOX mv Source Destination"
#define STRING_MINIBOX_PWD_DESCRIPTION "MINIBOX pwd - Output current directory's name."
#define STRING_MINIBOX_RM_DESCRIPTION "MINIBOX rm - Remove specified files."
#define STRING_MINIBOX_RM_OPTION "-r Remove specified directories and their contents recursively."
#define STRING_MINIBOX_RM_USAGE " MINIBOX rm [-r] Items"
#define STRING_MINIBOX_RMDIR_DESCRIPTION "MINIBOX rmdir - Remove specified directories."
#define STRING_MINIBOX_RMDIR_USAGE " MINIBOX rmdir Directories"
#define STRING_MINIBOX_SH_DESCRIPTION "MINIBOX sh - Minibox shell"
#define STRING_MINIBOX_SH_EXIT " In Minibox shell, type command exit \"exit\" to exit shell."
#define STRING_MINIBOX_TIME_DESCRIPTION "MINIBOX time - Measure specified command's execution time as second."
#define STRING_MINIBOX_TIME_USAGE " MINIBOX time Command [Argument]"
#define STRING_MINIBOX_USAGE " MINIBOX Command [Arguments]"
#define STRING_MINIBOX_VERSION "Minibox version: 0.4"
#define STRING_N_IN_ADDITION_PRINTS_NEWLINE_CHARACTER "-n In addition, prints newline character."
#define STRING_NO_ENOUGH_ARGUMENTS "No enough arguments.\r\n"
#define STRING_NO_ENOUGH_ARGUMENTS "No enough arguments."
#define STRING_NOTE "Note:"
#define STRING_OPTION "Option:"
#define STRING_OPTIONS "Options:"
#define STRING_R_REMOVE_SPECIFIED_DIRECTORIES_AND_THEIR_CONTENTS_RECURSIVELY "-r Remove specified directories and their contents recursively."
#define STRING_S_SYSTEM_DATE_AND_TIME "-s Set system date and time."
#define STRING_TOO_MUCH_ARGUMENTS "Too much arguments.\r\n"
#define STRING_T_TABS_ARE_SHOWN_AS " -T: Tabs are shown as \"^I\"."
#define STRING_TOO_MUCH_ARGUMENTS "Too much arguments."
#endif
/**********************************************
* DOS Coreutils Turkish Language Header File *
**********************************************/
/*
* tr.h - Turkish Language header file
* Written by Ercan Ersoy.
*/
#define TR 2
#if LANGUAGE == TR
#define STRING__DISPLAY_OUTPUT_AS_ONE_COLUMN "-1 Bir stun olarak kty grntler."
#define STRING_A_DON_T_IGNORE_AND "-a \".\"'lar ve \"..\"'lar grmezden gelmez."
#define STRING_CAN_T_COPY "%s kopyalanamyor.\r\n"
#define STRING_CAN_T_CREATE "%s oluturulamyor.\r\n"
#define STRING_CAN_T_REMOVE "%s silinemiyor.\r\n"
#define STRING_CHARACTERS_ARE " Karakterler: \\a \\b \\c \\e \\f \\r \\t \\v"
#define STRING_DEFAULT_FORMAT_IS_ISO_TYPE " Varsaylan biim ISO trdr."
#define STRING_DOESN_T_DIRECTORY "%s dizin deil.\r\n"
#define STRING_E_ENDS_ARE_SHOWN_AS " -E: Sonlar \"$\" olarak grnr.."
#define STRING_E_PRINTS_SPECIAL_CHARACTERS_MESSAGE_MUST_BE_QUOTED "-e zel karakterleri yazdrr. leti trnak iine alnmaldr."
#define STRING_EXAMPLE " nrek: \"%d-%d-%d %d:%d%:%d\""
#define STRING_FORMAT_SPECIFIY_FORMATTED_OUTPUT_STRING_STRING_FORMAT_IS_C_PRINTF_TYPE "Biim Tanmlanan biimde szce ktlar. Szce biimi, C printf trdr."
#define STRING_FREQUENCY_SPECIFIY_SOUND_S_FROM_FREQUENCY " -f Frekans: Sesin frekansn tanmlar."
#define STRING_IN_MINIBOX_SHELL_GIVE_COMMAND_EXIT_TO_EXIT_SHELL " Minibox kabuunda kmak iin \"exit\" komutunu verin."
#define STRING_CANNOT_COPY "%s kopyalanamyor.\r\n"
#define STRING_CANNOT_CREATE "%s oluturulamyor.\r\n"
#define STRING_CANNOT_MOVE "%s tanamyor.\r\n"
#define STRING_CANNOT_REMOVE "%s silinemiyor.\r\n"
#define STRING_DOES_NOT_DIRECTORY "%s dizin deil.\r\n"
#define STRING_INVALID_SYNTAX "Geersiz szdizim."
#define STRING_L_DISPLAY_LONG_LISTING_FORMAT "-l Uzun listeleme biiminde grntler."
#define STRING_L_LENGTH_SPECIFIY_SOUND_S_LENGTH_AS_MILLISECONDS " -l Uzunluk: Sesin uzunluunu milisaniye olarak belirtir."
#define STRING_MINIBOX_LS_OPTIONS_FILE " MINIBOX ls [Seenekler] [Dosya]"
#define STRING_MINIBOX_BEEP_OPTIONS " MINIBOX beep [Seenekler]"
#define STRING_MINIBOX_BEEP_OUTPUT_SOUND_FROM_PC_SPEAKER "MINIBOX beep - PC hoparlrnden ses verir."
#define STRING_MINIBOX_CAT_OUTPUT_SPECIFIED_FILE_S_CONTENTS "MINIBOX cat - Tanmlanan dosyann ieriini kt verir."
#define STRING_MINIBOX_CAT_OPTIONS_FILE " MINIBOX cat [Options] File"
#define STRING_MINIBOX_CLEAR_CLEAR_THE_TERMINAL_SCREEN "MINIBOX clear - Ubirim ekrann temizler."
#define STRING_MINIBOX_COMMAND_ARGUMENTS " MINIBOX Komut [Argmanlar]"
#define STRING_MINIBOX_BEEP_DESCRIPTION "MINIBOX beep - PC hoparlrnden ses verir."
#define STRING_MINIBOX_BEEP_OPTIONS_1 " -f Frekans: Sesin frekansn tanmlar."
#define STRING_MINIBOX_BEEP_OPTIONS_2 " -l Uzunluk: Sesin uzunluunu milisaniye olarak belirtir."
#define STRING_MINIBOX_BEEP_USAGE " MINIBOX beep [Seenekler]"
#define STRING_MINIBOX_CAT_DESCRIPTION "MINIBOX cat - Tanmlanan dosyann ieriini kt verir."
#define STRING_MINIBOX_CAT_OPTIONS_1 " -E: Sonlar \"$\" olarak grnr.."
#define STRING_MINIBOX_CAT_OPTIONS_2 " -T: Sekmeler \"^I\" olarak grnr."
#define STRING_MINIBOX_CAT_USAGE " MINIBOX cat [Options] File"
#define STRING_MINIBOX_CLEAR_DESCRIPTION "MINIBOX clear - Ubirim ekrann temizler."
#define STRING_MINIBOX_CP_DESCRIPTION "MINIBOX cp - Tanmlanan dosyan ya da dizini belirtilen dizine kopyalar."
#define STRING_MINIBOX_CP_USAGE " MINIBOX cp Kaynak Hedef"
#define STRING_MINIBOX_COMMANDS "Minibox Komutlar:\r\n"
#define STRING_MINIBOX_CP_COPY_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY "MINIBOX cp - Tanmlanan dosyan ya da dizini belirtilen dizine kopyalar."
#define STRING_MINIBOX_CP_SOURCE_DESTINATION " MINIBOX cp Kaynak Hedef"
#define STRING_MINIBOX_DATE_PRINT_OR_SET_SYSTEM_DATE_AND_TIME "MINIBOX date - System tarihini ve saatini yazdrr ya da deitirir."
#define STRING_MINIBOX_DATE_S_FORMAT " MINIBOX date -s [Biim]"
#define STRING_MINIBOX_ECHO_OPTIONS_MESSAGES " MINIBOX echo [Seenekler] letiler"
#define STRING_MINIBOX_ECHO_PRINT_SPECIFIED_MESSAGES "MINIBOX echo - Belirtilen iletileri yazdrr."
#define STRING_MINIBOX_LINUX_COMMANDS_ON_DOS "MINIBOX - DOS altnda Linux komutlar"
#define STRING_MINIBOX_LS_LIST_DIRECTORY_CONTENTS "MINIBOX ls - Dizin ieriini yazdrr."
#define STRING_MINIBOX_MKDIR_CREATES_SPECIFIED_DIRECTORIES "MINIBOX mkdir - Belirtilen dizinleri oluturur."
#define STRING_MINIBOX_MKDIR_DIRECTORIES " MINIBOX mkdir Dizinler"
#define STRING_MINIBOX_MV_MOVE_AND_OR_RENAME_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY_1 "MINIBOX mv - Tanmlanan dosya ya da dizini"
#define STRING_MINIBOX_MV_MOVE_AND_OR_RENAME_SPECIFIED_FILE_OR_DIRECTORY_TO_SPECIFIED_DIRECTORY_2 "belirtilen dizine tar ve/ya da deitirir."
#define STRING_MINIBOX_MV_SOURCE_DESTINATION " MINIBOX mv Kaynak Hedef"
#define STRING_MINIBOX_PWD_OUTPUT_CURRENT_DIRECTORY_S_NAME "MINIBOX pwd - Geerli dizinin adn yazdrr."
#define STRING_MINIBOX_RM_REMOVE_SPECIFIED_FILES "MINIBOX rm - Belirtilen dizinleri siler."
#define STRING_MINIBOX_RM_R_ITEMS " MINIBOX rm [-r] Elemanlar"
#define STRING_MINIBOX_RMDIR_DIRECTORIES " MINIBOX rmdir Dizinler"
#define STRING_MINIBOX_RMDIR_REMOVE_SPECIFIED_DIRECTORIES "MINIBOX rmdir - Belirtilen dizinleri siler."
#define STRING_MINIBOX_SH_MINIBOX_SHELL "MINIBOX sh - Minibox kabuu"
#define STRING_MINIBOX_TIME_COMMAND_ARGUMENT " MINIBOX time Komut [Argman]"
#define STRING_MINIBOX_TIME_MEASURE_SPECIFIED_COMMAND_S_EXECUTION_TIME_AS_SECOND "MINIBOX time - Belirtilen komutun altrlma zamann saniye olarak ler."
#define STRING_MINIBOX_DATE_DESCRIPTION "MINIBOX date - System tarihini ve saatini yazdrr ya da deitirir."
#define STRING_MINIBOX_DATE_OPTIONS_1 "-s Sistem tarihini ve saatini deitirir."
#define STRING_MINIBOX_DATE_OPTIONS_2 "Biim Tanmlanan biimde szce ktlar. Szce biimi, C printf trdr."
#define STRING_MINIBOX_DATE_OPTIONS_3 " nrek: \"%d-%d-%d %d:%d%:%d\""
#define STRING_MINIBOX_DATE_OPTIONS_4 " Varsaylan biim ISO trdr."
#define STRING_MINIBOX_DATE_USAGE " MINIBOX date -s [Biim]"
#define STRING_MINIBOX_DESCRIPTION "MINIBOX - DOS altnda Linux komutlar"
#define STRING_MINIBOX_ECHO_DESCRIPTION "MINIBOX echo - Belirtilen iletileri yazdrr."
#define STRING_MINIBOX_ECHO_OPTIONS_1 "-e zel karakterleri yazdrr. leti trnak iine alnmaldr."
#define STRING_MINIBOX_ECHO_OPTIONS_2 " Karakterler: \\a \\b \\c \\e \\f \\r \\t \\v"
#define STRING_MINIBOX_ECHO_OPTIONS_3 "-n Ek olarak, yeni satr karakteri yazdrr."
#define STRING_MINIBOX_ECHO_USAGE " MINIBOX echo [Seenekler] letiler"
#define STRING_MINIBOX_LS_DESCRIPTION "MINIBOX ls - Dizin ieriini yazdrr."
#define STRING_MINIBOX_LS_OPTIONS_1 "-1 Bir stun olarak kty grntler."
#define STRING_MINIBOX_LS_OPTIONS_2 "-a \".\"'lar ve \"..\"'lar grmezden gelmez."
#define STRING_MINIBOX_LS_OPTIONS_3 "-l Uzun listeleme biiminde grntler."
#define STRING_MINIBOX_LS_USAGE " MINIBOX ls [Seenekler] [Dosya]"
#define STRING_MINIBOX_MKDIR_DESCRIPTION "MINIBOX mkdir - Belirtilen dizinleri oluturur."
#define STRING_MINIBOX_MKDIR_USAGE " MINIBOX mkdir Dizinler"
#define STRING_MINIBOX_MV_DESCRIPTION_1 "MINIBOX mv - Tanmlanan dosya ya da dizini"
#define STRING_MINIBOX_MV_DESCRIPTION_2 "belirtilen dizine tar ve/ya da deitirir."
#define STRING_MINIBOX_MV_USAGE " MINIBOX mv Kaynak Hedef"
#define STRING_MINIBOX_PWD_DESCRIPTION "MINIBOX pwd - Geerli dizinin adn yazdrr."
#define STRING_MINIBOX_RM_DESCRIPTION "MINIBOX rm - Belirtilen dizinleri siler."
#define STRING_MINIBOX_RM_OPTION "-r Tanmlanan dizinleri ve iindekileri zyinelemeli siler."
#define STRING_MINIBOX_RM_USAGE " MINIBOX rm [-r] Elemanlar"
#define STRING_MINIBOX_RMDIR_DESCRIPTION " MINIBOX rmdir Dizinler"
#define STRING_MINIBOX_RMDIR_USAGE "MINIBOX rmdir - Belirtilen dizinleri siler."
#define STRING_MINIBOX_SH_DESCRIPTION "MINIBOX sh - Minibox kabuu"
#define STRING_MINIBOX_SH_EXIT " Minibox kabuunda kmak iin \"exit\" komutunu verin."
#define STRING_MINIBOX_TIME_DESCRIPTION "MINIBOX time - Belirtilen komutun altrlma zamann saniye olarak ler."
#define STRING_MINIBOX_TIME_USAGE " MINIBOX time Komut [Argman]"
#define STRING_MINIBOX_USAGE " MINIBOX Komut [Argmanlar]"
#define STRING_MINIBOX_VERSION "Minibox srm: 0.4"
#define STRING_N_IN_ADDITION_PRINTS_NEWLINE_CHARACTER "-n Ek olarak, yeni satr karakteri yazdrr."
#define STRING_NO_ENOUGH_ARGUMENTS "Argmanlar yeterli deil.\r\n"
#define STRING_NO_ENOUGH_ARGUMENTS "Argmanlar yeterli deil."
#define STRING_NOTE "Not:"
#define STRING_OPTION "Seenek:"
#define STRING_OPTIONS "Seenekler:"
#define STRING_R_REMOVE_SPECIFIED_DIRECTORIES_AND_THEIR_CONTENTS_RECURSIVELY "-r Tanmlanan dizinleri ve iindekileri zyinelemeli siler."
#define STRING_S_SYSTEM_DATE_AND_TIME "-s Sistem tarihini ve saatini deitirir."
#define STRING_TOO_MUCH_ARGUMENTS "ok fazla argman.\r\n"
#define STRING_T_TABS_ARE_SHOWN_AS " -T: Sekmeler \"^I\" olarak grnr."
#define STRING_TOO_MUCH_ARGUMENTS "ok fazla argman."
#endif
/****************************
* MINIBOX Main Source File *
****************************/
/*
* main.c - Main source file
* Written by Ercan Ersoy.
*/
#include "minibox.h"
......@@ -132,8 +133,8 @@ int main(int argc, char *argv[])
#if HELP
if(!strcmp(argv[1], "--help"))
{
puts(STRING_MINIBOX_LINUX_COMMANDS_ON_DOS);
puts(STRING_MINIBOX_COMMAND_ARGUMENTS);
puts(STRING_MINIBOX_DESCRIPTION);
puts(STRING_MINIBOX_USAGE);
puts(" MINIBOX --help|--version");
puts(" MINIBOX ");
return 0;
......
/****************************
* MINIBOX Main Header File *
****************************/
/*
* minibox.h - Main header file
* Written by Ercan Ersoy.
*/
#include <conio.h>
#include <dirent.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment