5
edits
Changes
no edit summary
If while executing <tt>./scripts/packages_xml_in</tt> you get:
<pre>
Can't locate Connect.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./scripts/packages_xml_in line 5.
BEGIN failed--compilation aborted at ./scripts/packages_xml_in line 5.
</pre>
You can simply add on head of <tt>./scripts/packages_xml_in</tt>
<pre>push @INC,"/your/installation/path/scripts";</pre>
If you are using WPKG multiple XML style (i.e. you have <tt>packages/adobe.xml</tt>, <tt>packages/winzip.xml</tt> and so on), you can use the bash <tt>for</tt> command:
<pre>
for i in `ls -f1 /wpkg/install/path/packages/ | grep ^[a-z] `; do ./scripts/packages_xml_in /wpkg/install/path/packages/$i; done
</pre>
Same way for Host and Profiles:
<pre>
for i in `ls -f1 /wpkg/install/path/hosts/ | grep ^[a-z] `; do ./scripts/hosts_xml_in /wpkg/install/path/hosts/$i; done
for i in `ls -f1 /wpkg/install/path/profiles/ | grep ^[a-z] `; do ./scripts/profiles_xml_in /wpkg/install/path/profiles/$i; done
</pre>
That's all folks
<pre>
Can't locate Connect.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./scripts/packages_xml_in line 5.
BEGIN failed--compilation aborted at ./scripts/packages_xml_in line 5.
</pre>
You can simply add on head of <tt>./scripts/packages_xml_in</tt>
<pre>push @INC,"/your/installation/path/scripts";</pre>
If you are using WPKG multiple XML style (i.e. you have <tt>packages/adobe.xml</tt>, <tt>packages/winzip.xml</tt> and so on), you can use the bash <tt>for</tt> command:
<pre>
for i in `ls -f1 /wpkg/install/path/packages/ | grep ^[a-z] `; do ./scripts/packages_xml_in /wpkg/install/path/packages/$i; done
</pre>
Same way for Host and Profiles:
<pre>
for i in `ls -f1 /wpkg/install/path/hosts/ | grep ^[a-z] `; do ./scripts/hosts_xml_in /wpkg/install/path/hosts/$i; done
for i in `ls -f1 /wpkg/install/path/profiles/ | grep ^[a-z] `; do ./scripts/profiles_xml_in /wpkg/install/path/profiles/$i; done
</pre>
That's all folks