mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
Everywhere: Remove everything non-essential for "make clean all"
This commit removes everything not strictly necessary for running "make clean all" inside jw-build. packaging jw-devtest. This cuts the repo down from 24077 to 4725 lines of code. The idea is to 1) Further remove bloat from the remaining bits 2) Re-add what's necessary to build and package other essential repos. The decision should be based on whether or not jw-build can also be useful in a non-janware context. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c36c83c164
commit
bc883deed4
199 changed files with 0 additions and 18851 deletions
|
|
@ -1,56 +0,0 @@
|
|||
ini_section()
|
||||
{
|
||||
local inifile="$1"
|
||||
local sec="$2"
|
||||
cat "$inifile" |
|
||||
cut -d\# -f1 |
|
||||
tr -s '\n' '\n' |
|
||||
sed -n "/^ *\[$sec\]/,/^ *\[/ p" |
|
||||
grep -v '^ *\[' |
|
||||
sed '/^ *$/ d'
|
||||
}
|
||||
|
||||
ini_value()
|
||||
{
|
||||
local inifile="$1"
|
||||
local path="$2"
|
||||
local sec=`echo "$path" | sed 's/\.[^.]\+$//'`
|
||||
local key=`echo "$path" | sed 's/.*\.//'`
|
||||
|
||||
# echo "path=>$path<"
|
||||
# echo "sec=>$sec<"
|
||||
# echo "key=>$key<"
|
||||
|
||||
if [ "$key" = "$path" ]; then
|
||||
ini_section "$inifile" "$path"
|
||||
return 0
|
||||
fi
|
||||
|
||||
ini_section "$inifile" "$sec" | sed "
|
||||
/^ *$key *=/ !d
|
||||
s/^ *$key *= *//
|
||||
s/ *$//
|
||||
/^ *$/ d
|
||||
"
|
||||
}
|
||||
|
||||
ini_has_section()
|
||||
{
|
||||
local inifile="$1"
|
||||
local sec="$2"
|
||||
grep -q "^ *\[$sec\]" $inifile || return 1
|
||||
}
|
||||
|
||||
ini_has_value()
|
||||
{
|
||||
ini_value $@ | grep -q .
|
||||
}
|
||||
|
||||
ini_escape()
|
||||
{
|
||||
cat | sed '
|
||||
s/\$/\\$/g
|
||||
s/`/\\\`/g
|
||||
'
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue