File size: 1,797 Bytes
7e59e4c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/bash
# Copyright (C) 2019 - 2022 by Pedro Mendes, Rector and Visitors of the
# University of Virginia, University of Heidelberg, and University
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and University of
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2015 - 2016 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and The University
# of Manchester.
# All rights reserved.
PACKAGE_NAME="COPASI-${MyAppVersion}-Java-Bindings-Windows-${Arch}"
echo mkdir -p "${SETUP_DIR}/${PACKAGE_NAME}"
mkdir -p "${SETUP_DIR}/${PACKAGE_NAME}"
pushd "${SETUP_DIR}"
pushd "${PACKAGE_NAME}"
rm -rf *
# Create directory structure
echo mkdir examples
mkdir examples
chmod -R 755 *
# Copy license
echo cp "${SOURCE}"/copasi/ArtisticLicense.txt LICENSE
cp "${SOURCE}"/copasi/ArtisticLicense.txt LICENSE
chmod 644 LICENSE
# Copy copasi.jar
echo cp "${BINARY_DIR}"/copasi/bindings/java/copasi.jar .
cp "${BINARY_DIR}"/copasi/bindings/java/copasi.jar .
chmod 644 copasi.jar
# Copy copasi_gui.jar
echo cp "${BINARY_DIR}"/copasi/bindings/java/copasi-gui.jar .
cp "${BINARY_DIR}"/copasi/bindings/java/copasi-gui.jar .
chmod 644 copasi-gui.jar
# Copy CopasiJava.dll
echo "${BINARY_DIR}"/cp copasi/bindings/java/CopasiJava.dll .
cp "${BINARY_DIR}"/copasi/bindings/java/CopasiJava.dll .
chmod 644 CopasiJava.dll
# Copy examples
echo cp "${SOURCE}"/copasi/bindings/java/examples/*.java examples
cp "${SOURCE}"/copasi/bindings/java/examples/*.java examples
chmod 644 examples/*
popd
echo tar -cvzf ${PACKAGE_NAME}.tar.gz ${PACKAGE_NAME}
tar -czvf ${PACKAGE_NAME}.tar.gz ${PACKAGE_NAME}
popd
|