Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
projet
VPLPP
Commits
b6064b8e
Commit
b6064b8e
authored
Nov 20, 2020
by
Guillaume Huard
Browse files
Fixes + push of the subject
parent
9c45d512
Changes
2
Hide whitespace changes
Inline
Side-by-side
Local_Makefile
View file @
b6064b8e
...
@@ -11,7 +11,7 @@ BASES=Basic_System C_Programming
...
@@ -11,7 +11,7 @@ BASES=Basic_System C_Programming
VPLPP_DIRS=$(addprefix $(VPLPP)/, $(BASES))
VPLPP_DIRS=$(addprefix $(VPLPP)/, $(BASES))
VPLPP_LOCAL=$(VPLPP)/local.sh
VPLPP_LOCAL=$(VPLPP)/local.sh
VPLPP_VPLADMIN=$(VPLPP)/vpladmin
VPLPP_VPLADMIN=$(VPLPP)/vpladmin
VPLPP_EF=$(addsuffix /ef/*, $(VPLPP_DIRS))
VPLPP_EF=
$(wildcard
$(addsuffix /ef/*, $(VPLPP_DIRS))
)
VPLPP_FILES=$(addsuffix .org, $(VPLPP_DIRS)) $(VPLPP_EF) $(VPLPP_LOCAL) $(VPLPP_VPLADMIN)
VPLPP_FILES=$(addsuffix .org, $(VPLPP_DIRS)) $(VPLPP_EF) $(VPLPP_LOCAL) $(VPLPP_VPLADMIN)
LOCAL_SRC=$(wildcard *.org)
LOCAL_SRC=$(wildcard *.org)
...
@@ -72,7 +72,7 @@ $(WRONG_DIRS): %_wrong: %/vpl_id.txt %_wrong/$(TARGET)
...
@@ -72,7 +72,7 @@ $(WRONG_DIRS): %_wrong: %/vpl_id.txt %_wrong/$(TARGET)
$(LOCALS): %/vpl_execution.sh: $(VPLPP_FILES)
$(LOCALS): %/vpl_execution.sh: $(VPLPP_FILES)
cd $(VPLPP) && make files
cd $(VPLPP) && make files
cp
-r
$(VPLPP_EF) $*
cp $(VPLPP_EF) $*
$(PUSHES): %/push: %/vpl_execution.sh
$(PUSHES): %/push: %/vpl_execution.sh
touch $*/push
touch $*/push
local.sh
View file @
b6064b8e
#!/usr/bin/env bash
#!/usr/bin/env bash
PRECIOUS_FILES
=
"vpl_execution.sh vpl_custom_run.sh vpl_evaluate.pl vpl_evaluate_setup.pl"
VPLPP
=
$(
dirname
$0
)
VPLPP
=
$(
dirname
$0
)
VPLADMIN
=
$VPLPP
/vpladmin
VPLADMIN
=
$VPLPP
/vpladmin
...
@@ -31,11 +30,7 @@ then
...
@@ -31,11 +30,7 @@ then
export
VPL_GRADEMAX
=
${
VPL_GRADEMAX
-100.0
}
export
VPL_GRADEMAX
=
${
VPL_GRADEMAX
-100.0
}
local_files
=
$(
echo
rf/
*
cf/
*
hf/
*
ef/
*
)
local_files
=
$(
echo
rf/
*
cf/
*
hf/
*
ef/
*
)
mkdir
local_run
mkdir
local_run
for
file
in
$PRECIOUS_FILES
for
file
in
*
.sh
*
.pl
$local_files
do
cp
-v
$file
local_run
done
for
file
in
$local_files
do
do
if
[
-f
"
$file
"
]
if
[
-f
"
$file
"
]
then
then
...
@@ -68,6 +63,10 @@ else
...
@@ -68,6 +63,10 @@ else
do
do
cp
hf/
$file
$dest
/cf
cp
hf/
$file
$dest
/cf
done
done
if
[
-f
intro.html
]
then
$VPLADMIN
--id
$ID
set_setting intro:intro.html
fi
cd
$dest
cd
$dest
typeset
-A
category
typeset
-A
category
category[ef]
=
execution_files
category[ef]
=
execution_files
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment