mirror of https://github.com/ecmwf/eccodes.git
ECC-200: Script to fixup links to confluence
This commit is contained in:
parent
4aa5870a9d
commit
538b5a542e
|
@ -151,7 +151,7 @@ examples/F90/eccodes_f_grib_copy_message
|
|||
examples/F90/eccodes_f_copy_namespace
|
||||
examples/F90/eccodes_f_count_messages
|
||||
examples/F90/eccodes_f_grib_get_keys
|
||||
examples/F90/eccodes_f_get_data
|
||||
examples/F90/eccodes_f_grib_get_data
|
||||
examples/F90/eccodes_f_get_product_kind
|
||||
examples/F90/eccodes_f_get_pl
|
||||
examples/F90/eccodes_f_get_pv
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Change the links from example code back to confluence
|
||||
# This is only done the first time before checking in the new html files
|
||||
# Do not run this on html files which are already converted!
|
||||
fnames="
|
||||
bufr_get_keys
|
||||
grib_index
|
||||
grib_get_keys
|
||||
grib_set_keys
|
||||
grib_get_data
|
||||
grib_clone
|
||||
grib_print_data
|
||||
grib_copy_message
|
||||
count_messages
|
||||
grib_nearest
|
||||
grib_samples
|
||||
grib_set_missing
|
||||
"
|
||||
# Adding target="_blank" ensures link opens in a new tab/window in browser
|
||||
for fn in $fnames; do
|
||||
perl -p -i -e "s|$fn\.f90|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.f90</a>|" ../html/classeccodes.html
|
||||
# Do all F90 interface files too
|
||||
perl -p -i -e "s|$fn\.f90|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.f90</a>|" ../html/interfaceeccodes*.html
|
||||
done
|
||||
|
||||
pnames="
|
||||
grib_get_keys
|
||||
grib_set_keys
|
||||
grib_samples
|
||||
grib_set_missing
|
||||
grib_nearest
|
||||
grib_index
|
||||
grib_print_data
|
||||
grib_multi_write
|
||||
grib_iterator
|
||||
grib_clone
|
||||
grib_keys_iterator
|
||||
bufr_get_keys
|
||||
"
|
||||
for fn in $pnames; do
|
||||
perl -p -i -e "s|$fn\.py|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.py</a>|" ../html/namespaceec_codes.html
|
||||
done
|
||||
|
|
@ -20,48 +20,9 @@ doxygen grib_api_wiz.cfg
|
|||
# Do not copy this. Use default generated doxygen.css
|
||||
# cp doxygen.css ../html/
|
||||
|
||||
# ./convert_links.sh
|
||||
|
||||
# Remove temp files
|
||||
rm -f eccodes.h
|
||||
rm -f ecCodes.py
|
||||
|
||||
# Change the links from any example code back to confluence
|
||||
fnames="
|
||||
bufr_get_keys
|
||||
grib_index
|
||||
grib_get_keys
|
||||
grib_set_keys
|
||||
grib_get_data
|
||||
grib_clone
|
||||
grib_print_data
|
||||
grib_copy_message
|
||||
count_messages
|
||||
grib_nearest
|
||||
grib_samples
|
||||
grib_set_missing
|
||||
"
|
||||
|
||||
for fn in $fnames; do
|
||||
perl -p -i -e "s|$fn\.f90|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.f90</a>|" ../html/classeccodes.html
|
||||
# Do all F90 interface files too
|
||||
perl -p -i -e "s|$fn\.f90|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.f90</a>|" ../html/interfaceeccodes*.html
|
||||
done
|
||||
|
||||
pnames="
|
||||
grib_get_keys
|
||||
grib_set_keys
|
||||
grib_samples
|
||||
grib_set_missing
|
||||
grib_nearest
|
||||
grib_index
|
||||
grib_print_data
|
||||
grib_multi_write
|
||||
grib_iterator
|
||||
grib_clone
|
||||
grib_keys_iterator
|
||||
bufr_get_keys
|
||||
"
|
||||
for fn in $pnames; do
|
||||
perl -p -i -e "s|$fn\.py|<a href=\"https://software.ecmwf.int/wiki/display/ECC/$fn\" target=\"_blank\">$fn.py</a>|" ../html/namespaceec_codes.html
|
||||
done
|
||||
|
||||
echo DONE
|
||||
|
|
Loading…
Reference in New Issue