add motor deprecated and improvements
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
workdir
|
||||
33
build.sh
33
build.sh
@@ -14,25 +14,26 @@ fi
|
||||
|
||||
module=$(yq e '.module' $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"
|
||||
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)
|
||||
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
|
||||
git clone $repo $builddir $branch_arg
|
||||
else
|
||||
git -C $builddir fetch origin $branch
|
||||
git -C $builddir fetch --tags
|
||||
git -C $builddir checkout $commit
|
||||
fi
|
||||
|
||||
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
|
||||
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