<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>miscellaneous.debris &#187; Miscellaneous debris</title>
	<atom:link href="http://www.miscdebris.net/blog/category/miscellaneous-debris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.miscdebris.net/blog</link>
	<description>A blog about my research work, computer and internet stuff, personal life.</description>
	<lastBuildDate>Mon, 21 Jun 2010 21:28:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Instructions on how to create DevPak packages</title>
		<link>http://www.miscdebris.net/blog/2008/10/07/instructions-on-how-to-create-devpak-packages/</link>
		<comments>http://www.miscdebris.net/blog/2008/10/07/instructions-on-how-to-create-devpak-packages/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:55:50 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Miscellaneous debris]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=61</guid>
		<description><![CDATA[I&#8217;m in the process of writing a DevPak for the libharu libary. These are actually tar.bz2 packages of whatever you think is a good idea to install into the Dev-C++, Code::Blocks or wxDev-C++ IDEs. E.g. precompiled libraries and necessary header files. In addition one adds a so called DevPackage file, which tells the IDEs where [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m in the process of writing a DevPak for the <a href="http://www.libharu.org" target="_blank">libharu</a> libary. These are actually tar.bz2 packages of whatever you think is a good idea to install into the <a href="http://www.bloodshed.net/dev/" target="_blank">Dev-C++</a>, <a href="http://www.codeblocks.org/" target="_blank">Code::Blocks</a> or <a href="http://wxdsgn.sourceforge.net/" target="_blank">wxDev-C++</a> IDEs. E.g. precompiled libraries and necessary header files. In addition one adds a so called DevPackage file, which tells the IDEs where to put all the files. Since you are also allowed to install files into the windows directory, these packages are also quite dangerous &#8211; you should check the package content first (rename xxx.DevPak to xxx.tar.bz2). The DevPackage file format is more or less straight forward, but first I couldn&#8217;t find a documentation for that. In the cvs repository of Dev-C++ there was actually a documentation (<a href="http://dev-cpp.cvs.sourceforge.net/viewvc/dev-cpp/V5/source/packman/File%20Format.txt?view=log" target="_blank">File Format.txt</a>), but it contained some errors. So I updated the file and make it available in this post.<span id="more-61"></span></p>
<pre>                           Dev-C++ Package File Format
                         Version 1 - March the 15th, 2002
                           Update October the 7th, 2008

General Information
-------------------
The content of a DevPak package is described using a package description file,
which has the extension .DevPackage. The file is really a simple INI file.
This is an updated version of the original "File Format.txt" file found
in the cvs repository of Dev C++:

http://dev-cpp.cvs.sourceforge.net/viewvc/dev-cpp/V5/source/packman/File%20Format.txt?view=log

or in the svn repository of wxDev-C++ (or wxDesigner)

http://wxdsgn.svn.sourceforge.net/viewvc/wxdsgn/trunk/packman/File%20Format.txt?view=log

Sections
--------
The .DevPackage file contains three sections:
[Setup]
This section contains information about the package, such as package name,
version, description, readme, license, etc.

[Files]
This section contains information about files, and where they should be
installed to.

[Icons]
This section contains information about links to documentation or webpages
which are added to the Dev-C++ start menu.

The [Setup] section
-------------------
This section *must* contain at least the following keys:
Version     The package format's version number. A higher version number means
            that this package is not compatible with older package managers.
AppName     A name for the package. Example: MyApp
AppVerName  The package's name and the version together.
            Example: MyApp Version 1.0
AppVersion  The package's version number. Example: 1.0
MenuName    A name for a menu group for this package.

The following keys are optional:
Url           An URL to the library's website.
Picture       A filename to a logo/picture/whatever that will be displayed.
Description   A desription for the package.
Readme        A filename to the Readme file, relative to the .DevPackage file.
              Example: README.TXT
License       A filename to the license file, relative to the .DevPackage file.
              Example: COPYING.TXT
Reboot        Wether the package requires a reboot or not in order to function
              properly. The value can be either 1 (true) or 0 (false).
Dependencies  A comma-seperated list of package names that this package
              depends on.

The [Files] section
-------------------
Keys in the Files section are composed in the following format:

Source=Destdir\[FileName][;Flags]

Source (required):
The name of the source file, relative to the .DevPackage file.
This can be a directory, in which case all files inside that directory will be
copied.

Destdir (required):
The destination directory. Please note that Destdir must *always* end with a
backslash (\). Otherwise it will be interpreted as FileName.

FileName (optional):
If this is specified, the copied file will be renamed to the specified filename.

Flags (optional):
An extra set of options.
recursive   If Source is a directory, the installer will recurse into any
            subdirectories and copy the files inside those subdirectories too.
            This doesn't work in Dev-C++, since one one hand the directories
            are copied recursively by default and on the other hand the ";"
            is used in DestDir corrupting the destination filename.

Constants:
Sourcedir and Destdir can contain constants. A constant will be replaced to
their literal value, depending on the user's configuration. The constants'
names are not case sensitive.
&lt;app&gt;  Dev-C++'s root directory (usually C:\Dev-C++).
&lt;src&gt;  The source directory (the directory where the .DevPackage file is
       located).
&lt;win&gt;  The system's Windows directory (usually C:\WINDOWS).
&lt;sys&gt;  The system's Windows System directory (usually C:\WINDOWS\SYSTEM).

Examples:
Foo.txt=&lt;app&gt;\                         Installs to C:\Dev-C++\Foo.txt
Bar.h=&lt;app&gt;\include\FooBar.h           Installs to C:\Dev-C++\include\FooBar.h
L33t.dll=&lt;sys&gt;\                        Installs to C:\WINDOWS\System\L33t.dll
WindowsSucks.exe=&lt;win&gt;\Explorer.exe    Installs to C:\WINDOWS\Explorer.exe
BigFolder=C:\;recursive                Installs all files in BigFolder,
                                       including all files inside any
                                       subfolders, to C:\

The [Icons] section
-------------------
This section is ignored if MenuName (in the Setup section) is not given.

Entries in this section describe what menu items should be created.
Each entry has the following format:

Name=Target[,Icon Filename]

Target can contain constants as described in the Files section.

Examples:
[Setup]
MenuName=GTK
[Icons]
Website=http://www.gtk.org/

This will create the menu group "Start-&gt;Programs-&gt;Bloodshed Dev-C++-&gt;GTK",
with 1 menu item, called Website, which points to http://www.gtk.org/

[Setup]
MenuName=FLTK
[Icons]
UI Designer=&lt;app&gt;\bin\Fluid.exe,&lt;app&gt;\Icons\Fluid.ico
Website=http://www.fltk.org/

Let's assume that Dev-C++ is installed in C:\Dev-C++. This will create the
menu group "Start-&gt;Programs-&gt;Bloodshed Dev-C++-&gt;FLTK", with 2 menu items:
- Website, which points to http://www.gtk.org/
- UI Designer, which points to C:\Dev-C++\bin\fluid.exe, and use the icon
  file C:\Dev-C++\Icons\Fluid.ico</pre>
<p>The file can also be downloaded: <a href="http://www.miscdebris.net/blog/wp-content/uploads/2008/10/devpak-format.txt">devpak-format</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2008/10/07/instructions-on-how-to-create-devpak-packages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use Mercurial for easy local revision backup</title>
		<link>http://www.miscdebris.net/blog/2008/09/30/use-mercurial-for-easy-local-revision-backup/</link>
		<comments>http://www.miscdebris.net/blog/2008/09/30/use-mercurial-for-easy-local-revision-backup/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 10:07:10 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Miscellaneous debris]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/2008/09/30/use-mercurial-for-easy-local-revision-backup/</guid>
		<description><![CDATA[I regularly make backups of all my data, it&#8217;s also synchronized on several computers and hard disks. But since I backup only once a week, I don&#8217;t really have several revisions from files available between the backups. This is espacially necessary if you work on some code of a small project, which is not revisioned [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly make backups of all my data, it&#8217;s also synchronized on several computers and hard disks. But since I backup only once a week, I don&#8217;t really have several revisions from files available between the backups. This is espacially necessary if you work on some code of a small project, which is not revisioned via svn or cvs &#8211; and you don&#8217;t want to or have no access to svn. Also you don&#8217;t want to set up a local svn or cvs repository. You could use <a href="http://www.apple.com/macosx/features/timemachine.html" target="_blank">Time Machine</a> on Mac OS X and there are some other tools available on Windows, like <a href="http://www.mogware.com/FileHamster/" target="_blank">FileHamster</a>. But FileHamster wasn&#8217;t always trouble free and by coincidence I found another solution which is rather appealing: <a href="http://www.selenic.com/mercurial/wiki/" target="_blank">Mercurial</a>.</p>
<p>The nice thing about Mercurial is, that it is a fast, distributed, lightweight Source Control Management system &#8211; you don&#8217;t need a server for it. The revisions are save to the local .hg folder. In this post I just explain some basics to get started (on Windows &#8211; but apart from the installation process, it&#8217;s the same for Mac OS X and Linux).</p>
<p><span id="more-48"></span>First download the binary distribution of Mercurial at the <a href="http://mercurial.berkwood.com/" target="_blank">download page</a>. Download the latest installer and let the installer change the system PATH variable, so that hg.exe (chemical symbol for Mercurial) is found in all opened CLIs. There is also a GUI Mercurial client available (<a href="http://tortoisehg.sourceforge.net/" target="_blank">TortoiseHg</a>), but since I already have TortoiseCSV and TortoiseSVN installed, I didn&#8217;t want to bloat my contect menu any further.<br />
Open a Windows CLI (Start-&gt;Run&#8230;, enter cmd.exe) and cd into the directory where your files are which need to be revisioned. You create now a repository with</p>
<pre>hg init</pre>
<p>A .hg directory will be created and the repository initialized. Now we add files we want to be in the revision with e.g.</p>
<pre>hg add *.php</pre>
<p>Adding a folder will add also the content of that folder. After that you need to commit the files to the repository with</p>
<pre>hg commit -m "Adding files"</pre>
<p>You can check which files were changed or need to be commited with</p>
<pre>hg status</pre>
<p>A log will be shown with</p>
<pre>hg log</pre>
<p>In order to ignore files you need to create a .hgignore text file in the same directory where the .hg directory is and add something like</p>
<pre>syntax: glob
.hgignore
*.m4</pre>
<p>If you didn&#8217;t commit your changes to a file you can revert to the revision in the repository with</p>
<pre>hg revert file</pre>
<p>In order to go back to a special revision of a file use the</p>
<pre>hg backout</pre>
<p>command (see the help (hg help backout) for the exact use).</p>
<p>As said, these are only the basic features. For further information head to the <a href="http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial">tutorial </a>or the <a href="http://www.selenic.com/mercurial/wiki/index.cgi/QuickReferenceCardsAndCheatSheets" target="_blank">quick reference cards</a>. Extensive documentation about all features can be found in the freely available book <a href="http://hgbook.red-bean.com/">&#8220;Distributed revision control with Mercurial&#8221;</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2008/09/30/use-mercurial-for-easy-local-revision-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Der Virtuos</title>
		<link>http://www.miscdebris.net/blog/2006/08/01/der-virtuos/</link>
		<comments>http://www.miscdebris.net/blog/2006/08/01/der-virtuos/#comments</comments>
		<pubDate>Wed, 02 Aug 2006 07:30:11 +0000</pubDate>
		<dc:creator>Werner</dc:creator>
				<category><![CDATA[Miscellaneous debris]]></category>

		<guid isPermaLink="false">http://www.miscdebris.net/blog/?p=12</guid>
		<description><![CDATA[Last Monday I have been to the Karikaturmuseum in Krems, which also showed an exhibition about Wilhelm Busch, which is well known for his story &#8220;Max &#038; Moritz&#8220;. But I didn&#8217;t know &#8220;Der Virtuos&#8221; &#8211; and one of the pictures is really funny and could also be drawn by today&#8217;s cartoonists.]]></description>
			<content:encoded><![CDATA[<p>Last Monday I have been to the <a target="_blank" href="http://www.karikaturmuseum.at/">Karikaturmuseum</a> in Krems, which also showed an exhibition about <a target="_blank" href="http://www.wilhelm-busch.de">Wilhelm Busch</a>, which is well known for his story &#8220;<a title="Max &#038; Moritz" target="_blank" href="http://www.wilhelm-busch.de/index.php?pageID=49">Max &#038; Moritz</a>&#8220;. But I didn&#8217;t know &#8220;<a target="_blank" href="http://www.wilhelm-busch.de/index.php?pageID=50">Der Virtuos</a>&#8221; &#8211; and one of the pictures is really funny and could also be drawn by today&#8217;s cartoonists.</p>
<p><img alt="Der Virtuos - Finale furioso" title="Der Virtuos - Finale furioso" src="http://www.wilhelm-busch.adminix.de/_user/customer/3/images/der_virtuos/GR000013.JPG" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miscdebris.net/blog/2006/08/01/der-virtuos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
