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)
builddir="$WORKDIR/$module"
if [ ! -d "${builddir}" ]; then
echo je
if [ ! "$tag" = "null" ]; then
# prioritize tags
git clone $repo $builddir -b $tag
else
# use commit
branch=$(yq e '.branch' $MODULEYAML) branch=$(yq e '.branch' $MODULEYAML)
commit=$(yq e '.commit' $MODULEYAML) commit=$(yq e '.commit' $MODULEYAML)
if [ -z "$commit" ]; then if [ -z "$commit" ]; then
echo "Error no tag or commit specified" echo "Error no tag or commit specified"
exit -1 exit -1
fi fi
git clone $repo $builddir -b $branch
git -C $builddir checkout $commit # branch can be omitted if it's a tag or commit on default branch
if [ ! -z "$branch" ]; then
branch_arg="-b $branch"
fi fi
builddir="$WORKDIR/$module"
if [ ! -d "${builddir}" ]; then
git clone $repo $builddir $branch_arg
else
git -C $builddir fetch origin $branch
git -C $builddir fetch --tags
git -C $builddir checkout $commit
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