Difference between revisions of "Hbcxmlgen-bash"

From WiiBrew
Jump to navigation Jump to search
(r2)
m (Corrected infobox type)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox homebrewapp
+
{{Infobox homebrew
| title      = hbcxmlgen
+
| title      = hbcxmlgen-bash
 
| image      =  
 
| image      =  
| desc        = Bash script for >meta.xml creation.
+
| type        = pc utility
| type        = PC utility
 
 
| license    = GPLv3
 
| license    = GPLv3
 
| author      = [[User:Mcpancakes|mcpancakes]]
 
| author      = [[User:Mcpancakes|mcpancakes]]
| display    =
 
 
| version    = r2
 
| version    = r2
| download    = [http://www.mediafire.com/?tm31tuimhny hbcxmlgen-r2.tar.gz]
+
| download    = http://www.mediafire.com/?nwm4oy21x5o
 
| source      = It's a script.
 
| source      = It's a script.
 
| website    =  
 
| website    =  
Line 14: Line 12:
 
| hbc        =  
 
| hbc        =  
 
| hbb        =  
 
| hbb        =  
| dangerous  =
 
| caution    =
 
| fakesigns  =
 
 
}}
 
}}
  
'''hbcxmlgen''' is a Bash script for creating the Homebrew Channel's meta.xml files.
+
'''hbcxmlgen-bash''' is a Bash script for creating the Homebrew Channel's meta.xml files.
  
 
Along with just making the meta.xml file, it also
 
Along with just making the meta.xml file, it also
  
* can be installed to <code>/usr/bin</code> so you can run it from anywhere just by typing <code>hbcxmlgen</code>
+
* can be installed to <code>/usr/bin</code> so you can run it from anywhere just by typing <code>hbcxmlgen-bash</code>
 
* checks if meta.xml already exists in the current directory, and asks if you want to overwrite it
 
* checks if meta.xml already exists in the current directory, and asks if you want to overwrite it
 
* notifies you if you need write permissions to write in the current directory ''before'' you enter all the meta.xml information
 
* notifies you if you need write permissions to write in the current directory ''before'' you enter all the meta.xml information
* enforces the entering of the release date by making sure you input 14 characteres (YYYYmmddMMDDSS)
+
* enforces the entering of the release date by making sure you input 14 characters (YYYYmmddMMDDSS)
  
  
Also, a bug: You must run install.sh from the directory that hbcxmlgen.sh is in. Otherwise:
+
Also, a bug: You must run install.sh from the directory that hbcxmlgen-bash.sh is in. Otherwise:
 
<pre>
 
<pre>
mcpancakes@desktop:/$ /usbhdd/Programming/hbcxmlgen/install.sh -i
+
mcpancakes@desktop:/$ /usbhdd/Programming/hbcxmlgen-bash/install.sh -i
Copying to /usr/bin/hbcxmlgen ...
+
Copying to /usr/bin/hbcxmlgen-bash ...
 
[sudo] password for mcpancakes:  
 
[sudo] password for mcpancakes:  
cp: cannot stat `hbcxmlgen.sh': No such file or directory
+
cp: cannot stat `hbcxmlgen-bash.sh': No such file or directory
 
Installed!
 
Installed!
 
mcpancakes@desktop:/$  
 
mcpancakes@desktop:/$  
 
</pre>
 
</pre>
  
It won't really be installed. They come together in the same archive anyway, and are extracted to the same place, so just take the time to <code>cd</code> to the directed you unpacked it in and run <code>./install.sh</code> from there.
+
It won't really be installed. They come together in the same archive anyway, and are extracted to the same place, so just take the time to <code>cd</code> to the directory you unpacked it in and run <code>./install.sh -i</code> from there. The uninstall can be run from any directory, however.
  
 
== README ==
 
== README ==
 
<pre>
 
<pre>
+---------------+
+
+--------------------+
|  hbcxmlgen  |  --->  by mcpancakes
+
|  hbcxmlgen-bash   |  --->  by mcpancakes
+---------------+
+
+--------------------+
  
hbcxmlgen is a bash script for assisting in the creation of the Homebrew Channel's
+
hbcxmlgen-bash is a bash script for assisting in the creation of the Homebrew Channel's
 
"meta.xml" files. If you run the installer, you get easy access to it no matter what
 
"meta.xml" files. If you run the installer, you get easy access to it no matter what
 
your current working directory may be.
 
your current working directory may be.
Line 68: Line 63:
  
 
Once installed:
 
Once installed:
   $ hbcxmlgen
+
   $ hbcxmlgen-bash
  
 
If not installed:
 
If not installed:
   $ ./hbcxmlgen.sh
+
   $ ./hbcxmlgen-bash.sh
 
     OR
 
     OR
   $ [dir of script]/hbcxmlgen.sh
+
   $ [dir of script]/hbcxmlgen-bash.sh
  
 
+----------+
 
+----------+
Line 86: Line 81:
  
 
== Changelog ==
 
== Changelog ==
[http://www.mediafire.com/?tm31tuimhny r2] - fixed issue of the wrongly always-appearing "Write privileges required" message. (released ~8 hours after r1).<br>
+
[http://www.mediafire.com/?nwm4oy21x5o r2] - fixed issue of the wrongly always-appearing "Write privileges required" message when there was no meta.xml already in the directory. Sorry to the 11 who already downloaded it :\ . When write privileges are required, running with <code>sudo</code> breaks the conditional statements for some odd reason (this existed in r1 as well). <code>su -c</code> works, though. (released ~8 hours after r1).<br />
 
[http://www.mediafire.com/?zyzdmxd1ztk r1] - initial release.
 
[http://www.mediafire.com/?zyzdmxd1ztk r1] - initial release.
  
 
== Note ==
 
== Note ==
  
[[HBCXMLGen]] is [[User:Pinecone|Pinecone's]] Java-based program that serves the same purpose as hbcxmlgen.
+
[[HBCXMLGen]] is [[User:Pinecone|Pinecone's]] Java-based program that serves the same purpose as hbcxmlgen-bash.
  
Pinecone: If you want me to change the name, just say so. It was yours first, after all ;)
+
[[Category:Homebrew applications]]
 
 
[[Category: Homebrew applications]]
 

Latest revision as of 16:00, 11 September 2009

hbcxmlgen-bash
General
Author(s)mcpancakes
TypePC utility
Versionr2
LicenseGPLv3
Links
Download
Source


hbcxmlgen-bash is a Bash script for creating the Homebrew Channel's meta.xml files.

Along with just making the meta.xml file, it also

  • can be installed to /usr/bin so you can run it from anywhere just by typing hbcxmlgen-bash
  • checks if meta.xml already exists in the current directory, and asks if you want to overwrite it
  • notifies you if you need write permissions to write in the current directory before you enter all the meta.xml information
  • enforces the entering of the release date by making sure you input 14 characters (YYYYmmddMMDDSS)


Also, a bug: You must run install.sh from the directory that hbcxmlgen-bash.sh is in. Otherwise:

mcpancakes@desktop:/$ /usbhdd/Programming/hbcxmlgen-bash/install.sh -i
Copying to /usr/bin/hbcxmlgen-bash ...
[sudo] password for mcpancakes: 
cp: cannot stat `hbcxmlgen-bash.sh': No such file or directory
Installed!
mcpancakes@desktop:/$ 

It won't really be installed. They come together in the same archive anyway, and are extracted to the same place, so just take the time to cd to the directory you unpacked it in and run ./install.sh -i from there. The uninstall can be run from any directory, however.

README

+--------------------+
|   hbcxmlgen-bash   |   --->  by mcpancakes
+--------------------+

hbcxmlgen-bash is a bash script for assisting in the creation of the Homebrew Channel's
"meta.xml" files. If you run the installer, you get easy access to it no matter what
your current working directory may be.

+------------------+
| (Un)Installation |
+------------------+

install.sh parameters:
   -i = install
   -u = uninstall

$ sh install.sh -i |-u
   OR
$ bash install.sh -i | -u

+---------+
| Running |
+---------+

Once installed:
  $ hbcxmlgen-bash

If not installed:
  $ ./hbcxmlgen-bash.sh
     OR
  $ [dir of script]/hbcxmlgen-bash.sh

+----------+
| Feedback |
+----------+

mc@mcpancakes.com

This is the first "formal" release of any programming I've ever done, so feedback
would be appreciated!

Changelog

r2 - fixed issue of the wrongly always-appearing "Write privileges required" message when there was no meta.xml already in the directory. Sorry to the 11 who already downloaded it :\ . When write privileges are required, running with sudo breaks the conditional statements for some odd reason (this existed in r1 as well). su -c works, though. (released ~8 hours after r1).
r1 - initial release.

Note

HBCXMLGen is Pinecone's Java-based program that serves the same purpose as hbcxmlgen-bash.