mirror of
https://github.com/KeithDHedger/LFSDesktopProject.git
synced 2026-01-13 05:42:05 +00:00
69 lines
2.2 KiB
Bash
Executable File
69 lines
2.2 KiB
Bash
Executable File
#!/bin/bash -e
|
|
#
|
|
#©K. D. Hedger. Tue 31 Jul 13:33:01 BST 2018 keithdhedger@gmail.com
|
|
#
|
|
#This file (makeall) is part of LFSDesktopProject.
|
|
#
|
|
#LFSDesktopProject is free software: you can redistribute it and/or modify
|
|
#it under the terms of the GNU General Public License as published by
|
|
#the Free Software Foundation, either version 3 of the License, or
|
|
#at your option) any later version.
|
|
#
|
|
#LFSDesktopProject is distributed in the hope that it will be useful,
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
#GNU General Public License for more details.
|
|
#
|
|
#You should have received a copy of the GNU General Public License
|
|
#along with LFSDesktopProject. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
#
|
|
#Debug stuff
|
|
#CPPFLAGS="-Wunused -Wunreachable-code -Werror -ffunction-sections -fdata-sections -Wno-error=int-to-pointer-cast -Wno-error=sign-compare -Wno-error=unused-function -Wno-error=write-strings" LDFLAGS=" -Wl,--gc-sections,--print-gc-sections " ./configure --prefix=/usr
|
|
#CPPFLAGS="-Wunused -Wunreachable-code -Werror -ffunction-sections -fdata-sections -Wno-error=int-to-pointer-cast" LDFLAGS=" -Wl,--gc-sections,--print-gc-sections " ./configure --prefix=/usr
|
|
#make 2>&1|grep -i "Removing unused section"|grep -i "/src/"
|
|
#
|
|
|
|
action="$@"
|
|
RED='\e[0;31m'
|
|
GREEN='\e[0;32m'
|
|
BLACK='\e[0;30m'
|
|
BLUE='\e[0;34m'
|
|
NORMAL="\e[0;0m"
|
|
|
|
runCommand ()
|
|
{
|
|
for app in "LFSToolKit" "LFSWManager" "LFSDesktop" "LFSSetWallpaper" "LFSApplications" "LFSPanel"
|
|
do
|
|
pushd $app
|
|
echo -e "${RED}Running $1 in ${GREEN}$app${RED} ... ${NORMAL}"
|
|
$1||true
|
|
popd
|
|
done
|
|
}
|
|
|
|
if [ "X$action" = "Xdeploy" ];then
|
|
runCommand "sudo make distclean"
|
|
runCommand "./configure --prefix=/usr"
|
|
runCommand "sudo make uninstall"
|
|
runCommand "sudo make -j4 install"
|
|
exit 0
|
|
fi
|
|
|
|
if [ "X$action" = "Xdeploy-test" ];then
|
|
runCommand "make distclean"
|
|
runCommand "./configure --prefix=/usr"
|
|
runCommand "make -j4 install DESTDIR=/tmp/lfsdesktop"
|
|
exit 0
|
|
fi
|
|
|
|
|
|
for app in "LFSToolKit" "LFSWManager" "LFSDesktop" "LFSSetWallpaper" "LFSApplications" "LFSPanel"
|
|
do
|
|
pushd $app
|
|
echo -e "${RED}Running $action in ${GREEN}$app${RED} ... ${NORMAL}"
|
|
$action||true
|
|
popd
|
|
done
|