build-package: mv termux_step_create_datatar to scripts/build/
This commit is contained in:
parent
a30a61d417
commit
586e8709fd
@ -113,21 +113,7 @@ termux_step_post_massage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Create data.tar.gz with files to package. Not to be overridden by package scripts.
|
# Create data.tar.gz with files to package. Not to be overridden by package scripts.
|
||||||
termux_step_create_datatar() {
|
source scripts/build/termux_step_create_datatar.sh
|
||||||
# Create data tarball containing files to package:
|
|
||||||
cd "$TERMUX_PKG_MASSAGEDIR"
|
|
||||||
|
|
||||||
local HARDLINKS
|
|
||||||
HARDLINKS="$(find . -type f -links +1)"
|
|
||||||
if [ -n "$HARDLINKS" ]; then
|
|
||||||
termux_error_exit "Package contains hard links: $HARDLINKS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${TERMUX_PKG_METAPACKAGE+x}" ] && [ "$(find . -type f)" = "" ]; then
|
|
||||||
termux_error_exit "No files in package"
|
|
||||||
fi
|
|
||||||
tar -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" .
|
|
||||||
}
|
|
||||||
|
|
||||||
termux_step_create_debscripts() {
|
termux_step_create_debscripts() {
|
||||||
return
|
return
|
||||||
|
15
scripts/build/termux_step_create_datatar.sh
Normal file
15
scripts/build/termux_step_create_datatar.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
termux_step_create_datatar() {
|
||||||
|
# Create data tarball containing files to package:
|
||||||
|
cd "$TERMUX_PKG_MASSAGEDIR"
|
||||||
|
|
||||||
|
local HARDLINKS
|
||||||
|
HARDLINKS="$(find . -type f -links +1)"
|
||||||
|
if [ -n "$HARDLINKS" ]; then
|
||||||
|
termux_error_exit "Package contains hard links: $HARDLINKS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${TERMUX_PKG_METAPACKAGE+x}" ] && [ "$(find . -type f)" = "" ]; then
|
||||||
|
termux_error_exit "No files in package"
|
||||||
|
fi
|
||||||
|
tar -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" .
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user