Replace separate scripts with Maintainer script
This commit is contained in:
parent
ad4954d5ef
commit
0ff81837f9
26
build.sh
26
build.sh
@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! "$BASH_VERSION" ] ; then
|
||||
bash $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wiBold=$(tput bold)
|
||||
wiNormal=$(tput sgr0)
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "=============================="
|
||||
echo -n "$wiBold"
|
||||
echo " Warén Group "
|
||||
echo -n "$wiNormal"
|
||||
echo "=============================="
|
||||
echo " >> Init << "
|
||||
echo "------------------------------"
|
||||
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
|
||||
chmod +x init.sh &> /dev/null
|
||||
echo " "
|
||||
echo " "
|
||||
echo " "
|
||||
exit 1
|
49
maintainer.sh
Executable file
49
maintainer.sh
Executable file
@ -0,0 +1,49 @@
|
||||
if [ ! "$BASH_VERSION" ] ; then
|
||||
bash $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wiBold=$(tput bold)
|
||||
wiNormal=$(tput sgr0)
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "=============================="
|
||||
echo -n "$wiBold"
|
||||
echo " Warén Group "
|
||||
echo -n "$wiNormal"
|
||||
echo " Init "
|
||||
echo "=============================="
|
||||
echo " >> Maintainer << "
|
||||
echo "------------------------------"
|
||||
|
||||
case $1 in
|
||||
build)
|
||||
echo "Building..."
|
||||
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
|
||||
chmod +x init.sh &> /dev/null
|
||||
;;
|
||||
update)
|
||||
echo "Updating..."
|
||||
cp ../wx/src/functions/header.sh src/functions/header.sh
|
||||
cp ../wx/src/functions/repeat.sh src/functions/repeat.sh
|
||||
cp ../wx/src/commands/login.sh src/functions/login.sh
|
||||
;;
|
||||
ready)
|
||||
echo "Ready"
|
||||
;;
|
||||
*)
|
||||
echo "Initializing..."
|
||||
sleep 3
|
||||
./$0 update
|
||||
sleep 3
|
||||
./$0 build
|
||||
sleep 3
|
||||
./$0 ready
|
||||
;;
|
||||
esac
|
||||
echo " "
|
||||
echo " "
|
||||
echo " "
|
||||
exit 1
|
27
update.sh
27
update.sh
@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! "$BASH_VERSION" ] ; then
|
||||
bash $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wiBold=$(tput bold)
|
||||
wiNormal=$(tput sgr0)
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "=============================="
|
||||
echo -n "$wiBold"
|
||||
echo " Warén Group "
|
||||
echo -n "$wiNormal"
|
||||
echo "=============================="
|
||||
echo " >> Init << "
|
||||
echo "------------------------------"
|
||||
cp ../wx/src/functions/header.sh src/functions/header.sh
|
||||
cp ../wx/src/functions/repeat.sh src/functions/repeat.sh
|
||||
cp ../wx/src/commands/login.sh src/functions/login.sh
|
||||
echo " "
|
||||
echo " "
|
||||
echo " "
|
||||
exit 1
|
Loading…
Reference in New Issue
Block a user