aboutsummaryrefslogtreecommitdiff
path: root/system/slapt-get/doinst.sh
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2023-05-25 23:51:19 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-27 08:08:49 +0700
commit0fc6687f3ce81ca7177a9ce913eb7ca74e4c2a72 (patch)
treeeb44869713523efb685dd12e47a76b52ec28343e /system/slapt-get/doinst.sh
parent35124212c6e8ced9cf76716924672caf70070031 (diff)
system/slapt-get: Added (apt-get for pkgtool)
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/slapt-get/doinst.sh')
-rw-r--r--system/slapt-get/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/slapt-get/doinst.sh b/system/slapt-get/doinst.sh
new file mode 100644
index 0000000000000..77fdeff5358f1
--- /dev/null
+++ b/system/slapt-get/doinst.sh
@@ -0,0 +1,12 @@
+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