Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Nektar
tutorial
Commits
7c8495e3
Commit
7c8495e3
authored
8 years ago
by
Chris Cantwell
Browse files
Options
Downloads
Patches
Plain Diff
Changed to use tar.gz archives and fixed paths inside tarball.
parent
8d706d04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Feature/flow stability
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-9
10 additions, 9 deletions
CMakeLists.txt
flow-stability/channel/CMakeLists.txt
+1
-1
1 addition, 1 deletion
flow-stability/channel/CMakeLists.txt
with
11 additions
and
10 deletions
CMakeLists.txt
+
10
−
9
View file @
7c8495e3
...
...
@@ -30,11 +30,6 @@ MACRO(ADD_NEKTAR_TUTORIAL)
SET
(
SRC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
SET
(
TGT
${
CMAKE_CURRENT_BINARY_DIR
}
)
IF
(
NEK_ARCHIVE
)
LIST
(
GET NEK_ARCHIVE 0 ARCHIVE_FNAME
)
LIST
(
REMOVE_AT NEK_ARCHIVE 0
)
ENDIF
()
IF
(
NEK_PDF
)
FIND_PROGRAM
(
PDFLATEX pdflatex
)
FIND_PROGRAM
(
BIBTEX bibtex
)
...
...
@@ -75,9 +70,12 @@ MACRO(ADD_NEKTAR_TUTORIAL)
# Create an archive of the tutorial files
IF
(
NEK_ARCHIVE
)
SET
(
TARFILE
"
${
TGT
}
/
${
NEK_TARGET
}
.tar.gz"
)
ADD_CUSTOM_COMMAND
(
TARGET
${
NEK_TARGET
}
-pdf POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E tar
"cvf"
"
${
ARCHIVE_FNAME
}
"
--format=zip
${
NEK_ARCHIVE
}
)
COMMAND
${
CMAKE_COMMAND
}
-E tar
"cvfz"
${
TARFILE
}
${
NEK_ARCHIVE
}
WORKING_DIRECTORY
${
SRC
}
COMMENT
"Generating
${
TARFILE
}
"
)
ENDIF
()
ENDIF
()
...
...
@@ -129,9 +127,12 @@ MACRO(ADD_NEKTAR_TUTORIAL)
ENDFOREACH
()
IF
(
NEK_ARCHIVE
)
SET
(
TARFILE
"
${
TGT
}
/html/
${
NEK_TARGET
}
.tar.gz"
)
ADD_CUSTOM_COMMAND
(
TARGET
${
NEK_TARGET
}
-html POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E tar
"cvf"
"html/
${
ARCHIVE_FNAME
}
"
--format=zip
${
NEK_ARCHIVE
}
)
COMMAND
${
CMAKE_COMMAND
}
-E tar
"cvfz"
${
TARFILE
}
${
NEK_ARCHIVE
}
WORKING_DIRECTORY
${
SRC
}
COMMENT
"Generating
${
TARFILE
}
"
)
FOREACH
(
f
${
NEK_ARCHIVE
}
)
GET_FILENAME_COMPONENT
(
TGTNAME
${
f
}
NAME
)
ADD_CUSTOM_COMMAND
(
TARGET
${
NEK_TARGET
}
-html POST_BUILD
...
...
This diff is collapsed.
Click to expand it.
flow-stability/channel/CMakeLists.txt
+
1
−
1
View file @
7c8495e3
...
...
@@ -2,7 +2,7 @@ ADD_NEKTAR_TUTORIAL(PDF HTML TARGET flow-stability-channel
HTML_BREAK_LEVEL 2
BASE flow-stability-channel
STYLING_FILE styling.cfg
ARCHIVE
flow-stability-channel.zip
${
CMAKE_CURRENT_SOURCE_DIR
}
/
files
)
ARCHIVE files
)
# Add tests only if we are building from within the Nektar++ tree
IF
(
DEFINED NEKTAR_BUILD_TESTS
)
...
...
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