Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nblmapp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
epics-modules
nblmapp
Commits
9339c878
Commit
9339c878
authored
4 years ago
by
Anders Lindh Olsson
🎱
Browse files
Options
Downloads
Patches
Plain Diff
remove legacy rebuild.sh
parent
0e991ee4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rebuild.sh
+0
-67
0 additions, 67 deletions
rebuild.sh
with
0 additions
and
67 deletions
rebuild.sh
deleted
100755 → 0
+
0
−
67
View file @
0e991ee4
#!/bin/bash
#
# Copyright (c) 2017 - Present European Spallation Source ERIC
#
# The dm_setup.bash is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
# License, or any newer version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see https://www.gnu.org/licenses/gpl-2.0.txt
#
# Author : Jeong Han Lee
# email : han.lee@esss.se
# Date :
# Version : 0.0.2
declare
-gr
SCRIPT
=
"
$(
realpath
"
$0
"
)
"
declare
-gr
TOP
=
"
$(
dirname
"
$SCRIPT
"
)
"
declare
-g
PROJECT
=
""
function
pushd
()
{
builtin pushd
"
$@
"
>
/dev/null
;
}
function
popd
()
{
builtin popd
"
$@
"
>
/dev/null
;
}
make_file_name
=
"Makefile"
# make_file_name="GNUmakefile"
eval
$(
cat
${
TOP
}
/Makefile |
grep
-E
"^(PROJECT)="
)
if
[
-z
"
${
PROJECT
}
"
]
then
echo
"PROJECT is empty or "
echo
"PROJECT should have no splace e.g. PROJECT=project_name"
echo
"Please check
${
make_file_name
}
in
${
TOP
}
"
exit
;
fi
printf
"You are re-building %s ?
\n
"
"
${
PROJECT
}
"
read
-p
"Do you want to continue (y/n)? "
answer
case
${
answer
:0:1
}
in
y|Y
)
printf
"Yes, we are removing ......
\n
"
;
sudo rm
-rfv
${
EPICS_MODULES_PATH
}
/
${
PROJECT
}
;;
*
)
printf
"Stop here.
\n
"
;
exit
;
;;
esac
printf
"We will install the new version of %s
\n
"
"
${
PROJECT
}
"
pushd
${
TOP
}
sudo
-E
make
install
popd
exit
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment