Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
courses
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
school
courses
Commits
a757b12f
Commit
a757b12f
authored
5 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
remove setupDeck shell script
parent
3be80539
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setupDeck.sh
+0
-46
0 additions, 46 deletions
setupDeck.sh
with
0 additions
and
46 deletions
setupDeck.sh
deleted
100644 → 0
+
0
−
46
View file @
3be80539
#!/bin/bash
helpFunction
()
{
echo
""
echo
"Usage:
$0
-y datePresentation -n namePresentation"
echo
-e
"
\t
-a Date of the presentation (Format: YYYY-MM-DD)"
echo
-e
"
\t
-b Name of the presentation"
exit
1
# Exit script after printing help
}
while
getopts
"y:n:"
opt
do
case
"
$opt
"
in
y
)
datePres
=
"
$OPTARG
"
;;
n
)
namePres
=
"
$OPTARG
"
;;
?
)
helpFunction
;;
# Print helpFunction in case parameter is non-existent
esac
done
# Print helpFunction in case parameters are empty
if
[
-z
"
$datePres
"
]
||
[
-z
"
$namePres
"
]
then
echo
"Some or all of the parameters are empty"
;
helpFunction
fi
yearPres
=
${
datePres
:0:4
}
echo
"Setting up a new slide deck"
echo
"----------------------------"
echo
" + Year:
$yearPres
"
echo
" + Date:
$datePres
"
echo
" + Name:
$namePres
"
# checkout a new branch
#git checkout develop
#git pull origin develop
#git checkout -b newBranch
# copy the template
cp
-r
./template
"./
$yearPres
/
$namePres
"
# print out a success message
echo
" > The slide deck has been created in ./
$yearPres
/
$namePres
"
echo
"----------------------------"
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