Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tools
development-tools
manjaro-tools
Commits
1a488fc9
Commit
1a488fc9
authored
Jun 17, 2016
by
Philip Müller
Browse files
Merge branch 'master' into stable-0.12.x
parents
e0dfc441
f65d087a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
1a488fc9
Version
=
0.12.
0
Version
=
0.12.
1
PREFIX
=
/usr/local
SYSCONFDIR
=
/etc
...
...
bin/buildiso.in
View file @
1a488fc9
...
...
@@ -102,8 +102,7 @@ display_settings(){
load_user_info
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
||
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
# to force old way to have buildiso run in iso-profiles dir
# run_dir=$(pwd)
...
...
@@ -169,6 +168,12 @@ done
shift
$((
$OPTIND
-
1
))
for
sig
in
TERM HUP QUIT
;
do
trap
"trap_exit
$sig
\"
$(
gettext
"%s signal caught. Exiting..."
)
\"
\"
$sig
\"
"
"
$sig
"
done
trap
'trap_exit INT "$(gettext "Aborted by user! Exiting...")"'
INT
trap
'trap_exit USR1 "$(gettext "An unknown error has occurred. Exiting...")"'
ERR
timer_start
=
$(
get_timer
)
check_root
"
$0
"
"
${
orig_argv
[@]
}
"
...
...
bin/buildpkg.in
View file @
1a488fc9
...
...
@@ -73,11 +73,8 @@ display_settings(){
load_user_info
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
load_vars
"
$USER_HOME
/.makepkg.conf"
load_vars /etc/makepkg.conf
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
||
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
load_vars
"
$USER_HOME
/.makepkg.conf"
||
load_vars /etc/makepkg.conf
install_pkgs
=()
...
...
bin/buildtree.in
View file @
1a488fc9
...
...
@@ -36,8 +36,7 @@ display_settings(){
load_user_info
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
||
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
sync
=
false
pretend
=
false
...
...
bin/deployiso.in
View file @
1a488fc9
...
...
@@ -67,8 +67,7 @@ display_settings(){
load_user_info
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
||
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
run_dir
=
${
cache_dir_iso
}
...
...
bin/manjaro-chroot.in
View file @
1a488fc9
...
...
@@ -35,8 +35,7 @@ display_settings(){
load_user_info
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
load_config
"
${
USERCONFDIR
}
/manjaro-tools.conf"
||
load_config
"
${
SYSCONFDIR
}
/manjaro-tools.conf"
automount
=
false
pretend
=
false
...
...
bin/mkchrootpkg.in
View file @
1a488fc9
...
...
@@ -292,8 +292,7 @@ move_products() {
umask
0022
load_vars
"
$USER_HOME
/.makepkg.conf"
load_vars /etc/makepkg.conf
load_vars
"
$USER_HOME
/.makepkg.conf"
||
load_vars /etc/makepkg.conf
# Use PKGBUILD directory if these don't exist
[[
-d
$PKGDEST
]]
||
PKGDEST
=
$PWD
...
...
lib/util-iso.sh
View file @
1a488fc9
...
...
@@ -46,7 +46,7 @@ run_safe() {
set
-e
set
-E
restoretrap
=
$(
trap
-p
ERR
)
trap
'error_function $func'
ERR
SIGINT SIGTERM
trap
'error_function $func'
ERR
if
${
verbose
}
;
then
run_log
"
$func
"
...
...
@@ -59,6 +59,14 @@ run_safe() {
set
+e
}
trap_exit
()
{
local
sig
=
$1
;
shift
error
"
$@
"
umount_image
trap
--
"
$sig
"
kill
"-
$sig
"
"
$$
"
}
# $1: image path
make_sqfs
()
{
if
[[
!
-d
"
$1
"
]]
;
then
...
...
lib/util-pkg.sh
View file @
1a488fc9
...
...
@@ -250,23 +250,23 @@ move_to_cache(){
mv
$src
${
pkg_dir
}
/
${
sign
}
&&
sign_pkg
"
${
src
##*/
}
"
chown
-R
"
${
OWNER
}
:users"
"
${
pkg_dir
}
"
}
archive_logs
(){
local
archive
name
=
"
$1
"
ext
=
log.tar.xz ver
src
=
${
tmp_dir
}
/archives.list
local
archive
name
=
"
$1
"
ext
=
log.tar.xz ver
src
=
${
tmp_dir
}
/archives.list
target
=
'.'
ver
=
$(
get_full_version
"
$name
"
)
archive
=
"
${
name
}
-
${
ver
}
-
${
target_arch
}
"
find
.
-maxdepth
1
-name
"
$archive
*.log"
>
$src
msg2
"Archiving log files [%s] ..."
"
$archive
.
$ext
"
tar
-cJf
${
log_dir
}
/
$archive
.
$ext
-T
$src
msg2
"Cleaning log files ..."
if
[[
-z
$LOGDEST
]]
;
then
find
.
-maxdepth
1
-name
"
$archive
*.log"
-delete
chown
"
${
OWNER
}
:users"
"
$archive
.
$ext
"
if
[[
-n
$LOGDEST
]]
;
then
target
=
$LOGDEST
find
$target
-maxdepth
1
-name
"
$archive
*.log"
-printf
"%f
\n
"
>
$src
else
find
$LOGDEST
-maxdepth
1
-name
"
$archive
*.log"
-delete
find
$target
-maxdepth
1
-name
"
$archive
*.log"
>
$src
fi
msg2
"Archiving log files [%s] ..."
"
$archive
.
$ext
"
tar
-cJf
${
log_dir
}
/
$archive
.
$ext
-C
"
$target
"
-T
$src
msg2
"Cleaning log files ..."
find
$target
-maxdepth
1
-name
"
$archive
*.log"
-delete
}
post_build
(){
...
...
@@ -281,7 +281,6 @@ post_build(){
src
=
$pkg
-
$ver
-
$tarch
.
$ext
move_to_cache
"
$src
"
done
local
name
=
${
pkgbase
:-
$pkgname
}
archive_logs
"
$name
"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment