mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
cppcheck cleanup
This commit is contained in:
parent
be3c2a0713
commit
d4881b6bc3
2 changed files with 1 additions and 49 deletions
2
Makefile
2
Makefile
|
|
@ -376,7 +376,7 @@ extras: all
|
|||
|
||||
.PHONY: cppcheck
|
||||
cppcheck:
|
||||
$(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance --check-level=exhaustive \
|
||||
$(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance --max-ctu-depth=40 \
|
||||
-i src/firejail/checkcfg.c -i src/firejail/main.c .
|
||||
|
||||
.PHONY: scan-build
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
#!/bin/bash
|
||||
# This file is part of Firejail project
|
||||
# Copyright (C) 2014-2025 Firejail Authors
|
||||
# License GPL v2
|
||||
|
||||
# unpack firejail archive
|
||||
ARCFIREJAIL=`ls *.tar.xz| grep firejail`
|
||||
if [ "$?" -eq 0 ];
|
||||
then
|
||||
echo "preparing $ARCFIREJAIL"
|
||||
DIRFIREJAIL=`basename $ARCFIREJAIL .tar.xz`
|
||||
rm -fr $DIRFIREJAIL
|
||||
tar -xJvf $ARCFIREJAIL
|
||||
cd $DIRFIREJAIL
|
||||
./configure --prefix=/usr
|
||||
cd ..
|
||||
else
|
||||
echo "Error: firejail source archive missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# unpack firetools archive
|
||||
ARCFIRETOOLS=`ls *.tar.bz2 | grep firetools`
|
||||
if [ "$?" -eq 0 ];
|
||||
then
|
||||
echo "preparing $ARCFIRETOOLS"
|
||||
DIRFIRETOOLS=`basename $ARCFIRETOOLS .tar.bz2`
|
||||
rm -fr $DIRFIRETOOLS
|
||||
tar -xjvf $ARCFIRETOOLS
|
||||
cd $DIRFIRETOOLS
|
||||
pwd
|
||||
./configure --prefix=/usr
|
||||
cd ..
|
||||
|
||||
else
|
||||
echo "Error: firetools source archive missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# move firetools in firejail source tree
|
||||
mkdir -p $DIRFIREJAIL/extras
|
||||
mv $DIRFIRETOOLS $DIRFIREJAIL/extras/firetools
|
||||
|
||||
# build
|
||||
cd $DIRFIREJAIL
|
||||
cov-build --dir cov-int make -j "$(nproc)" extras
|
||||
tar czvf myproject.tgz cov-int
|
||||
Loading…
Add table
Add a link
Reference in a new issue