Skip to content
Snippets Groups Projects
Commit 071ee9bd authored by Anne Philipp's avatar Anne Philipp
Browse files

deleted old tar creation script and updated the new one to corrrect pathes

parent 22550824
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# @Author: Anne Philipp
#
# @Date: June, 7 2018
#
# @Description: Makes a tarball for installation
#
tarname='flex_extract_v7.1.tar.gz'
path='/nas/tmc/Anne/Interpolation/flexextract/flexextract/python/../'
tar -cvf $tarname ${path}python/*py ${path}python/CONTROL* ${path}python/*ksh ${path}python/*temp ${path}python/ECMWF_ENV ${path}python/*json ${path}grib_templates ${path}src/*.f ${path}src/*.f90 ${path}src/*.h ${path}src/Makefile*
...@@ -2,12 +2,49 @@ ...@@ -2,12 +2,49 @@
# #
# @Author: Anne Philipp # @Author: Anne Philipp
# #
# @Date: June, 7 2018 # @Date: March, 1 2019
# #
# @Description: Makes a tarball for uploading on flexpart.eu # @Description: Makes a tarball for uploading and distributing on flexpart.eu
#
# @Licence:
# (C) Copyright 2014-2019.
#
# SPDX-License-Identifier: CC-BY-4.0
#
# This work is licensed under the Creative Commons Attribution 4.0
# International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
# #
tarname='flex_extract_v7.1.tar.gz' tarname='flex_extract_v7.1.tar.gz'
tardir='flex_extract_v7.1'
# go back to directory which is above flex_extract directory
cd ../..
tar --exclude='./src/*.o' --exclude='./src/*.mod' --exclude='./src/CONVERT2' --exclude='./python/*.pyc' --exclude='./python/*.ksh' --exclude='./python/ECMWF_ENV' --exclude='./python/*sh' --exclude='*sh' --exclude='*tar.gz' --exclude='work' --exclude='./python/job.temp' -zcvf $tarname . # create tar-ball
tar -zcvf $tarname $tardir\
--exclude=$tardir'/Source/Fortran/*.o' \
--exclude=$tardir'/Source/Fortran/*.mod' \
--exclude=$tardir'/Source/Fortran/CONVERT2*' \
--exclude=$tardir'/Source/Python/*.pyc' \
--exclude=$tardir'/Source/Pythontest/*.pyc' \
--exclude=$tardir'/Source/Pythontest/__pycache__' \
--exclude=$tardir'/Source/Pythontest/.pytest_cache' \
--exclude=$tardir'/.git' \
--exclude=$tardir'/.gitignore' \
--exclude=$tardir'/Run/ECMWF_ENV' \
--exclude=$tardir'/Run/Workspace' \
--exclude=$tardir'/Run/Jobscripts/*' \
--exclude=$tardir'/Testing/Testcases' \
--exclude=$tardir'/Testing/Controls' \
--exclude=$tardir'/Testing/Dir' \
--exclude=$tardir'/Run/fontconfig' \
--exclude=$tardir'/Run/run_local.sh' \
--exclude=$tardir'/Run/Control/Testgrid' \
--exclude=$tardir'/Run/Control/notPublic' \
--exclude=$tardir'setup_local.sh' \
--exclude=$tardir'/.empty' \
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment