mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
create-mkspec.sh: Use jw-projects.py os-cascade
In the os_cascade() function, don't roll own logic, call the richer jw-projects.py projects os-cascade instead. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
917f56a814
commit
dd5adbfcfc
1 changed files with 2 additions and 9 deletions
|
|
@ -41,21 +41,14 @@ subpackage_description()
|
||||||
|
|
||||||
os_cascade()
|
os_cascade()
|
||||||
{
|
{
|
||||||
# might want to run python3 path/to/jw-projects.py --os=suse-tumbleweed projects os-cascade
|
/usr/bin/python3 $JWB_SCRIPT_DIR/jw-projects.py projects os-cascade
|
||||||
# or turn this into a python script and use jw-projects.py as a module.
|
|
||||||
|
|
||||||
if [ "$DISTRIBUTION" ]; then
|
|
||||||
echo os linux $DISTRIBUTION | sed 's/\([^-]\+\)-\([^-]\+\)/\1 \1-\2/g'
|
|
||||||
else
|
|
||||||
echo os linux
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# -- here we go
|
# -- here we go
|
||||||
|
|
||||||
echo "== running $0" "$@" >&2
|
echo "== running $0" "$@" >&2
|
||||||
|
|
||||||
export LANG=POSIX
|
export LANG=POSIX
|
||||||
|
export JWB_SCRIPT_DIR=$JWB_SCRIPT_DIR
|
||||||
dir=`dirname $0`
|
dir=`dirname $0`
|
||||||
inifile="$1"
|
inifile="$1"
|
||||||
. $dir/ini-tools.sh
|
. $dir/ini-tools.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue