Updated installation bash script

This commit is contained in:
Dimitris Zlatanidis 2015-09-17 06:44:26 +03:00
parent 0f03a57873
commit b158259629
3 changed files with 11 additions and 12 deletions

View file

@ -2,6 +2,7 @@
Added:
- Quit option in new-config command
Updated:
- Installation bash script
- Messages and references messages
- Image types for graph
Fixed:

View file

@ -29,12 +29,10 @@ cat slpkg/__metadata__.py | grep "__version_info__ = (" \
PRGNAM=slpkg
VERSION=${VERSION:-$(__version)}
TAG=${TAG:-_dsw}
# Installation script.
# With this script allows you to install the slpkg as a Slackware package binary file.
# Support wget download.
ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.zip v$VERSION.tar.gz v$VERSION.zip"
cd ..
for file in $ARCHIVES; do
@ -46,6 +44,3 @@ for file in $ARCHIVES; do
rm $file
fi
done
# install or upgrade with new version
upgradepkg --install-new /tmp/$PRGNAM-$VERSION-*$TAG.t?z

View file

@ -32,6 +32,7 @@ PRGNAM=slpkg
VERSION=${VERSION:-$(__version)}
BUILD=${BUILD:-1}
TAG=${TAG:-_dsw}
INSTALL="upgradepkg --install-new"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -121,3 +122,5 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
$INSTALL $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz