Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
6a7e5cc3
Commit
6a7e5cc3
authored
Dec 16, 2011
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modification os script
parent
40211cc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
scripts/skeleton_apps.sh
scripts/skeleton_apps.sh
+5
-9
scripts/skeleton_test.sh
scripts/skeleton_test.sh
+1
-8
No files found.
scripts/skeleton_apps.sh
View file @
6a7e5cc3
...
...
@@ -5,17 +5,13 @@ if test $# -lt 1; then
exit
2
fi
APPS_ROOT
=
`
basename
$PWD
`
if
test
$APPS_ROOT
!=
CGoGN_Apps
;
then
echo
"You are not in the CGoGN_Apps directory"
exit
2
fi
if
test
-d
$PWD
/
$1
;
then
echo
Repertory
$1
already exist
exit
3
fi
echo
"Warning do not forget to check the CGoGN_ROOT_DIR variable (ccmake)"
apps
=
$1
mkdir
$apps
...
...
@@ -132,12 +128,12 @@ echo \#include \"Utils/Qt/qtui.h\" >> ${apps}.h
echo
""
>>
${
apps
}
.h
echo
"using namespace CGoGN;"
>>
${
apps
}
.h
echo
""
>>
${
apps
}
.h
echo
"class
Interface
: public Utils::QT::SimpleQT"
>>
${
apps
}
.h
echo
"class
${
apps
}
: public Utils::QT::SimpleQT"
>>
${
apps
}
.h
echo
"{"
>>
${
apps
}
.h
echo
" Q_OBJECT"
>>
${
apps
}
.h
echo
"public:"
>>
${
apps
}
.h
echo
""
>>
${
apps
}
.h
echo
"
Interface
() {}"
>>
${
apps
}
.h
echo
"
${
apps
}
() {}"
>>
${
apps
}
.h
echo
""
>>
${
apps
}
.h
echo
" void cb_redraw();"
>>
${
apps
}
.h
echo
""
>>
${
apps
}
.h
...
...
@@ -201,7 +197,7 @@ echo "int main(int argc, char **argv)" >> ${apps}.cpp
echo
"{"
>>
${
apps
}
.cpp
echo
""
>>
${
apps
}
.cpp
echo
" QApplication app(argc, argv);"
>>
${
apps
}
.cpp
echo
"
Interface
sqt;"
>>
${
apps
}
.cpp
echo
"
${
apps
}
sqt;"
>>
${
apps
}
.cpp
echo
""
>>
${
apps
}
.cpp
echo
" Utils::QT::uiDockInterface dock;"
>>
${
apps
}
.cpp
echo
" sqt.setDock(&dock);"
>>
${
apps
}
.cpp
...
...
scripts/skeleton_test.sh
View file @
6a7e5cc3
...
...
@@ -5,11 +5,7 @@ if test $# -lt 1; then
exit
2
fi
APPS_ROOT
=
`
basename
$PWD
`
if
test
$APPS_ROOT
!=
CGoGN_Apps
;
then
echo
"You are not in the CGoGN_Apps directory"
exit
2
fi
echo
"Warning do not forget to check the CGoGN_ROOT_DIR variable (ccmake)"
if
test
-d
$PWD
/
$1
;
then
echo
Repertory
$1
already exist
...
...
@@ -80,6 +76,3 @@ echo "{" >> ${apps}.cpp
echo
" CGoGNout <<
\"
Hello CGoGN
\"
<<CGoGNendl;"
>>
${
apps
}
.cpp
echo
"}"
>>
${
apps
}
.cpp
echo
Generation ok
Write
Preview
Markdown
is supported
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