add motor deprecated and improvements

This commit is contained in:
2025-09-02 15:37:43 +02:00
parent 0809eb5858
commit 7c9897e0f0
5 changed files with 28 additions and 17 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
workdir

View File

@@ -14,25 +14,26 @@ fi
module=$(yq e '.module' $MODULEYAML) module=$(yq e '.module' $MODULEYAML)
repo=$(yq e '.repo' $MODULEYAML) repo=$(yq e '.repo' $MODULEYAML)
tag=$(yq e '.tag' $MODULEYAML) branch=$(yq e '.branch' $MODULEYAML)
commit=$(yq e '.commit' $MODULEYAML)
if [ -z "$commit" ]; then
echo "Error no tag or commit specified"
exit -1
fi
# branch can be omitted if it's a tag or commit on default branch
if [ ! -z "$branch" ]; then
branch_arg="-b $branch"
fi
builddir="$WORKDIR/$module" builddir="$WORKDIR/$module"
if [ ! -d "${builddir}" ]; then if [ ! -d "${builddir}" ]; then
echo je git clone $repo $builddir $branch_arg
if [ ! "$tag" = "null" ]; then else
# prioritize tags git -C $builddir fetch origin $branch
git clone $repo $builddir -b $tag git -C $builddir fetch --tags
else git -C $builddir checkout $commit
# use commit
branch=$(yq e '.branch' $MODULEYAML)
commit=$(yq e '.commit' $MODULEYAML)
if [ -z "$commit" ]; then
echo "Error no tag or commit specified"
exit -1
fi
git clone $repo $builddir -b $branch
git -C $builddir checkout $commit
fi
fi fi
ARCH_FILTER="RHEL8%" make -C $builddir $2 ARCH_FILTER="RHEL8%" make -C $builddir $2

4
modules/autosave.yaml Normal file
View File

@@ -0,0 +1,4 @@
module: autosave
repo: git@git.psi.ch:epics_driver_modules/autosave.git
branch: master
tag: 5.7.18

View File

@@ -0,0 +1,4 @@
module: motorDeprecated
repo: git@gitea.psi.ch:lin-epics-modules/motorDeprecated.git
branch: main
commit: 0.1.2

View File

@@ -1,3 +1,4 @@
module: motorSim module: motorSim
repo: git@git.psi.ch:epics_driver_modules/motorMotorSim.git repo: git@git.psi.ch:epics_driver_modules/motorMotorSim.git
tag: 1.2.0 branch: master
commit: 1.2.0