Allow scriptlet numbering to be on 4 digits in packInstall.sh*
This commit is contained in:
parent
3ac3ae199f
commit
89bcb1be0e
3 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ packInstall() {
|
|||
|
||||
local PCKGVRS=$(basename $PKGDIR)
|
||||
local TGTPKG=$(basename $PKG_DEST)
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3,4\}-//' |
|
||||
sed 's/^[0-9]\{2\}-//')
|
||||
case $PCKGVRS in
|
||||
expect*|tcl*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*//') ;;
|
||||
|
|
|
@ -107,7 +107,7 @@ wrapInstall() {
|
|||
# but it does not hurt, either.
|
||||
local PCKGVRS=$(basename $PKGDIR)
|
||||
local TGTPKG=$(basename $PKG_DEST)
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3,4\}-//' |
|
||||
sed 's/^[0-9]\{2\}-//')
|
||||
# Porg converts package names to lowercase anyway, so do the conversion
|
||||
# ourselves
|
||||
|
@ -126,7 +126,7 @@ packInstall() {
|
|||
|
||||
# With porg, we need only the package name to make the tarball
|
||||
local TGTPKG=$(basename $PKG_DEST)
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3,4\}-//' |
|
||||
sed 's/^[0-9]\{1\}-//')
|
||||
local PCKGVRS=$(basename $PKGDIR)
|
||||
# Porg converts package names to lowercase anyway, so do the conversion
|
||||
|
|
|
@ -8,7 +8,7 @@ packInstall() {
|
|||
# A proposed implementation for versions and package names.
|
||||
local PCKGVRS=$(basename $PKGDIR)
|
||||
local TGTPKG=$(basename $PKG_DEST)
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
|
||||
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3,4\}-//' |
|
||||
sed 's/^[0-9]\{2\}-//')
|
||||
# version is only accessible from PKGDIR name. Since the format of the
|
||||
# name is not normalized, several hacks are necessary...
|
||||
|
|
Reference in a new issue