termux-tools: reload-style -> reload-settings
This commit is contained in:
parent
9cd1f0e325
commit
d6d4e8feb0
@ -1,11 +1,11 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://termux.com/
|
||||
TERMUX_PKG_DESCRIPTION="Some tools for Termux"
|
||||
TERMUX_PKG_VERSION=0.12
|
||||
TERMUX_PKG_VERSION=0.13
|
||||
|
||||
termux_step_make_install () {
|
||||
$CXX $CFLAGS $LDFLAGS -std=c++14 -Wall -Wextra -pedantic -Werror $TERMUX_PKG_BUILDER_DIR/*.cpp -o $TERMUX_PREFIX/bin/termux-elf-cleaner
|
||||
|
||||
cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-style,chsh,termux-open-url} $TERMUX_PREFIX/bin/
|
||||
cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-settings,chsh,termux-open-url} $TERMUX_PREFIX/bin/
|
||||
|
||||
sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang
|
||||
}
|
||||
|
12
packages/termux-tools/termux-reload-settings
Executable file
12
packages/termux-tools/termux-reload-settings
Executable file
@ -0,0 +1,12 @@
|
||||
#!/data/data/com.termux/files/usr/bin/sh
|
||||
|
||||
if [ "$#" != "0" ]; then
|
||||
echo 'usage: termux-reload-settings'
|
||||
echo 'Use without arguments to reload settings after modifying either of:'
|
||||
echo ' ~/.termux/colors.properties'
|
||||
echo ' ~/.termux/font.ttf '
|
||||
echo ' ~/.config/termux/termux.properties'
|
||||
exit
|
||||
fi
|
||||
|
||||
LD_LIBRARY_PATH= am broadcast --user 0 -a com.termux.app.reload_style com.termux > /dev/null
|
@ -1,10 +0,0 @@
|
||||
#!/data/data/com.termux/files/usr/bin/sh
|
||||
|
||||
if [ "$#" != "0" ]; then
|
||||
echo 'usage: termux-reload-style'
|
||||
echo ' Use without arguments to reload style after modifying'
|
||||
echo ' $HOME/.termux/colors.properties or $HOME/.termux/font.ttf'
|
||||
exit
|
||||
fi
|
||||
|
||||
LD_LIBRARY_PATH= am broadcast --user 0 -a com.termux.app.reload_style com.termux > /dev/null
|
Loading…
Reference in New Issue
Block a user