
         Concepts        


You just need to specify the path to your PRC and voila! Each time you ReCompile your app, RePose will ReInstall your PRC into POSE.
Preferences allow you to fine-tune the behaviour of this tool.
If you are using PRC-Tools or alike, there's a trick below under "ReMake" that also allows for automagically make'ing the PRC when you save your source code! This means you just need to click the [Save] button of your source editor and ReVoila! ReMake will compile your code and RePose will load the new PRC into POSE.
If you're curious, I use ReMake to make RePose and RePose to test ReMake :-}


        Main form        


 Status: you can either activate RePose so that it detects PRC updates, or put it to rest
 Install: opens a file selector dialog with which you can locate your PRC
 Run: launches your PRC directly from RePose
 Install&Run: shortcut for the three previous items combined. Installs PRC, activates RePose and runs PRC. You may find this all-in-one function convenient once you're familiar with RePose.
 PRC box: contains the PRC path, its name, creator ID, version, creation date, modification date and size
 Platform box: info on your desktop's OS, host type/version and ROM version


          Menu           


 Edit allows you to manipulate fields and clipboard
 Options contains preferences, help and about


       Preferences       


 Timeout [default=1]: RePose checks every 'n' seconds to see if the PRC changed. You can set a higher value if your machine is slow, or if you notice any problem related to reactivity of this app. Low values increase reactivity but may cause RePose to "skip a beat" if your platform is slow.
 Beep [default=yes]: RePose will beep everytime it reloads the PRC
 Popup [default=yes]: RePose will pop a message while reloading the PRC
 When PRC is not running [default=start it]: you may choose the action to take upon reloading the PRC (also, this action applies only when RePose is NOT the current application):
   Do nothing: just reload, and that's it! Convenient when you are using another app in POSE and don't want to get interrupted.
   Start it: current app will be terminated and your PRC will be launched. Convenient in situations where you spend most of your time testing your PRC.
   Stop app: current app will be terminated. Convenient when you need to manually launch another app before launching your PRC
 When PRC is running [default=restart it]: only 2 actions available:
   Restart it: your PRC will be relaunched. This is the most common case: you're testing your PRC on POSE, update the source, recompile it, RePose will reload and relaunch the PRC, which you will test, and so on.
   Stop it: your PRC will be terminated. Convenient when you need to manually launch another app before relaunching your PRC.


          ReMake         


For those of you who use a development environment like PRC-Tools, here is a little trick to make your life even easier.
If you're tired of manually running "make" to compile your app everytime you update your source code, you should know that RePose has a cool buddy: ReMake. This script automagically recompiles your source, the same way RePose transparently reloads an updated PRC into POSE.
Both tools get along pretty well and allow for seamless edit-compile-load-run cycles. As inseparable buddies, ReMake and RePose are packaged together.
Here's ReMake:


# Syntax check           
if [ $# != 1 ]           
then                     
  echo "Usage: $0 folder"
  exit                   
fi                       
                         
# If folder exists=>loop 
if [ -d $1 ]             
then                     
  cd $1                  
  while (true) do        
    make -s              
    sleep 2              
  done                   
else                     
  echo "$1 not found"    
fi                       


Here's the deal: ReMake does some quick syntax check, cd's to your source folder and fires a silent 'make' every other second.

And here's an example of how I use ReMake and RePose. I store my sources in e:/Projects. Application 'SuperApp' is in folder e:/Projects/super:

1 I open e:/Projects/super/SuperApp.c in my favorite text editor.

2 I fire a shell, do a 'cd e:/Projects' and then 'ReMake super'. Please note that this shell will be dedicated to running ReMake.

3 I install RePose into POSE, run RePose, tap [Install&Run...] and locate e:/Projects/super/SuperApp.prc. RePose installs it, runs it and works in the background to detect any change of the PRC.

4 In my text editor, I'll do a change to SuperApp.c and save it.

5 ReMake will transparently trigger a compile/link, which RePose will chain to an install/run.


***************************
*      Please visit       *
* mobile.eric-poncet.com  *
***************************

