Skip to content

Commit

Permalink
Archimage 2.1
Browse files Browse the repository at this point in the history
Added new sub-options to the last one for /usr/lib to choose whether to include the "swrast_dri" driver (required by some multimedia apps) and other objects based on a list of keywords you include.
  • Loading branch information
ivan-hc authored Nov 27, 2023
1 parent 732878f commit f310161
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions archimage-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

VERSION="2.0"
VERSION="2.1"

DIR="$( cd "$( dirname "$0" )" && pwd )"

Expand Down Expand Up @@ -73,7 +73,7 @@ case "$1" in
case $yn in
[Yy]* ) sed -i 's/#_savebins/_savebins/g' ./$2-junest.sh
echo -e "\n---------------------------------------------------------------------------\n"
read -r -ep "◆ LIST BINARIES TO SAVE BEYOND THE ONE SPECIFIED ABOVE OR LEAVE BLANK $(echo -e '\nDO NOT ADD ASTERISKS, THEY ARE ALREADY PROVIDED TO ALLOW GENERIC SELECTIONS\n:') " savebins
read -r -ep "◆ LIST BINARIES TO SAVE BEYOND THE ONE SPECIFIED ABOVE OR LEAVE BLANK $(echo -e '\n DO NOT ADD ASTERISKS, THEY ARE ALREADY PROVIDED IN THE SCRIPT\n:') " savebins
case "$savebins" in
'');;
*)
Expand All @@ -88,7 +88,7 @@ case "$1" in
case $yn in
[Yy]* ) sed -i 's/#_saveshare/_saveshare/g' ./$2-junest.sh
echo -e "\n---------------------------------------------------------------------------\n"
read -r -ep "◆ LIST FOLDERS TO SAVE $(echo -e '\nDO NOT ADD ASTERISKS, THEY ARE ALREADY PROVIDED TO ALLOW GENERIC SELECTIONS\n:') " saveshare
read -r -ep "◆ LIST FOLDERS TO SAVE OR LEAVE BLANK$(echo -e '\n DO NOT ADD ASTERISKS, THEY ARE ALREADY PROVIDED IN THE SCRIPT\n:') " saveshare
case "$saveshare" in
'');;
*)
Expand All @@ -102,7 +102,27 @@ case "$1" in
case $yn in
[Yy]* ) sed -i 's/#_binlibs/_binlibs/g' ./$2-junest.sh
sed -i 's/#_liblibs/_liblibs/g' ./$2-junest.sh
sed -i 's/#_mvlibs/_mvlibs/g' ./$2-junest.sh;;
sed -i 's/#_mvlibs/_mvlibs/g' ./$2-junest.sh
echo -e "\n---------------------------------------------------------------------------\n"
read -p "◆ DO YOU WANT TO INCLUDE THE /usr/lib/dri/swrast_dri.so DRIVER (y,N)? " yn
case $yn in
[Yy]* ) sed -i 's/#_include_swrast_dri/_include_swrast_dri/g' ./$2-junest.sh;;
[Nn]*|* ) ;;
esac
echo -e "\n---------------------------------------------------------------------------\n"
read -p "◆ DO YOU WANT TO INCLUDE EXTRA ITEMS OF YOUR CHOICE IN /usr/lib (y,N)? " yn
case $yn in
[Yy]* )
echo -e "\n---------------------------------------------------------------------------\n"
read -r -ep "◆ LIST KEYWORDS TO SEARCH AND SAVE IN /usr/lib OR LEAVE BLANK $(echo -e '\n DO NOT ADD ASTERISKS, THEY ARE ALREADY PROVIDED IN THE SCRIPT\n:') " savelibs
case "$savelibs" in
'');;
*)
sed -i "s/SAVELIBSPLEASE/$savelibs/g" ./$2-junest.sh
sed -i 's/#_libkeywords/_libkeywords/g' ./$2-junest.sh;;
esac;;
[Nn]*|* ) ;;
esac;;
[Nn]*|* ) ;;
esac
chmod a+x ./$2-junest.sh
Expand Down

0 comments on commit f310161

Please sign in to comment.