Write a PKGBUILD file for a binary software

Hello for all ,I need write a PKGBUILD file for crate an arch-package of bmrt software .I dont understand to much the rules for write a PKGBUILD , but I imagina that is possible write a PKGBUILD file for a compiled software , I look for a document that explain in detail the reference for the sintax in the PKGBUILDS files,Any bode know that?

You might look at some of the examples that do this already, either in AUR or ABS.
Some examples:
various games
j2re
flash-plugin
opera
acroread
if you run the command 'abs' as root, you can find these PKGBUILDs in subdirectories of /var/abs.  Hopefully you could adapt one of those to your binary program.
Dusty

Similar Messages

  • Making a PKGBUILD file for EQC (A LaTeX Equation Compiler)

    Hi everyone,
    Just yesterday I was searching in the web for some alternative to Mathcad (a useful program to make calculations the "engineering-way"), when I found this great software developed by Jan Rheinländer, which in essence, lets you do the same as Mathcad, but using Latex (very beautiful).
    So I decided to make a PKGBUILD, so other people could install it easily. The problem is, that this is my first PKGBUILD file and I have been having problems making it to work.
    Here is the code I have:
    # PKGBUILD for EQC: Latex Equation Compiler
    # Contributor: Cristóbal Tapia <[email protected]>
    pkgname=eqc
    pkgver=20130112
    pkgrel=1
    pkgdesc="A preprocessor for LaTeX files that enables numeric and symbolic calculations"
    arch=('x86_64' 'i686')
    url="http://eqc.sourceforge.net/wiki/index.php/Main_Page"
    license="(L)GPL"
    depends=('ginac' 'cln' 'gmp' 'flex' 'bison' 'texlive-science' 'texlive-pstricks')
    source=()
    _svntrunk="https://eqc.svn.sourceforge.net/svnroot/eqc"
    _eqcsrc="eqc_src"
    build() {
    cd $srcdir
    msg2 "Connecting to Sourceforge server...."
    svn co $_svntrunk $_eqcsrc --config-dir ./ -r '{'$_pkgver'}'
    cd $_eqcsrc
    ./configure
    make
    make install
    package() {
    Can anyone help me a little please?
    Thanks!
    Edit: here is the link to the wiki of the project: http://eqc.sourceforge.net/wiki/index.php/Main_Page
    Last edited by tapia (2013-04-17 03:12:08)

    Hello again!
    I have finally done this. It works for me, so I would like to know if it works for somebody else or if there is any dependency problem.
    PKGBUILD:
    # PKGBUILD for EQC: Latex Equation Compiler
    # Maintainer: Cristóbal Tapia <crtapia a gmail com>
    pkgname=eqc
    pkgrel=1
    pkgver=48
    pkgdesc="A preprocessor for LaTeX files that enables numeric and symbolic calculations"
    arch=('x86_64' 'i686')
    url="http://eqc.sourceforge.net/wiki/index.php/Main_Page"
    license="(L)GPL"
    depends=('subversion' 'ginac' 'cln' 'gmp' 'flex' 'bison' 'texlive-science' 'texlive-pstricks' 'linuxdoc-tools')
    source=(svn+svn://svn.code.sf.net/p/eqc/code)
    md5sums=('SKIP')
    install='eqc-svn.install'
    pkgver() {
    cd $srcdir/code
    svnversion | tr -d [A-z]
    build() {
    cd $srcdir/code
    ./configure
    make
    package() {
    cd $srcdir/code
    make DESTDIR="$pkgdir" install
    eqc-svn.intall:
    post_install() {
    texhash
    post_upgrade() {
    texhash
    post_remove() {
    texhash

  • Pkgbuild file for mit/gnu scheme

    Here is a package build file I made for mit-scheme. This is my first PKGBUILD file, so let me know if I did anything wrong or that should be changed. Note the source line should be all one line with no carriage returns.
    # $Id: PKGBUILD,v 1.0 2004/06/21 20:29:00 fbidwell Exp $
    # Maintainer: fbidwell <[email protected]>
    pkgname=mit-scheme
    pkgver=7.7.90
    pkgrel=1
    pkgdesc="MIT GNU Scheme Programming Language"
    url="http://www.gnu.org/software/mit-scheme/index.html"
    makedepends=('gcc')
    depends=('xfree86' 'glibc' 'ncurses')
    source=(ftp://ftp.gnu.org/gnu/mit-scheme/testing.pkg/$pkgver/$pkgname-$pkgver-uc
    ode.tar.gz ftp://ftp.gnu.org/gnu/mit-scheme/testing.pkg/$pkgver/$pkgname-$pkgver
    -ix86-gnu-linux.tar.gz mit-scheme.patch)
    build() {
    cd $startdir/src/$pkgname-$pkgver
    patch -Np1 -i ../mit-scheme.patch
    cd src/microcode
    ./configure --prefix=/usr
    make || return 1
    cd ../../..
    pwd
    cp -fp $pkgname-$pkgver/src/microcode/scheme bin/.
    cp -fp $pkgname-$pkgver/src/microcode/bchscheme bin/.
    mkdir -p $startdir/pkg/usr/{bin,lib/mit-scheme}
    cp bin/* $startdir/pkg/usr/bin/.
    cp -r lib/mit-scheme/* $startdir/pkg/usr/lib/mit-scheme/.
    md5sums=('c068a2a8c841ded2d478ae1e6e868960' 'f109131a183f991793531ce62052a16b'
    '63933e159094431825a54b218a66e9b0')
    Here is the patch to make it compile
    --- mit-scheme-7.7.90/src/microcode-orig/uxio.c 2004-06-23 01:13:58.000000000 -0
    400
    +++ mit-scheme-7.7.90/src/microcode/uxio.c 2004-06-23 01:13:15.000000000 -0
    400
    @@ -240,11 +240,7 @@
    return ((scr < 0) ? 0 : scr);
    -#ifdef _POSIX
    #include <string.h>
    -#else
    -extern int EXFUN (strlen, (CONST char *));
    -#endif
    void
    DEFUN (OS_channel_write_string, (channel, string),

    Thanks for posting the build file! However, it seems that the patch didn't pass the checksum.
    ==> Making package: mit-scheme 7.7.90-1 (Fri Oct 7 03:04:56 PDT 2005)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    ==> Using local copy of mit-scheme-7.7.90-ucode.tar.gz
    ==> Using local copy of mit-scheme-7.7.90-ix86-gnu-linux.tar.gz
    ==> Found mit-scheme.patch in build dir
    ==> Validating source files with MD5sums
    mit-scheme-7.7.90-ucode.tar.gz ... Passed
    mit-scheme-7.7.90-ix86-gnu-linux.tar.gz ... Passed
    mit-scheme.patch ... FAILED
    ==> ERROR: One or more files did not pass the validity check!
    I copied the patch content verbatim from the parent post.  I bypassed the checksum in PKGBUILD to get it to start compiling, but a proper solution would be appreiciated.
    Also I get the following when compiling:
    option.c: In function 'parse_path_string':
    option.c:830: error: invalid lvalue in increment
    option.c:830: warning: value computed is not used
    option.c:852: error: invalid lvalue in increment
    option.c:852: warning: value computed is not used
    option.c:859: error: invalid lvalue in increment
    option.c:859: warning: value computed is not used
    make: *** [option.o] Error 1
    I'm using gcc 4.0.2 .
    By the way, I did remove the unnecessary carriage returns.
    Thanks!
    Will

  • Write a jave file for creating rules

    Hello,
    How can I write a java file that helps me to create rules? What all do I need
    to import ? And from what do I have to extend my java class?
    Thanx in advance!
    Madhu.

    You might look at some of the examples that do this already, either in AUR or ABS.
    Some examples:
    various games
    j2re
    flash-plugin
    opera
    acroread
    if you run the command 'abs' as root, you can find these PKGBUILDs in subdirectories of /var/abs.  Hopefully you could adapt one of those to your binary program.
    Dusty

  • How to write won WSDL file for SOAP adapter ?

    Hi experts
      Can any one expalin me how to write WSDL file  for SOAP adapter ?
      What and all things i need to know ? i have no idea on this....
      I got the business but to WSDL ...i am very new to this
    Adv...thanks
    Rakesh

    HI,
    Please see the below links,
    Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12
    Regards
    Chilla..

  • Capturing data using write to measurement file for encoder

    hello dear,
    can anyone help to check with my encoder to measure data?
    i have connect the write to measurement file but when i open the .txt file,
    no result appear, thanks so much for your help
    Solved!
    Go to Solution.
    Attachments:
    encoder capture.vi ‏180 KB

    well, I have never used that method to write data to a file, but if you double click on your write the write LabVIEW measurement file object and look at the configuration you have selected save to a series of files.  Is that what you wanted, or did you just want one file?
    Jim
    Jim
    LV 2013

  • Maxl Script will not write to error file for data laod.

    Sorry Glenn here is the new thread. I re ran without the semi colon after data 3 and the same error came up without anything being written to the error file.
    I purposely removed a member from the orginal outline that is included in the data loaded but yet the error file is not written to. I tried doing the load manually but executing it in the background, error file is to be created on my local HD but it does not write it there. Checked the output and it is written to a directory located on the server. Although i think this is normal.
    Could it be that it will not write to a local drive? I am going to try specifying a spot on the server to see if it runs there.
    thanks
    Original post below.
    Hello,
    I am also having this issue.
    I will include my script below but will state some details before
    We are on Essbase 11.1.1.3
    I am running Admin Console from my client PC that connects to the server in the script and I read that in this set up the error file will not get written to. This documentation was for v 9.1.3
    Here is my script (i changed some of the names)
    login 'user' 'password' on server';
    create application 'Money1' as 'Money2';
    spool stderr on to 'errorfile';
    import database 'Money1'.'Main' data
    from local text data_file 'Money1_Data.txt'
    using server rules_file 'Data3'
    on error append to 'dataload.err';
    execute calculation 'CALC ALL;' on 'Money1'.'Main';
    logout;
    spool off;
    exit;
    here is the error output i get:
    code line: on error append to 'dataload.err';
    Statement executed with warnings.
    (3) Syntax error near ['$']
    I don't see a dollar sign anywhere in my code and the error file does not get produced.
    Also do error files get written too if the actins are executed in the background?
    Thanks!
    Alex

    This works for me in a MaxL script run through essmsh.exe:
    import database appname.dbname data from local text data_file "d:\\datafilename.txt" using server rules_file "rulename"
         on error write to "d:\\errorfilename.err" ;Sometimes EAS (I think you are running it through that) does weird things to MaxL. I eschew MaxL in EAS as much as possible (like 100% of the time).
    NB -- the datafilename and errorfilename and their drive letters are local to wherever you're running this process through the MaxL shell. I don't know how that works when you're running EAS -- are drives local to your session, local to the EAS server? Dunno. Leave EAS behind, buy TextPad (no I am not the author of that fine product) and download the MaxL syntax library, and be happy. :)
    Regards,
    Cameron Lackpour
    Edited by: CL on Oct 7, 2010 7:12 AM
    Put the MaxL into a code block to get it to display correctly.

  • Write xmp sidecar files without need to export masters - script

    I've written a script to write xmp sidecar files for referenced and online images (the 2 conditions in the script) of the selected images. I looked for a while at system events and other stuff to be able to write the xmp file, but i'm not a programmer, so in the end i chose the long and dirty way to do it.
    This script will export all iptc expanded fields as aperture does (creating basically the same file). It can be easily adjusted to include other tags, even custom ones. I don't know how to get at the adjustments for images, otherwise those could be included as well.
    If anyone has the energy to clean this up and make it faster, feel free to do so. Next, I'm going to try to write a script to do the opposite, import xmp sidecars for imported online and referenced files.
    Here it goes (thanks to Brett Gross for the database part to find the master filename):
    --script to create sidecar xmp files for referenced files without having to export masters. parts of the script (finding the file name) are by brett gross
    property p_sql : "/usr/bin/sqlite3 "
    global g_libPath
    on run
    my getLibPath()
    --counter for processed images, reset, just in case
    set mastercount to 0
    tell application "Aperture"
    if not (exists selection) then
    display dialog "You have to select at least one image" buttons {"OK"} default button 1
    return
    else
    display dialog "You have selected " & (count of selection) & " images." & return & "Continue?" default button 1
    end if
    set theSel to selection
    --run through the selected images
    repeat with currentpic from 1 to count of theSel
    tell item currentpic of theSel
    -- only apply to referenced and online images
    if referenced and online then
    set mastercount to mastercount + 1
    set curID to id
    --find the master file path and name - this part by brett gross, thanks
    set libPOSIX to POSIX path of g_libPath
    set libDBPOSIX to (libPOSIX & "/Aperture.aplib/Library.apdb") as string
    set theScript to p_sql & (quoted form of libDBPOSIX) & " \"select ZFILEUUID from ZRKVERSION where ZUUID='" & curID & "'\""
    set ZFILEUUID to do shell script theScript
    # ---------- Get the master's path
    set theScript to p_sql & (quoted form of libDBPOSIX) & " \"select ZIMAGEPATH from ZRKFILE where ZUUID='" & ZFILEUUID & "'\""
    set ZIMAGEPATH to do shell script theScript
    # ---------- Get the master's disk name
    set theScript to p_sql & (quoted form of libDBPOSIX) & " \"select ZFILEVOLUMEUUID from ZRKFILE where ZUUID='" & ZFILEUUID & "'\""
    set ZFILEVOLUMEUUID to do shell script theScript
    set theScript to p_sql & (quoted form of libDBPOSIX) & " \"select ZNAME from ZRKVOLUME where ZUUID='" & ZFILEVOLUMEUUID & "'\""
    set diskName to do shell script theScript
    set imgPath to (diskName & "/" & ZIMAGEPATH)
    --end brett gross part
    --strips extension, seems to work for files and paths with more than one period
    set oldlim to AppleScript's text item delimiters
    set AppleScript's text item delimiters to "."
    try --remove last extension only
    set contador to text item -1 of imgPath
    set noExtension to Unicode text 1 thru -((count of contador) + 2) of imgPath
    on error --handle files with no extensions
    set noExtension to imgPath
    end try
    set AppleScript's text item delimiters to oldlim
    --create the file and path name with the .xmp extension for writing
    set xmpPath to "/Volumes/" & noExtension & ".xmp" as Unicode text
    --convert posix path to alias for easier write and read handling
    set xmpPath to POSIX file xmpPath as file specification
    -- header for xmp file
    set xmpheader to ("<?xpacket begin='' id=''?>
    <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 2.9-9, framework 1.6'>
    <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:iX='http://ns.adobe.com/iX/1.0/'>") & return
    -- footer for xmp file
    set xmpfooter to ("</rdf:RDF>
    </x:xmpmeta>
    <?xpacket end='w'?>") & return
    --xmp content, part 1
    --check for existence of iptc tags, create content or empty string depending on existance of tags
    if (exists IPTC tag "Contact") or (exists IPTC tag "Country/PrimaryLocationCode") then
    set xmpcontentpartone to ("<rdf:Description rdf:about='' xmlns:Iptc4xmpCore='http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/'>") & return
    try
    set CountryCode to value of IPTC tag "Country/PrimaryLocationCode"
    set xmpcontentpartone to xmpcontentpartone & tab & "<Iptc4xmpCore:CountryCode>" & CountryCode & "</Iptc4xmpCore:CountryCode>" & return
    end try
    try
    set CreatorContactInfo to value of IPTC tag "Contact"
    set xmpcontentpartone to xmpcontentpartone & tab & "<Iptc4xmpCore:CreatorContactInfo>" & CreatorContactInfo & "</Iptc4xmpCore:CreatorContactInfo>" & return
    end try
    set xmpcontentpartone to xmpcontentpartone & ("</rdf:Description>") & return
    else
    set xmpcontentpartone to ""
    end if
    --xmp content, part 2
    --check for existence of iptc tags, create content or empty string depending on existance of tags
    if (exists IPTC tag "Category") or (exists IPTC tag "City") or (exists IPTC tag "Country/PrimaryLocationName") or (exists IPTC tag "Credit") or (exists IPTC tag "DateCreated") or (exists IPTC tag "Headline") or (exists IPTC tag "Province/State") or (exists IPTC tag "Source") or (exists IPTC tag "SpecialInstructions") or (exists IPTC tag "SupplementalCategory") or (exists IPTC tag "Writer/Editor") then
    set xmpcontentparttwo to ("<rdf:Description rdf:about='' xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>") & return
    try
    set Category to value of IPTC tag "Category"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:Category>" & Category & "</photoshop:Category>" & return
    end try
    try
    set City to value of IPTC tag "City"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:City>" & City & "</photoshop:City>" & return
    end try
    try
    set Country to value of IPTC tag "Country/PrimaryLocationName"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:Country>" & Country & "</photoshop:Country>" & return
    end try
    try
    set Credit to value of IPTC tag "Credit"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:Credit>" & Credit & "</photoshop:Credit>" & return
    end try
    try
    set DateCreated to value of IPTC tag "DateCreated"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:DateCreated>" & DateCreated & "</photoshop:DateCreated>" & return
    end try
    try
    set Headline to value of IPTC tag "Headline"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:Headline>" & Headline & "</photoshop:Headline>" & return
    end try
    try
    set State to value of IPTC tag "Province/State"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:State>" & State & "</photoshop:State>" & return
    end try
    try
    set Source to value of IPTC tag "Source"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:Source>" & Source & "</photoshop:Source>" & return
    end try
    try
    set Instructions to value of IPTC tag "SpecialInstructions"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:Instructions>" & Instructions & "</photoshop:Instructions>" & return
    end try
    try
    set SupplementalCategory to value of IPTC tag "SupplementalCategory"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:SupplementalCategory>" & SupplementalCategory & "</photoshop:SupplementalCategory>" & return
    end try
    try
    set CaptionWriter to value of IPTC tag "Writer/Editor"
    set xmpcontentparttwo to xmpcontentparttwo & tab & "<photoshop:CaptionWriter>" & CaptionWriter & "</photoshop:CaptionWriter>" & return
    end try
    set xmpcontentparttwo to xmpcontentparttwo & ("</rdf:Description>") & return
    else
    set xmpcontentparttwo to ""
    end if
    --xmp content, part 3
    --check for existence of iptc tags, create content or empty string depending on existance of tags
    if (exists IPTC tag "Byline") or (exists IPTC tag "Caption/Abstract") or (exists IPTC tag "CopyrightNotice") or (exists IPTC tag "Keywords") or (exists IPTC tag "ObjectName") then
    set xmpcontentpartthree to ("<rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1/'>") & return
    try
    set creator to value of IPTC tag "Byline"
    set xmpcontentpartthree to xmpcontentpartthree & tab & "<dc:creator><rdf:Seq><rdf:li>" & creator & "</rdf:li></rdf:Seq></dc:creator>" & return
    end try
    try
    set description to value of IPTC tag "Caption/Abstract"
    set xmpcontentpartthree to xmpcontentpartthree & tab & "<dc:description><rdf:Alt><rdf:li xml:lang='x-default'>" & description & "</rdf:li></rdf:Alt></dc:description>" & return
    end try
    try
    set rights to value of IPTC tag "CopyrightNotice"
    set xmpcontentpartthree to xmpcontentpartthree & tab & "<dc:rights><rdf:Alt><rdf:li xml:lang='x-default'>" & rights & "</rdf:li></rdf:Alt></dc:rights>" & return
    end try
    --keywords, slightly different, as they need to be written as a list and not as a string
    --i don't think it's a problem if we create an empty list if there are no keywords present.
    set xmpcontentpartthree to xmpcontentpartthree & tab & "<dc:subject><rdf:Bag>" & return
    --make list item for every keyword
    try
    repeat with n from 1 to count of keywords
    set cursubject to name of (keyword n)
    set xmpcontentpartthree to xmpcontentpartthree & tab & tab & "<rdf:li>" & cursubject & "</rdf:li>" & return
    end repeat
    end try
    set xmpcontentpartthree to xmpcontentpartthree & tab & "</rdf:Bag></dc:subject>" & return
    try
    set title to value of IPTC tag "ObjectName"
    set xmpcontentpartthree to xmpcontentpartthree & tab & "<dc:title><rdf:Alt><rdf:li xml:lang='x-default'>" & title & "</rdf:li></rdf:Alt></dc:title>" & return
    end try
    set xmpcontentpartthree to xmpcontentpartthree & ("</rdf:Description>") & return
    else
    set xmpcontentpartthree to ""
    end if
    --part four. aperture doesn't seem to export anything there
    set xmpcontentpartfour to "<rdf:Description rdf:about='' xmlns:photomechanic='http://ns.camerabits.com/photomechanic/1.0/'>
    </rdf:Description>" & return
    --part five. rating
    set xmpcontentpartfive to "<rdf:Description rdf:about='' xmlns:xap='http://ns.adobe.com/xap/1.0/'>" & return
    try
    set Rating to main rating
    set xmpcontentpartfive to xmpcontentpartfive & tab & "<xap:Rating>" & Rating & "</xap:Rating>" & return
    end try
    set xmpcontentpartfive to xmpcontentpartfive & "</rdf:Description>" & return
    --join everything
    set xmptext to xmpheader & xmpcontentpartone & xmpcontentparttwo & xmpcontentpartthree & xmpcontentpartfour & xmpcontentpartfive & xmpfooter
    --write file
    my writexmpFile(xmptext, xmpPath)
    end if
    end tell
    end repeat
    display dialog "Processed " & mastercount & " referenced and online image(s)." buttons {"OK"} default button 1
    end tell
    end run
    -- write xmp sidecar file routine
    on writexmpFile(theContents, xmpFileName)
    --tell application "Finder"
    try
    open for access xmpFileName with write permission
    set eof of xmpFileName to 0
    write (theContents) to xmpFileName starting at eof
    close access xmpFileName
    on error
    try
    display dialog xmpFileName
    close access xmpFileName
    end try
    end try
    --end tell
    end writexmpFile
    --this part copied from Brett Gross-------------------------------------------------------------------------- --------------------------------
    on getLibPath()
    tell application "System Events" to set p_libPath to value of property list item "LibraryPath" of property list file ((path to preferences as Unicode text) & "com.apple.aperture.plist")
    if ((offset of "~" in p_libPath) is not 0) then
    -- set p_posix to POSIX file p_libPath
    set p_script to "/bin/echo $HOME"
    set p_homePath to (do shell script p_script)
    set p_offset to offset of "~" in p_libPath
    set p_path to text (p_offset + 1) thru -1 of p_libPath
    set g_libPath to p_homePath & p_path
    else
    set g_libPath to p_libPath
    end if
    end getLibPath
    --end brett gross part

    imigra wrote:
    I've written a script to write xmp sidecar files for referenced and online images (the 2 conditions in the script) of the selected images. I looked for a while at system events and other stuff to be able to write the xmp file, but i'm not a programmer, so in the end i chose the long and dirty way to do it.
    This script will export all iptc expanded fields as aperture does (creating basically the same file). It can be easily adjusted to include other tags, even custom ones.
    Excellent stuff!
    I don't know how to get at the adjustments for images, otherwise those could be included as well.
    They are stored as binary data in the Version XML files at the bottom level of the Library package. You can also have a look around in the ZRKIMAGEADJUSTMENT table, but again the actual settings for each adjustment are in binary form.
    If anyone has the energy to clean this up and make it faster, feel free to do so.
    As far as I can remember, Aperture uses the 'proper' IPTC tag names when accessing them via AppleScript, so you may be able to do a loop through all the IPTC tags for each image, rather than picking out each specific one. But that would need checking. The EXIFTools site is a good place to find out about the different ways that IPTC data can be described.
    Next, I'm going to try to write a script to do the opposite, import xmp sidecars for imported online and referenced files.
    Don't rush unless you feel like it - I've already started planning out a free (as in beer and speech) XMP importer with a GUI so that you can choose how to map the XMP CORE tags that don't exist in Aperture. You've given me an extra idea, though - if we can decide on a set of custom tags, my importer could map the XMP CORE tags to them and your exporter could export those tags.
    Thanks for the work!
    Ian
    P.S. I'll check through your script tomorrow, some of the database tables changed between 1.5.6 and 2.0, so you might need to add in a version check to be really thorough.

  • How to combine both DAQ AI signal, write and read file in single VI

    Hi
     I am the new user of LabVIEW version 7.1 for testing automation application. I have to measure 33 signals ( mostly analog like temp, pressure, etc...) from NI USB 6210 DAQ system and write in master file for future verfication.From real data or from master file back up have to write  one more file if only the signal reaches steady state , which will used for analysis and same signals to be read from this file parallely & make a waveform and/or table display format.
    Pl. help me to shortout this problem 
    note: I have plan to ugrade labVIEW version 2011 shortly, so let me know doing parrel acquistion write and read file for data analysis in same VI in version 7.1...... 

    Parallel operations in LabVIEW are very simple.  Just code it in parallel and it will work.
    Try taking a look at some of the examples in the NI Example Finder (Help > Find Examples).  There you will find example for writing to and reading from files, as well as data acquistion in parallel with other operations.
    You might need a producer/consumer architecture is you are acquiring data very quickly.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • I want to sample syncronously an analog and digital channel and write them to file in array.

    I have a PCI-MIO-16XE-10. I am using the AI01 and a DI01 to recieve the signals. I am monitoring and switch and want to know when it comes on in relation to my analog signals when I post process the data so it is important that the signals be synced and placed in the data array. The attatched vi gives some idea of what I want to do. Thank you in advance for help concerning this.
    JML
    Attachments:
    DigitalAnalogSample.vi ‏34 KB

    I am using 6221 same issue i have .
    i need to accuire pulse of train and its simaltanously triggering the AI.
    Issue is while writing this data to an Excel sheet i am missing some data in-between.
    number of pulses are 870 , this count i am getting incermentally in the output of Counter
    i did "build an array" with this AI and Counter data and writing it to file, there i misses data.
    Attached wiring diagram for reference.
    Pls suggest some method to write data to file for every pulses so that i wont miss any data.
    Joe
    Using Ver. 8.0
    Attachments:
    Wiring1.JPG ‏137 KB

  • Control file for the sql*loader

    hi
    i'm doing my project in database management as the part of my project i have to write the control file for the sql*loader so, any one please clear the funda...so that i can get back to my project work...help me with sample code ..

    Refer chapter 3 and 5 on this url for sql loader and its control file references :
    http://download-west.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90192/toc.htm
    or
    http://download-east.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90192/toc.htm
    You may also refer sql loader examples on this page:
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/avi_bulk_loading.html
    Chandar

  • Can't write to a file using File class

    hi every body
    I wanna write into a file for logging purpose, but I always
    got an error when I write to the file ...
    the code is:
    if(!logFile.isOpen)
    logFile.open("text", "write")
    var date = new Date();
    if(logFile.canWrite){
    trace(">> I will write ...");
    var message = "TIME >> " + date.getDate().toString() +
    " : ERROR CODE >> " + infoObject.code + " : LINE NO >>
    " + infoObject.lineno.toString();
    logFile.write(message);
    logFile.flush();
    logFile.close();
    I got an error says: File operation writeln failed
    and also may say: File operation flush failed
    thanx

    First off, don't use finalize(). It is never guaranteed to actually run.
    Just add a cleanup() method to your Account class that flushes and closes the writer; and call it before you exit main().
    Now, as for your Date problem
    java.util.Date certainly does have a no-args constructor.
    java.sql.Date does not.
    Make sure you aren't getting a name collision. (Hint: If you're doing import java.foo.* Stop Doing That. just import the classes you need)

  • Make File for C,Pro*C, Files in Solaris Server

    HI,
    I would like to know how to write a Make File for C,Pro*C Files in Sun Solaris Server.
    Thanks,
    Vijaya.

    The man page for make
    % man make
    has a brief description of using make.
    The Programming Utilities Guide has a more detailed description:
    [http://docs.sun.com/app/docs/doc/805-4035/6j3r2rqnc?a=view]
    For a tutorial, you can get the O'Reilly book "Managing Projects with make"
    [http://www.amazon.com/Managing-Projects-make-Andrew-Oram/dp/0937175900/ref=sr_1_2?ie=UTF8&s=books&qid=1222458409&sr=1-2]
    [http://search.barnesandnoble.com/Managing-Projects-with-Make/Steve-Talbott/e/9780937175187/?itm=5]
    O'Reilly publishes a similar book specifically for the Gnu version of make, "Managing Projects with make", available from the usual sources.
    Sun Studio comes with dmake, which has extensions that allow distributing a project build over multiple computers, and running multiple steps in parallel on the same computer. The manual for it is here:
    [http://docs.sun.com/app/docs/doc/819-5273/aexaz?l=en&q=dmake+doc&a=browse]
    Pro*C is not a Sun product. It is from Oracle, and you should ask Oracle for advice on using it.
    Edited by: clamage45 on Sep 26, 2008 1:52 PM

  • "Write to measurement file" in labview doesnt show time instants of the waveform

    Hi
    I am trying to write my data into a file. I am using the "write to measurement file"  for this purpose. But, the file shows only the magnitudes of the input waveform and not the time instants.
    Can someone help me with this.
    Thanks
    Vijay Chand Ganti

    Hi
    Thanks for ur reply. I tried using the "unbundle by name", but thats only helpful for a cluster of elements.What i need is to
    get the time instants of an analog signal (to verify its sampling rate).
    I am using the example under NI example finder-->Analog Input R series.
    Mine is an FPGA application and so im using the R series. I am anyways attatching the VI which i modified for my use.
    Attachments:
    Analog Input (Host)2.vi ‏375 KB

  • Writing a setup file for Java project

    Hello friends,
    I am Kiran , very new to this Forum and also for java programming, my SE programmed a java project.
    now I got to do two things --
    1.I have to create a jar file with those class files and also an exe file which can execute that jar file.
    2. I have to write a "setup file" for automatic instalation of my Java project.
    so I request my friends to help in these two issues by providing some suggestions to do them.
    Thank you in advance.
    Kiran Karnati.

    1.I have to create a jar file with those class filesI suggest you use ant to build the jar file. Thee are many tutorials available if you use google.
    and also an exe file which can execute that jar file.Java will execute the jar file e.g.
    java -jar myjar.jar
    Of from windows just double click on the jar file.
    2. I have to write a "setup file" for automatic instalation of my Java project. You can do this with ant for remote deployment or use a batch file or use another jar which when run unpacks the application.
    BTW Is Kiran a girl's name or a boy's name or both?

Maybe you are looking for