![]() |
|
|||
File indexing completed on 2025-08-03 08:19:50
0001 #!/usr/bin/env bash 0002 0003 ############################################################################### 0004 # Copyright (c) The JETSCAPE Collaboration, 2018 0005 # 0006 # For the list of contributors see AUTHORS. 0007 # 0008 # Report issues at https://github.com/JETSCAPE/JETSCAPE/issues 0009 # 0010 # or via email to bugs.jetscape@gmail.com 0011 # 0012 # Distributed under the GNU General Public License 3.0 (GPLv3 or later). 0013 # See COPYING for details. 0014 ############################################################################## 0015 0016 # download the code package 0017 #git clone git://git.code.sf.net/p/music-hydro/code music 0018 #git clone --depth=1 git://git.code.sf.net/p/music-hydro/code music 0019 git clone --depth=1 https://github.com/MUSIC-fluid/MUSIC -b JETSCAPE music 0020 0021 0022 ### ALTERNATIVE VERSION 0023 ### Download a zipped snapshot 0024 ### This seems to require somebody visiting the download link on an actual browser 0025 ### to create a then-cached snapshot. That in turn seems to disappear about every day 0026 ### So revert back to using git (but make a shallow clone) 0027 0028 # # Not sure if we want to delete any MUSIC version already there... 0029 # rm -rf music 0030 # # solution from JF 0031 # curlcmd1=wget 0032 # curlcmd2="wget -qO-" 0033 # command -v ${curlcmd1} > /dev/null || { curlcmd1="curl -LOk"; curlcmd2="curl -sk"; } 0034 # command -v ${curlcmd1} > /dev/null || { echo "Please install curl or wget" ; exit 1; } 0035 0036 # downloadpath=$($curlcmd2 https://sourceforge.net/p/music-hydro/code/ci/public_release_prep/tarball | grep -o "https://sourceforge.net/[a-zA-Z0-9_/.-]*/music-hydro-code-[a-zA-Z0-9]*.zip" | head -1) 0037 # filename="${downloadpath##*/}" 0038 # filenameWithoutExt="${filename%%.*}" 0039 0040 # # Download file with either curl or wget 0041 # $curlcmd1 ${downloadpath} 0042 0043 # # Put file in right location 0044 # unzip ${filename} > /dev/null 0045 # rm -f ${filename} 0046 # mv ${filenameWithoutExt} music
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |