Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
research-topics-mat-tuhh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Nuraddin Alexander Gabel
research-topics-mat-tuhh
Commits
e58e7955
Commit
e58e7955
authored
3 years ago
by
Fabian Nuraddin Alexander Gabel
Browse files
Options
Downloads
Patches
Plain Diff
use three input arguments for preproc_topics
parent
0b7517f3
No related branches found
No related tags found
3 merge requests
!84
Draft: Resolve "create tests for new commandline arguments"
,
!83
Draft: Resolve "deliver css and javascript to www3"
,
!77
Resolve "tuhh-deployment"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/preproc_topics.sh
+12
-2
12 additions, 2 deletions
bin/preproc_topics.sh
with
12 additions
and
2 deletions
bin/preproc_topics.sh
+
12
−
2
View file @
e58e7955
...
...
@@ -4,21 +4,31 @@
if
[
$#
-lt
1
]
then
RESEARCH_BUILD
=
`
pwd
`
"/build"
RESEARCH_STAFF
=
$RESEARCH_BUILD
#directory for staff and wg files
RESEARCH_TOPICS
=
`
pwd
`
echo
-e
"No building directory was specified."
elif
[
$#
-lt
2
]
then
RESEARCH_BUILD
=
"
$1
"
RESEARCH_STAFF
=
$RESEARCH_BUILD
RESEARCH_TOPICS
=
$RESEARCH_BUILD
echo
-e
"No extra topics directory was specified."
elif
[
$#
-lt
3
]
then
RESEARCH_BUILD
=
"
$1
"
RESEARCH_STAFF
=
$RESEARCH_BUILD
RESEARCH_TOPICS
=
"
$2
"
else
RESEARCH_BUILD
=
"
$1
"
RESEARCH_TOPICS
=
"
$2
"
RESEARCH_STAFF
=
"
$3
"
fi
mkdir
-p
$RESEARCH_BUILD
mkdir
-p
$RESEARCH_STAFF
echo
-e
"Building into directory
$RESEARCH_BUILD
..."
echo
-e
"Using .md-files from
$RESEARCH_TOPICS
..."
echo
-e
"Building into directory
$RESEARCH_BUILD
..."
echo
-e
"Building staff-files into directory
$RESEARCH_STAFF
..."
#rm -rf $RESEARCH_BUILD
baseurl
=
'https://www.mat.tuhh.de'
...
...
@@ -52,10 +62,10 @@ do
echo
-e
"
\n
$title
\n
"
>>
$RESEARCH_BUILD
/index.md
#replace working group
$RESEARCH_ROOT
/bin/preproc_wg.sh
$RESEARCH_BUILD
/
$filename
$RESEARCH_BUILD
>>
$RESEARCH_BUILD
/build.log 2>&1
$RESEARCH_ROOT
/bin/preproc_wg.sh
$RESEARCH_BUILD
/
$filename
$RESEARCH_BUILD
$RESEARCH_STAFF
>>
$RESEARCH_BUILD
/build.log 2>&1
#replace staff names
$RESEARCH_ROOT
/bin/preproc_staff.sh
$RESEARCH_BUILD
/
$filename
$RESEARCH_BUILD
>>
$RESEARCH_BUILD
/build.log 2>&1
$RESEARCH_ROOT
/bin/preproc_staff.sh
$RESEARCH_BUILD
/
$filename
$RESEARCH_BUILD
$RESEARCH_STAFF
>>
$RESEARCH_BUILD
/build.log 2>&1
#finalize file
sed
-i
"s;
\]
(/img/;
\]
(./img/;g"
$RESEARCH_BUILD
/
$filename
...
...
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