~mike-silverorange/+junk/services-amazon-sqs

« back to all changes in this revision

Viewing changes to package.php

  • Committer: Michael Gauthier
  • Date: 2008-12-09 16:17:06 UTC
  • Revision ID: gauthierm@soyuz-20081209161706-553josr0mofjmsbz
Fix up windows line breaks in windows ini file and batch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    'exceptions'          => array(
68
68
        'scripts/sqs'     => 'script',
69
69
        'scripts/sqs.bat' => 'script',
70
 
        'cfg/sqs.ini'     => 'cfg'
 
70
        'cfg/sqs.ini'     => 'cfg',
 
71
        'cfg/sqs-win.ini' => 'cfg'
71
72
    ),
72
73
    'ignore'              => array(
73
74
        'package.php',
81
82
    'installexceptions'   => array(
82
83
        'scripts/sqs'     => '/',
83
84
        'scripts/sqs.bat' => '/',
84
 
        'cfg/sqs.ini'     => '/'
 
85
        'cfg/sqs.ini'     => '/',
 
86
        'cfg/sqs-win.ini' => '/'
85
87
    )
86
88
));
87
89
 
129
131
$package->addReplacement('Amazon/SQS/Client.php', 'package-info',
130
132
    '@name@', 'name');
131
133
 
 
134
$package->addWindowsEol('scripts/sqs.bat');
 
135
$package->addWindowsEol('cfg/sqs-win.ini');
 
136
 
132
137
$package->setPhpDep('5.2.1');
133
138
 
134
139
$package->addPackageDepWithChannel('required', 'PEAR',
146
151
$package->setPearInstallerDep('1.7.0');
147
152
$package->generateContents();
148
153
 
149
 
 
150
154
// windows release
151
155
$package->addRelease();
152
156
$package->setOsInstallCondition('windows');
153
 
$package->addWindowsEol('scripts/sqs.bat');
154
 
$package->addWindowsEol('cfg/sqs.ini');
 
157
$package->addIgnoreToRelease('cfg/sqs.ini');
155
158
$package->addInstallAs('scripts/sqs', 'sqs');
156
159
$package->addInstallAs('scripts/sqs.bat', 'sqs.bat');
157
 
$package->addInstallAs('cfg/sqs.ini', 'sqs.ini');
 
160
$package->addInstallAs('cfg/sqs-win.ini', 'sqs.ini');
158
161
 
159
162
// *nix release
160
163
$package->addRelease();
161
164
$package->addIgnoreToRelease('scripts/sqs.bat');
 
165
$package->addIgnoreToRelease('cfg/sqs-win.ini');
162
166
$package->addInstallAs('scripts/sqs', 'sqs');
163
167
$package->addInstallAs('cfg/sqs.ini', 'sqs.ini');
164
168