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
flexpart
flexpart
Commits
348abf63
Commit
348abf63
authored
Jan 28, 2019
by
Ignacio Pisso
Browse files
changes to create_tarball.sh
parent
a816416e
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_tarball.sh
View file @
348abf63
#!/bin/bash
#define version number
version
=
10.3beta5
githash
=
$(
git rev-parse
--short
--verify
HEAD
)
version
=
10.3beta5_
$githash
# define tarball name
targetdir
=
../flexpart_distribution/
tarball_tmp
=
${
targetdir
}
flexpart_v
$version
#tarball=${targetdir}flexpart_v$version.tar
tarball
=
${
tarball_tmp
}
.tar
# clean old package
if
[
-d
$tarball_tmp
]
;
then
echo
$tarball_tmp
exists: move to
$tarball_tmp
.bk
mv
$tarball_tmp
${
tarball_tmp
}
.bk
echo
$tarball_tmp
exists: move to
$tarball_tmp
.bk and
exit
mkdir
$tarball_tmp
.bk
mv
$tarball_tmp
${
tarball_tmp
}
.bk/
mv
$tarball
${
tarball_tmp
}
.bk/
exit
fi
...
...
@@ -174,7 +182,10 @@ mkdir $tarball_tmp/tests/ctbto
# cp -r tests/NILU/test_1 $tarball_tmp/tests/
# cp -r tests/default_cases $tarball_tmp/tests/
tar
cvf
$tarball
$tarball_tmp
echo
$tarball
complete
echo
exported untarred files
in
$tarball_tmp
exit
#return
###############################################################
...
...
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