Verified Commit 5b436c84 authored by Aditya Gupta's avatar Aditya Gupta
Browse files

Add comments, including @adig

parent 97b15c22
......@@ -2,6 +2,7 @@
set -e
shopt -s nullglob
# Isme $ROOT ka matlab cookbook/ directory hai
source config.sh
# Variables to be overriden by recipes
......@@ -20,6 +21,7 @@ else
SHASUM="shasum -a 256"
fi
# @adig, pkgar() function is basically a wrapper function that builds the pkgar binary, in cookbook/pkgar cargo package, and runs it with the passed arguments
if [ ! "$(uname -s)" = "Redox" ]
then
function docgen {
......
......@@ -2,9 +2,11 @@
set -e
shopt -s nullglob
# Sets some environment variables for cross compilation, most are same as the one in mk/config.mk but just to be sure they are declared, also checks whether `find` and `stat` are installed
source config.sh
recipes=""
# @adig config.packages.keys() pass kiya tha args me, to matlab jo recipes hamko install krna hai specifically sirf wo pass karenge
for arg in "${@:1}"
do
if [ "$arg" == "--debug" ]
......@@ -15,6 +17,7 @@ do
fi
done
# @adig We already populated recipes, but if `recipes` was empty, so it will be populated will names of all directories (which refer to the package names), in `recipes/` directory, ie. all package names
if [ "$recipes" == "" ]
then
recipes="$(ls -1 recipes)"
......@@ -24,8 +27,10 @@ for recipe in $recipes
do
if [ -e "recipes/$recipe/recipe.toml" ]
then
# @adig In case $recipe/recipe.toml exist karta hai, to ham `cook` binary ka use karenge (code in cookbook/src/bin/cook.rs), cook.rs basically calls cook function, which 1. fetches, 2. builds, 3. packages the package based on recipe.toml config file for that specific packages
target/release/cook "$recipe"
# @adig Currently kisi bhi recipe me stage.tar.gz nahi hai, to ./cook.sh script will do the packaging, and compile a .pkgar file for each package
if [ ! -f "recipes/$recipe/stage.tar.gz" ]
then
echo -e "\033[01;38;5;155mrepo - legacy packaging $recipe\033[0m" >&2
......
Supports Markdown
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