slackbuilds_ponce/system/slapt-get/doinst.sh
Vijay Marcel 0fc6687f3c
system/slapt-get: Added (apt-get for pkgtool)
Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-05-27 08:08:49 +07:00

12 lines
403 B
Bash

if [ ! -d etc/slapt-get ]; then
mkdir -p etc/slapt-get
fi
if [ -f etc/slapt-getrc -a ! -f etc/slapt-get/slapt-getrc ]; then
mv -f etc/slapt-getrc etc/slapt-get/slapt-getrc
fi
if [ ! -f etc/slapt-get/slapt-getrc ]; then
mv -f etc/slapt-get/slapt-getrc.new etc/slapt-get/slapt-getrc
else cmp etc/slapt-get/slapt-getrc etc/slapt-get/slapt-getrc.new >/dev/null 2>&1 && rm etc/slapt-get/slapt-getrc.new
fi