From: LegendaryGuard Date: Mon, 7 Jun 2021 22:55:35 +0000 (+0000) Subject: Change .sh name, "./" doesn't make sense to read X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=commitdiff_plain;h=e20ed64465bad10d440ce0333c83dffc8666f8ce Change .sh name, "./" doesn't make sense to read --- diff --git a/SMB-modpack.md b/SMB-modpack.md index 1802d4b..d82a1e0 100644 --- a/SMB-modpack.md +++ b/SMB-modpack.md @@ -4,17 +4,17 @@ The modpack build works using a submodule from '_xonotic-dat.pk3dir_' from the o Uses **update.sh** and **build.sh** shell script files. -# How submodule works, ./update.sh and ./build.sh +# How submodule works, update.sh and build.sh Uses '_update.sh_' to obtain the content of '_gmqcc_', '_xonotic-data.pk3dir_' in '_xonotic_' folder and '_csprogs_' in '_.cache_' folder. Clearly, needs gmqcc to be able to compile, this means that '_build.sh_' calls gmqcc to compile the code. -## Submodule and ./update.sh +## Submodule and update.sh The submodule of this modpack was created using: `git submodule add https://gitlab.com/xonotic/xonotic-data.pk3dir xonotic` -The submodule in the repository is used when need to update the code from '_xonotic-data.pk3dir_', to do this if you've a fork or a copy of SMB modpack repository, you'll have to update using (note: in your local computer, you should have used '_./update.sh_' to download fully the content of '_xonotic-data.pk3dir_' in '_xonotic_' folder): +The submodule in the repository is used when need to update the code from '_xonotic-data.pk3dir_', to do this if you've a fork or a copy of SMB modpack repository, you'll have to update using (note: in your local computer, you should have used '_update.sh_' to download fully the content of '_xonotic-data.pk3dir_' in '_xonotic_' folder): `git submodule update --remote --merge` @@ -24,7 +24,7 @@ Inside '_update.sh_', there is a line: `git submodule update --init --depth 100` -Means that when you use '_./update.sh_' with this line, the submodule content will be downloaded in your local computer where you've cloned the modpack repository. +Means that when you use '_update.sh_' with this line, the submodule content will be downloaded in your local computer where you've cloned the modpack repository. ### Commit with submodule @@ -38,8 +38,8 @@ Additionally, after done `git submodule update --remote --merge`, if you want to `git push origin master #depends what origin and what branch of repository you're using to do your commits` -## ./build.sh +## build.sh -'_./build.sh_' compiles all repository code using gmqcc if already downloaded from '_./update.sh_', looks inside '_mod_' folder the similar contents of '_xonotic-data.pk3dir/qcsrc_' where there are: '_client_', '_common_', '_menu_' and '_server_' folders. +'_build.sh_' compiles all repository code using gmqcc if already downloaded from '_update.sh_', looks inside '_mod_' folder the similar contents of '_xonotic-data.pk3dir/qcsrc_' where there are: '_client_', '_common_', '_menu_' and '_server_' folders. What this does is relate the directory path to the submodule '_xonotic_' directory inside the '_qcsrc_' folder. Thanks to this, makes possible to look at the '_mod_' folder having to relate the submodule directory '_xonotic/qcsrc_'. \ No newline at end of file