add motor deprecated and improvements
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
workdir
|
||||||
31
build.sh
31
build.sh
@@ -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
|
|
||||||
# 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
|
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
4
modules/autosave.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module: autosave
|
||||||
|
repo: git@git.psi.ch:epics_driver_modules/autosave.git
|
||||||
|
branch: master
|
||||||
|
tag: 5.7.18
|
||||||
4
modules/motorDeprecated.yaml
Normal file
4
modules/motorDeprecated.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module: motorDeprecated
|
||||||
|
repo: git@gitea.psi.ch:lin-epics-modules/motorDeprecated.git
|
||||||
|
branch: main
|
||||||
|
commit: 0.1.2
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user