💬 Comments

This commit is contained in:
Travis CI 2019-12-21 20:33:34 +05:30
parent 6ab1eccd7e
commit 2a6bbef091
4 changed files with 28 additions and 28 deletions

View file

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
#
#Bibata Build # Bibata Build
#
#Released under the GNU General Public License, version 3. # Released under the GNU General Public License, version 3.
#Author : KAiZ # Author : KAiZ
#
echo -e "\n" echo -e "\n"
echo -e " ██████╗ ██╗██████╗ █████╗ ████████╗ █████╗ " echo -e " ██████╗ ██╗██████╗ █████╗ ████████╗ █████╗ "
@ -15,8 +15,8 @@ echo -e " ██████╔╝██║██████╔╝██║
echo -e " ╚═════╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ " echo -e " ╚═════╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ "
echo -e "\n" echo -e "\n"
#functions # functions
#Color print function # Color print function
show_Msg() { show_Msg() {
echo -e "\033[1;37m$@\033[0m" echo -e "\033[1;37m$@\033[0m"
} }
@ -58,10 +58,10 @@ selectWithDefault() {
} }
build(){ build(){
#get name of theme by argument # get name of theme by argument
cursor=$1 cursor=$1
#building cursor with python script # building cursor with python script
show_pre "\n"$cursor" : Generating bitmaps...\\r" show_pre "\n"$cursor" : Generating bitmaps...\\r"
# if cursors source folder & file doesn't exist # if cursors source folder & file doesn't exist
@ -71,7 +71,7 @@ build(){
error "\nAborting..." error "\nAborting..."
exit 1 exit 1
else else
#for removing old build bitmaps(Not Recommended) # for removing old build bitmaps(Not Recommended)
# if [ "$cursor" ]; # if [ "$cursor" ];
# then # then
# show_pre "\nRemoving Old Build Files...\\r" # show_pre "\nRemoving Old Build Files...\\r"
@ -87,8 +87,8 @@ build(){
# fi # fi
# fi # fi
#-o for genrating hotspots # -o for genrating hotspots
#-a for genrating config files # -a for genrating config files
python render-cursors.py ./src/"$cursor"/source-cursors.svg -o -a --name $cursor python render-cursors.py ./src/"$cursor"/source-cursors.svg -o -a --name $cursor
# $? = is the exit status of the most recently-executed command; by convention, 0 means success and anything else indicates failure. # $? = is the exit status of the most recently-executed command; by convention, 0 means success and anything else indicates failure.
if [ $? -eq 0 ] if [ $? -eq 0 ]
@ -112,9 +112,9 @@ build(){
exit 1 exit 1
fi fi
show_pre "\n"$cursor" : Building X11 cursor...\\r" show_pre "\n"$cursor" : Building X11 cursor...\\r"
#execute x11-make.sh file with theme_name argument # execute x11-make.sh file with theme_name argument
sh x11-make.sh "$cursor" sh x11-make.sh "$cursor"
#Copy .index files to out/$cursor # Copy .index files to out/$cursor
cp src/"$cursor"/*.theme "$cursor"/out/X11/"$cursor" cp src/"$cursor"/*.theme "$cursor"/out/X11/"$cursor"
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
@ -127,7 +127,7 @@ build(){
fi fi
show_pre "\n"$cursor" : Building Window cursor...\\r" show_pre "\n"$cursor" : Building Window cursor...\\r"
#execute x11-make.sh file with theme_name argument # execute x11-make.sh file with theme_name argument
sh w32-make.sh "$cursor" sh w32-make.sh "$cursor"
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
@ -176,9 +176,9 @@ installer(){
fi fi
} }
#main program # main program
#Requirment checking # Requirment checking
show_pre "Checking Requirements...\\r" show_pre "Checking Requirements...\\r"
if ! type "inkscape" > /dev/null ; then if ! type "inkscape" > /dev/null ; then
@ -202,7 +202,7 @@ if ! command pip &>/dev/null; then
fi fi
show "Checking Requirements... DONE" show "Checking Requirements... DONE"
#Install pip requirments # Install pip requirments
show_pre "Installing PiP Requirements...\\r" show_pre "Installing PiP Requirements...\\r"
if [ ! "requirements.txt" ]; if [ ! "requirements.txt" ];
@ -224,7 +224,7 @@ else
fi fi
#choice for build cursor # choice for build cursor
selection "Cursor to build (Default is 'ALL')?" selection "Cursor to build (Default is 'ALL')?"
cursors=("Bibata_Classic" "Bibata_Oil" "Bibata_Ice" "Bibata_Amber" "ALL" exit ) cursors=("Bibata_Classic" "Bibata_Oil" "Bibata_Ice" "Bibata_Amber" "ALL" exit )
cursor=$(selectWithDefault "${cursors[@]}") cursor=$(selectWithDefault "${cursors[@]}")

View file

@ -8,7 +8,7 @@ animate_fix(){
sort -k 4 -o "$path" "$path" sort -k 4 -o "$path" "$path"
mv -f "$path" "$path.bak" mv -f "$path" "$path.bak"
#j for total size 24,28,32,40,48,56,64,72,80,88,96 = 11 # j for total size 24,28,32,40,48,56,64,72,80,88,96 = 11
for j in {1..11} for j in {1..11}
do do
for i in {1..60} for i in {1..60}
@ -21,7 +21,7 @@ animate_fix(){
# echo "$line" # echo "$line"
echo "$line" >> $path echo "$line" >> $path
#echo "$line" # echo "$line"
done done
done done
@ -39,7 +39,7 @@ else
fi fi
#if script generate error or success # if script generate error or success
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
exit 1 exit 1

View file

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
#get theme name from argument # get theme name from argument
THEME=$1 THEME=$1
#current Directory path # current Directory path
DIR="../.." DIR="../.."
# $@ is for the caller to be able to supply arguments to anicursorgen (-s, in particular) # $@ is for the caller to be able to supply arguments to anicursorgen (-s, in particular)
@ -77,7 +77,7 @@ ${GEN} xterm$s.in $DIR/"$THEME"/out/win/xterm.cur
${GEN} zoom-in$s.in $DIR/"$THEME"/out/win/zoom-in.cur ${GEN} zoom-in$s.in $DIR/"$THEME"/out/win/zoom-in.cur
${GEN} zoom-out$s.in $DIR/"$THEME"/out/win/zoom-out.cur ${GEN} zoom-out$s.in $DIR/"$THEME"/out/win/zoom-out.cur
#if script generate error or success # if script generate error or success
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
exit 1 exit 1

View file

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
#get theme name from argument # get theme name from argument
THEME=$1 THEME=$1
#current Directory path # current Directory path
DIR="../.." DIR="../.."
# enter bitmaps folder # enter bitmaps folder