File dev-helper/build-dep.sh
Last commit: Thu Dec 26 19:48:18 2024 +0100 Jan Dankert New: Import the module 'phariable' via a new dependency script. The Variable Resolver has now it's own repository.
1 #!/bin/bash 2 3 echo "Searching for dependencies ..." 4 5 for depfile in $(find . -name "dependency.txt"); do 6 echo 7 echo "--- Building dependency for ${depfile} ---" 8 url="" 9 files="*.php" 10 target="./" 11 source ${depfile} 12 tmpfile=$(mktemp) 13 echo ">>> Downloading $url" 14 curl -s $url -o $tmpfile 15 dir=$(dirname ${depfile}) 16 echo ">>> Extracting $files in $dir" 17 dircount=$(tr -dc '/' <<<"$files" | awk '{ print length; }') 18 tar vxfz ${tmpfile} -C ${dir} --wildcards $files --strip-components=$dircount 19 echo -e "Downloaded from \`$url\`\n\n**DO NOT CHANGE ANY FILES HERE**" > $dir/README.md 20 rm -v $tmpfile 21 done
Downloaddev-helper/build-dep.sh
History Thu, 26 Dec 2024 19:48:18 +0100 Jan Dankert New: Import the module 'phariable' via a new dependency script. The Variable Resolver has now it's own repository.