mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-27 19:58:21 +01:00
update install script
This commit is contained in:
parent
02a1d5369a
commit
600badeae3
2 changed files with 4 additions and 4 deletions
|
@ -21,14 +21,14 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
grab_version() {
|
__version() {
|
||||||
# Grab version from __metadata_.py file
|
# Grab version from __metadata_.py file
|
||||||
cat slpkg/__metadata__.py | grep "__version_info__ = (" \
|
cat slpkg/__metadata__.py | grep "__version_info__ = (" \
|
||||||
| tr -d [[:space:]] | cut -c19-23 | tr , .
|
| tr -d [[:space:]] | cut -c19-23 | tr , .
|
||||||
}
|
}
|
||||||
|
|
||||||
PRGNAM=slpkg
|
PRGNAM=slpkg
|
||||||
VERSION=${VERSION:-$(grab_version)}
|
VERSION=${VERSION:-$(__version)}
|
||||||
TAG=${TAG:-_dsw}
|
TAG=${TAG:-_dsw}
|
||||||
|
|
||||||
# Installation script.
|
# Installation script.
|
||||||
|
|
|
@ -22,14 +22,14 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
grab_version() {
|
__version() {
|
||||||
# Grab version from __metadata_.py file
|
# Grab version from __metadata_.py file
|
||||||
cat ../slpkg/__metadata__.py | grep "__version_info__ = (" \
|
cat ../slpkg/__metadata__.py | grep "__version_info__ = (" \
|
||||||
| tr -d [[:space:]] | cut -c19-23 | tr , .
|
| tr -d [[:space:]] | cut -c19-23 | tr , .
|
||||||
}
|
}
|
||||||
|
|
||||||
PRGNAM=slpkg
|
PRGNAM=slpkg
|
||||||
VERSION=${VERSION:-$(grab_version)}
|
VERSION=${VERSION:-$(__version)}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_dsw}
|
TAG=${TAG:-_dsw}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue