Compare commits
2 commits
0ad2f8c5f6
...
be014305fe
Author | SHA1 | Date | |
---|---|---|---|
be014305fe | |||
68754482dc |
1 changed files with 18 additions and 12 deletions
30
fenix-fox.sh
30
fenix-fox.sh
|
@ -31,11 +31,18 @@ enable_profile_customizations() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
takebackup() {
|
||||||
|
echo "Copy files in place and enable fenix-fox"
|
||||||
|
if [ -d "${installdir}/chrome" ]; then
|
||||||
|
echo "dir chrome already there, take backup"
|
||||||
|
mv $installdir/chrome $installdir/chrome.`date +%Y%m%d-%H%M%S`
|
||||||
|
fi
|
||||||
|
}
|
||||||
installcss() {
|
installcss() {
|
||||||
if [[ ! -n "$2" ]]; then
|
if [[ ! -n "$arg2" ]]; then
|
||||||
config="true-mobile"
|
config="true-mobile"
|
||||||
else
|
else
|
||||||
config=$1
|
config=$arg2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $config in
|
case $config in
|
||||||
|
@ -58,10 +65,7 @@ installcss() {
|
||||||
|
|
||||||
deploy_fenix_fox() {
|
deploy_fenix_fox() {
|
||||||
echo "Copy files in place and enable fenix-fox"
|
echo "Copy files in place and enable fenix-fox"
|
||||||
if [ -d "${installdir}/chrome" ]; then
|
takebackup
|
||||||
echo "dir chrome already there, take backup"
|
|
||||||
mv $installdir/chrome $installdir/chrome.original
|
|
||||||
fi
|
|
||||||
mkdir $installdir/chrome
|
mkdir $installdir/chrome
|
||||||
cp -r src/userChrome/fenix_fox.css $installdir/chrome/
|
cp -r src/userChrome/fenix_fox.css $installdir/chrome/
|
||||||
cp -r src/userChrome/dynamic_popups_pro.css $installdir/chrome/
|
cp -r src/userChrome/dynamic_popups_pro.css $installdir/chrome/
|
||||||
|
@ -71,12 +75,9 @@ deploy_fenix_fox() {
|
||||||
|
|
||||||
deploy_true_mobile() {
|
deploy_true_mobile() {
|
||||||
echo "Copy files in place and enable true-mobile"
|
echo "Copy files in place and enable true-mobile"
|
||||||
if [ -d "${installdir}/chrome" ]; then
|
takebackup
|
||||||
echo "dir chrome already there, take backup"
|
|
||||||
mv $installdir/chrome $installdir/chrome.original
|
|
||||||
fi
|
|
||||||
mkdir $installdir/chrome
|
mkdir $installdir/chrome
|
||||||
cp src/userChrome/{true_mobile_landscape.css,appMenu.css,editBookmarkPanel.css,findbar.css,popups.css,root.css,tabmenu.css,urlbar.css,extensions_menu.css,alt-browser-alt.css,custom_rules.css,iconized_main_menu.css,round_ui_items.css,numbered_tabs.css,tab_counter.css,true_mobile_mode.css,dynamic_popups_pro.css} $installdir/chrome
|
cp src/userChrome/* $installdir/chrome/
|
||||||
cp src/userChrome/userChrome-true-mobile.css $installdir/chrome/userChrome.css
|
cp src/userChrome/userChrome-true-mobile.css $installdir/chrome/userChrome.css
|
||||||
cp src/userContent/theme-fenix.css $installdir/chrome/userContent.css
|
cp src/userContent/theme-fenix.css $installdir/chrome/userContent.css
|
||||||
}
|
}
|
||||||
|
@ -96,7 +97,12 @@ clonerepo() {
|
||||||
#
|
#
|
||||||
## Main
|
## Main
|
||||||
#
|
#
|
||||||
case "$1" in
|
|
||||||
|
# fix not passing by arguments
|
||||||
|
arg1=$1
|
||||||
|
arg2=$2
|
||||||
|
|
||||||
|
case "$arg1" in
|
||||||
--install)
|
--install)
|
||||||
enable_profile_customizations
|
enable_profile_customizations
|
||||||
installcss
|
installcss
|
||||||
|
|
Loading…
Reference in a new issue