mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated for scripts
This commit is contained in:
parent
819c706da2
commit
bbf72ad9f3
2 changed files with 3 additions and 7 deletions
|
@ -30,10 +30,8 @@ cat setup.cfg | grep "version =" | tr -d "[:space:]" | cut -c9-13 | tr , .
|
||||||
PRGNAM=slpkg
|
PRGNAM=slpkg
|
||||||
VERSION=${VERSION:-$(__version)}
|
VERSION=${VERSION:-$(__version)}
|
||||||
|
|
||||||
# Installation script.
|
ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.tar.bz2 $PRGNAM-$VERSION.zip"
|
||||||
# With this script allows you to install the slpkg as a Slackware package binary file.
|
|
||||||
ARCHIVES="$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION.zip v$VERSION.tar.gz v$VERSION.zip \
|
|
||||||
$PRGNAM-$VERSION.tar.bz2"
|
|
||||||
cd ..
|
cd ..
|
||||||
for file in $ARCHIVES; do
|
for file in $ARCHIVES; do
|
||||||
if [ -f $file ]; then
|
if [ -f $file ]; then
|
||||||
|
|
|
@ -76,9 +76,7 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz \
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || unzip $CWD/$PRGNAM-$VERSION.zip
|
||||||
|| tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || unzip $CWD/$PRGNAM-$VERSION.zip \
|
|
||||||
|| unzip $CWD/v$VERSION.zip
|
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
|
|
Loading…
Reference in a new issue