summaryrefslogtreecommitdiffstats
path: root/makesrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-xmakesrc.sh20
1 files changed, 3 insertions, 17 deletions
diff --git a/makesrc.sh b/makesrc.sh
index f912313..048f267 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -16,26 +16,12 @@ echo "Getting commit..."
pushd $PROJECT-$COMMIT
git checkout $COMMIT || exit 1
- cp composer.json vendor/composer/installed.json ../
- composer install --no-dev --optimize-autoloader
+ cp composer.json ../
+ composer install --no-interaction --no-progress --no-dev --optimize-autoloader
+ cp vendor/composer/installed.json ../
mkdir data
cp ${HOME}/.cache/bartlett/compatinfo-db.sqlite data
-
- php -r '
- $pkgs = file_get_contents("vendor/composer/installed.json");
- $pkgs = json_decode($pkgs, true);
- if (!is_array($pkgs) || !isset($pkgs["packages"])) {
- echo "cant decode json file\n";
- exit(3);
- }
- $lic = [];
- foreach($pkgs["packages"] as $pkg) {
- printf("Provides: bundled(php-%s) = %s\n", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]);
- $lic = array_merge($lic, $pkg["license"]);
- }
- sort($lic);
- printf("\nLicense: %s\n", implode(" and ", array_unique($lic)));'
popd
echo "Archiving..."