Skip to content

Commit

Permalink
Merge branch 'fixes'
Browse files Browse the repository at this point in the history
* fixes:
  beesh: fix search for free revison number
  beesh: fix parsing of PKGFULLNAME and PKGFULLVERSION when modified in bee file.
  • Loading branch information
donald committed Jul 1, 2016
2 parents 4b9faab + 1c7c338 commit 4bc583b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function check_rebuild() {
beefile_pattern=${beefile_pattern//+/\\+} # replace all + with \+
beefile_pattern=${beefile_pattern//./\\.} # replace all . with \.

beefile_max=$(for bf in $(ls "${beefile%/*}/${beefile_pattern}*.bee" "${BEE_BEEDIR}/${beefile_pattern}*.bee" 2>/dev/null |\
beefile_max=$(for bf in $(ls ${beefile%/*}/${beefile_pattern}*.bee ${BEE_BEEDIR}/${beefile_pattern}*.bee 2>/dev/null |\
grep -E "/${beefile_pattern}-[0-9]+.bee") ; do
echo "${bf}"
done | ${BEESORT} | tail -1)
Expand Down Expand Up @@ -741,7 +741,11 @@ function verify_new_package_variables() {
exit 1
fi
PKGNAME=${PKGFULLNAME//_*}
PKGEXTRANAME=${PKGFULLNAME#*_}
if [ "$PKGNAME" = "$PKGFULLNAME" ] ; then
PKGEXTRANAME=""
else
PKGEXTRANAME=${PKGFULLNAME#*_}
fi
fi
PKGFULLNAME="${PKGNAME}${PKGEXTRANAME:+_${PKGEXTRANAME}}"

Expand All @@ -752,7 +756,11 @@ function verify_new_package_variables() {
exit 1
fi
PKGVERSION=${PKGFULLVERSION//_*}
PKGEXTRAVERSION=${PKGFULLVERSION#*_}
if [ "$PKGVERSION" = "$PKGFULLVERSION" ] ; then
PKGEXTRAVERSION=""
else
PKGEXTRAVERSION=${PKGFULLVERSION#*_}
fi
fi
PKGFULLVERSION="${PKGVERSION}${PKGEXTRAVERSION:+_${PKGEXTRAVERSION}}"
}
Expand Down

0 comments on commit 4bc583b

Please sign in to comment.