Compare commits

..

2 Commits

Author SHA1 Message Date
912b348f57 v2.2.1 2025-04-25 21:11:12 +05:00
d3d7867736 bootstrap v1.0.2 2025-04-25 21:09:52 +05:00
5 changed files with 18 additions and 14 deletions

View File

@ -1 +1 @@
2.2.0
2.2.1

View File

@ -1,3 +1,6 @@
## 2.2.1
+ updated `bootsrap.sh` to 1.0.2
## 2.2.0
+ **config**: removed slash after `--fullpath-after` in `VALGRIND_ARGS`
+ **config**: removed `CONFIG_VERSION` variable

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
CBUILD_BOOTSTRAP_VERSION=1.0.1
CBUILD_BOOTSTRAP_VERSION=1.0.2
set -eo pipefail
function version_parse {
@ -34,13 +34,14 @@ function print_version_list {
dir_global="/usr/local/share/cbuild"
files=""
if [ -d "$dir_local" ]; then
files+="$(find $dir_local -name 'CBUILD_VERSION')"
files+=$(find "$dir_local" -maxdepth 2 -name 'CBUILD_VERSION')
fi
if [ -d "$dir_global" ]; then
files+="$(find $dir_global -name 'CBUILD_VERSION')"
files+=$(find "$dir_global" -maxdepth 2 -name 'CBUILD_VERSION')
fi
for f in $files; do
cat $f | sed '$a\'
cat $f
echo " at $(dirname $f)"
done | sort -V
}
@ -68,18 +69,18 @@ do
case "${args[i]}" in
'-v' | '--version')
echo "cbuild-bootstrap v$CBUILD_BOOTSTRAP_VERSION"
echo "list of installed cbuild versions:"
print_version_list
exit 0
;;
'-h' | '--help')
print_help
exit 0
;;
'-c' | '--config')
i=$((i+1))
project_config_path="${args[i]}"
;;
'--list-versions')
print_version_list
exit 0
;;
*)
;;
esac
@ -93,9 +94,9 @@ if [ -z "$CBUILD_VERSION" ]; then
else
echo "project config not found"
echo "list of installed cbuild versions:"
versions=$(print_version_list)
echo "$versions"
print_version_list
# cut installation directories from list
versions=$(print_version_list | cut -d ' ' -f 1)
latest_version=$(echo "$versions" | tail -n 1)
echo "select version (default=$latest_version):"
read -r CBUILD_VERSION

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
INSTALLED_CBUILD_VERSION=2.2.0
INSTALLED_CBUILD_VERSION=2.2.1
# set \t size to 4 spaces
tabs 4

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
CBUILD_VERSION=2.2.0
CBUILD_VERSION=2.2.1
PROJECT="%PROJECT_NAME%"
CMP_C="gcc"