diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-03-21 18:03:52 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-03-21 18:03:52 +0100 |
commit | 4265e3125eb5874d1c05a1b333f64542cca34336 (patch) | |
tree | 245870f9c3f28a61c7b1968fc24023c99a50f5f1 /makelist | |
parent | 1beb3a649d916adfc436e9f3e4dd67be094d1a2a (diff) |
oracle-instantclient: 12.1.0.2.0
Diffstat (limited to 'makelist')
-rwxr-xr-x | makelist | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/makelist b/makelist new file mode 100755 index 0000000..de3393e --- /dev/null +++ b/makelist @@ -0,0 +1,28 @@ +#!/usr/bin/env php +<?php + +if ($_SERVER['argc'] < 2) { + die ("Usage ". $_SERVER['argv'][0] . " version\n"); +} +$ver = $_SERVER['argv'][1]; + +@mkdir($ver); + +$zip = new ZipArchive(); +foreach(glob("instantclient*-$ver.zip") as $archive) { + $zip->open($archive); + echo "+ $archive (" . $zip->numFiles . ")\n"; + $txt = array(); + for ($i = 0; $i < $zip->numFiles; $i++) { + $name = $zip->getNameIndex($i); + $pos = strpos($name, '/')+1; + $txt[] = substr($name, $pos); + } + sort($txt); + file_put_contents( + $ver . '/' . basename($archive, "-$ver.zip"), + implode("\n", $txt) + ); +} +echo "Done\n"; + |