File: bootstrap.php

package info (click to toggle)
fatcat 1.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 960 kB
  • sloc: cpp: 2,533; php: 89; sh: 25; xml: 18; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Copying the testing images to /tmp
 */

$images = array(
    'deleted', 'empty', 'hello-world', 'repair'
);
$directory = __DIR__ . '/../docs/images';

foreach ($images as $image) {
    $file = $image . '.img.gz';
    echo "Extracting $file...\n";
    `cp $directory/$file /tmp`;
    `gunzip -f /tmp/$file`;
}