From 222b17122b2fa989534c8fbd8004167b72e80fb7 Mon Sep 17 00:00:00 2001 From: superturbocat2001 Date: Mon, 21 Sep 2020 17:47:56 +0000 Subject: [PATCH] Added file for build configuration in linux. git-svn-id: svn://kolibrios.org@8074 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/shell/configure | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 programs/system/shell/configure diff --git a/programs/system/shell/configure b/programs/system/shell/configure new file mode 100755 index 0000000000..3b2e3d3f0f --- /dev/null +++ b/programs/system/shell/configure @@ -0,0 +1,29 @@ +#!/bin/bash +make_gen() +{ + cat .makefile >> makefile +} + +if [[ $1 == "-rus" && $# == 1 ]] + then + echo "Russian language selected!" + echo "#define LANG_RUS 1" > lang.h + echo "DIR=bin/rus" > makefile + make_gen + exit 0 +elif [[ $1 == "-eng" && $# == 1 ]] + then + echo "English language selected!" + echo "#define LANG_ENG 1" > lang.h + echo "DIR=bin/eng" > makefile + make_gen + exit 0 +else + echo "Reference: ./configure + Languages: + -rus - Configure as Russian + -eng - Configure as English" + exit 0 +fi + +