aboutsummaryrefslogtreecommitdiffstats
path: root/firefly-cli
diff options
context:
space:
mode:
Diffstat (limited to 'firefly-cli')
-rw-r--r--firefly-cli/doinst.sh14
-rw-r--r--firefly-cli/firefly-cli.SlackBuild6
-rw-r--r--firefly-cli/firefly-cli.info6
3 files changed, 22 insertions, 4 deletions
diff --git a/firefly-cli/doinst.sh b/firefly-cli/doinst.sh
new file mode 100644
index 0000000..9514c89
--- /dev/null
+++ b/firefly-cli/doinst.sh
@@ -0,0 +1,14 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/bash_completion.d/firefly.new
diff --git a/firefly-cli/firefly-cli.SlackBuild b/firefly-cli/firefly-cli.SlackBuild
index c58a9f7..3cef043 100644
--- a/firefly-cli/firefly-cli.SlackBuild
+++ b/firefly-cli/firefly-cli.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=firefly-cli
-VERSION=${VERSION:-0.1.0}
+VERSION=${VERSION:-0.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -68,6 +68,9 @@ find -L . \
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
+mkdir -p $PKG/etc/bash_completion.d
+cat completions/firefly.bash > $PKG/etc/bash_completion.d/firefly.new
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE README.md SKILL.md \
@@ -76,6 +79,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/firefly-cli/firefly-cli.info b/firefly-cli/firefly-cli.info
index f237090..2b92525 100644
--- a/firefly-cli/firefly-cli.info
+++ b/firefly-cli/firefly-cli.info
@@ -1,8 +1,8 @@
PRGNAM="firefly-cli"
-VERSION="0.1.0"
+VERSION="0.2.1"
HOMEPAGE="https://git.danix.xyz/firefly-cli/"
-DOWNLOAD="https://github.com/danixland/firefly-cli/archive/v0.1.0/firefly-cli-0.1.0.tar.gz"
-MD5SUM="98abd3f781cab671184e014af179788d"
+DOWNLOAD="https://github.com/danixland/firefly-cli/archive/v0.2.1/firefly-cli-0.2.1.tar.gz"
+MD5SUM="b0b78cf8880855c7caab0280a6d354fe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""