Changeset 2044 for CLARIN_KML
- Timestamp:
- 07/19/12 15:41:01 (12 years ago)
- Location:
- CLARIN_KML
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CLARIN_KML
- Property svn:ignore
-
old new 1 .input 1 2 .output
-
- Property svn:ignore
-
CLARIN_KML/exec/generate_CLARIN_KMZ.sh
r2043 r2044 50 50 KML_final_file_path="${OUTPUT_directory_path}/doc.kml"; 51 51 KMZ_final_file_path="${OUTPUT_directory_path}/language_sites.kmz"; 52 KMZ_publication_directory_path='/var/www/drupal/external/kml/'; 52 53 53 54 timestamp=$( date +%H:%M:%S ); … … 78 79 fi 79 80 80 if test -r "${OUTPUT_directory_path}" -a -r "${SAXON_JAR_file_path}" -a -x "${CSV2XML_file_path}" -a -r "${XSLT_1_file_path}" -a -r "${XSLT_1_file_path}" -a -r "${XSLT_2_file_path}" -a -r "${XSLT_3_file_path}" 81 if test -r "${OUTPUT_directory_path}" -a -r "${SAXON_JAR_file_path}" -a -x "${CSV2XML_file_path}" -a -r "${XSLT_1_file_path}" -a -r "${XSLT_1_file_path}" -a -r "${XSLT_2_file_path}" -a -r "${XSLT_3_file_path}" -a -r "${KMZ_publication_directory_path}" 81 82 then 82 83 if test -r "${KMZ_original_file_path}" -a -r "${CSV_file_path}" … … 115 116 fi 116 117 117 echo -e "\n\n${bold}Zipping doc.kml to KMZ file ${KMZ_final_file_path}...${normal}";118 echo -e "\n\n${bold}Zipping ${KML_final_file_path} to KMZ file ${KMZ_final_file_path} and moving it to "${KMZ_publication_directory_path}" ...${normal}"; 118 119 cd $(dirname "${KML_final_file_path}"); 119 KM Z_final_file_relpath=$(basename "${KML_final_file_path}");120 KML_final_file_relpath=$(basename "${KML_final_file_path}"); 120 121 121 zip -9 -D "${KMZ_final_file_path}" "${KM Z_final_file_relpath}"; # X- path corruption! --junk-paths --no-dir-entries -X122 zip -9 -D "${KMZ_final_file_path}" "${KML_final_file_relpath}"; 122 123 123 rm "${KM Z_final_file_relpath}";124 rm "${KML_final_file_relpath}"; 124 125 rm "${KML_original_file_path}"; 126 127 cp -v --remove-destination "${KMZ_final_file_path}" -t "${KMZ_publication_directory_path}/"; 125 128 else 126 129 echo -e "ERROR: The input data file(s) ${KMZ_original_file_path}\nand/or\n${CSV_file_path} is/are not existent as well as readable/executable!"; … … 128 131 fi 129 132 else 130 echo -e "ERROR: One or more of the following script files is not existent as well as readable: \n${OUTPUT_directory_path}\n${SAXON_JAR_file_path}\n${CSV2XML_file_path}\n${XSLT_1_file_path}\n${XSLT_1_file_path}\n${XSLT_2_file_path}\n${XSLT_3_file_path} ";133 echo -e "ERROR: One or more of the following script files is not existent as well as readable: \n${OUTPUT_directory_path}\n${SAXON_JAR_file_path}\n${CSV2XML_file_path}\n${XSLT_1_file_path}\n${XSLT_1_file_path}\n${XSLT_2_file_path}\n${XSLT_3_file_path}\n${KMZ_publication_directory_path}"; 131 134 exit 2; 132 135 fi
Note: See TracChangeset
for help on using the changeset viewer.