3 # grab the current tag for each git submodule and store it for later use.
8 OUTPUT
=${CWD}/versioning
11 # the versioning file will contain an array that will be pulled by the SlackBuild
15 # Array of LXQT modules and relative version
16 # This file is sourced during the build process to determine the
17 # version of every module that is being built.
25 SUBDIRS
=$
(find . \
( ! -regex '.*/\..*' \
) -type d
-mindepth 1 -maxdepth 1 -print)
27 for mod
in $SUBDIRS; do
29 VERSION
=$
(git describe
--tags)
30 MODNAME
=$
(basename $mod)
31 echo -e "\t[\"$MODNAME\"]=\"$VERSION\"" >> $OUTPUT
32 # forcing libfm-extra version number because of shared source directory with libfm
33 if [[ $MODNAME == "libfm" ]]; then
34 echo -e "\t[\"libfm-extra\"]=\"$VERSION\"" >> $OUTPUT