Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
1f0fea09
Commit
1f0fea09
authored
9 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
[bin] add helper tool to remove all autotools files
parent
a06ea7b4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/CMakeLists.txt
+1
-0
1 addition, 0 deletions
bin/CMakeLists.txt
bin/dune-remove-autotools
+57
-0
57 additions, 0 deletions
bin/dune-remove-autotools
with
58 additions
and
0 deletions
bin/CMakeLists.txt
+
1
−
0
View file @
1f0fea09
...
...
@@ -6,4 +6,5 @@ install(PROGRAMS
git-whitespace-hook
mpi-config
dune-autogen
dune-remove-autotools
DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
This diff is collapsed.
Click to expand it.
bin/dune-remove-autotools
0 → 100755
+
57
−
0
View file @
1f0fea09
#!/bin/bash
RM_F
=
"rm -f"
RM_RF
=
"rm -rf"
SED
=
"sed"
# parse commandline parameters
while
test
$#
-gt
0
;
do
# get option
command
=
$1
option
=
$1
# get args
set
+e
# stolen from configure...
# when no option is set, this returns an error code
arg
=
`
expr
"x
$option
"
:
'x[^=]*=\(.*\)'
`
set
-e
# switch
case
"
$option
"
in
-n
|
--dry-run
)
DRYRUN
=
1
RM_F
=
"echo rm -f"
RM_RF
=
"echo rm -rf"
SED
=
"echo sed"
;;
-h
|
--help
)
echo
"Usage:
$0
[OPTIONS]"
echo
"OPTIONS:"
echo
" -h, --help show this help"
echo
" -n, --dry-run perform a trial run with no changes made"
echo
exit
0
break
;;
*
)
break
;;
esac
shift
done
$RM_RF
autom4te.cache
$RM_F
aclocal.m4 dependencies.m4
$RM_RF
m4
$RM_F
config.guess config.h config.h.in config.sub configure configure.ac
$RM_F
compile depcomp install-sh ltmain.sh missing test-driver
for
i
in
$(
find
-name
Makefile.am
)
;
do
DIR
=
$(
dirname
$i
)
$RM_F
$DIR
/Makefile.am
$DIR
/Makefile.in
$DIR
/Makefile
done
$SED
-i
-e
'/add_subdirectory(["'
"'"
']m4["'
"'"
'])/d'
CMakeLists.txt
if
test
"
$DRYRUN
"
!=
"1"
;
then
echo
"Done"
fi
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