Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
b5fa7084b2 | |||
7eabdb0e46 | |||
10c013bf33 | |||
74618d77a5 |
3
Makefile
3
Makefile
@@ -41,7 +41,8 @@ PKG_BIN = \
|
|||||||
bin/pkg/signpkg \
|
bin/pkg/signpkg \
|
||||||
bin/pkg/checkrepo \
|
bin/pkg/checkrepo \
|
||||||
bin/pkg/gitearepo \
|
bin/pkg/gitearepo \
|
||||||
bin/pkg/tidyarch
|
bin/pkg/tidyarch \
|
||||||
|
bin/pkg/mkdepgraph
|
||||||
|
|
||||||
LN_COMMITPKG = \
|
LN_COMMITPKG = \
|
||||||
extrapkg \
|
extrapkg \
|
||||||
|
@@ -39,7 +39,7 @@ get_group() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compare_m(){
|
compare_m(){
|
||||||
if [ "$result" -eq 0 ];then
|
# if [ "$result" -eq 0 ];then
|
||||||
case "$artixrepo" in
|
case "$artixrepo" in
|
||||||
*testing*|*staging*|*rebuild)
|
*testing*|*staging*|*rebuild)
|
||||||
if [[ "${archrepo}" == "${artixrepo}" ]]; then
|
if [[ "${archrepo}" == "${artixrepo}" ]]; then
|
||||||
@@ -56,7 +56,7 @@ compare_m(){
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
# fi
|
||||||
}
|
}
|
||||||
|
|
||||||
compare_u(){
|
compare_u(){
|
||||||
|
59
bin/pkg/mkdepgraph.in
Normal file
59
bin/pkg/mkdepgraph.in
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (C) 2018-19 artoo@artixlinux.org
|
||||||
|
# Copyright (C) 2018 Artix Linux Developers
|
||||||
|
#
|
||||||
|
# This program 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; version 2 of the License.
|
||||||
|
#
|
||||||
|
# This program 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.
|
||||||
|
|
||||||
|
mk_graph(){
|
||||||
|
printf "%s\n" "$(pactree "${pactree_args[@]}" "${package}")" \
|
||||||
|
| dot -T "${ext}" > "${graph_dir}/${package}.${ext}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
printf "Usage: %s [options] <package>\n" "${0##*/}"
|
||||||
|
printf " -l enable linear output\n"
|
||||||
|
printf " -r list packages that depend on the named package\n"
|
||||||
|
printf " -u show dependencies with no duplicates (implies -l)\n"
|
||||||
|
printf " -d <#> limit the depth of recursion\n"
|
||||||
|
printf " -o <#> controls at which depth to stop printing optional deps\n"
|
||||||
|
printf " (-1 for no limit)\n"
|
||||||
|
printf " -h display this help message\n"
|
||||||
|
exit "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
graph_dir=${XDG_PICTURES_DIR:-$(xdg-user-dir PICTURES)/artix}
|
||||||
|
ext="png"
|
||||||
|
|
||||||
|
pactree_args=(-gs)
|
||||||
|
|
||||||
|
depth=0
|
||||||
|
optdepth=-1
|
||||||
|
|
||||||
|
while getopts :d:o:rluh arg; do
|
||||||
|
case "${arg}" in
|
||||||
|
r) pactree_args+=(-r) ;;
|
||||||
|
l) pactree_args+=(-l) ;;
|
||||||
|
u) pactree_args+=(-u) ;;
|
||||||
|
d) depth="$OPTARG"; pactree_args+=(-d "$depth") ;;
|
||||||
|
o) optdepth="$OPTARG"; pactree_args+=(-o"$optdepth") ;;
|
||||||
|
h|?) usage 0 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift $(( OPTIND - 1 ))
|
||||||
|
|
||||||
|
package="$1"
|
||||||
|
|
||||||
|
if [[ ! -d "${graph_dir}" ]];then
|
||||||
|
mkdir -p "${graph_dir}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mk_graph
|
@@ -45,12 +45,13 @@ CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
|
|||||||
-fstack-clash-protection -fcf-protection"
|
-fstack-clash-protection -fcf-protection"
|
||||||
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
||||||
|
LTOFLAGS="-flto=auto"
|
||||||
#RUSTFLAGS="-C opt-level=2"
|
#RUSTFLAGS="-C opt-level=2"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
#MAKEFLAGS="-j2"
|
#MAKEFLAGS="-j2"
|
||||||
#-- Debugging flags
|
#-- Debugging flags
|
||||||
DEBUG_CFLAGS="-g"
|
DEBUG_CFLAGS="-g"
|
||||||
DEBUG_CXXFLAGS="-g"
|
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
|
||||||
#DEBUG_RUSTFLAGS="-C debuginfo=2"
|
#DEBUG_RUSTFLAGS="-C debuginfo=2"
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
Reference in New Issue
Block a user