Makepkg: Record PKGBUILD sources in .PKGINFO files for maintenance

To me, it seems like a good idea to record all the source files listed in PKGBUILD's to their accompanying .PKGINFO files; then, should the user have configured the $SRCDEST variable in his /etc/makepkg.conf, this would allow old source files to be (optionally) automatically removed when `pacman -Sc' is run, the package is upgraded, or uninstalled.  Such a feature would save (me) a lot of time and effort manually sorting through and cleaning them.
Do you "concur"? ( )
Of course, for this feature to be really useful, you would have to compile from source often.

This script will parse all the PKGBUILD's in your $ABSROOT directory, collect all their sources into an array, and interactively remove each package NOT in the array from your $SRCDEST, although recording each pkg's source files into its .PKGINFO file would be SO much easier, faster, simpler, and safer (as no unwanted code -- such as little tid bits outside the build() method of PKGBUILD's -- is executed while the sources are being collected).
#!/bin/bash
. /etc/makepkg.conf
. /etc/abs.conf
if [[ "${SRCDEST}" != "" && "${ABSROOT}" != "" && -d "${SRCDEST}" && -d "${ABSROOT}" ]]; then
# Holds the column width of the current terminal window
COLS=$(tput cols)
# Create an empty row of the width of the current terminal window
#+ which will be used to erase the current row.
for sp in $(seq $COLS); do
empty_row="${empty_row} "
done
# Array to hold the sources
sources=()
# Array to hold the files to remove
remove_files=()
echo "Collecting sources..."
for PKGBUILD in $(find "${ABSROOT}" -type f -name PKGBUILD); do
echo -ne "${empty_row}\r${PKGBUILD:0:$COLS}\r"
. "${PKGBUILD}" &> /dev/null # Silence is golden
sources=(${sources[@]} ${source[@]##*/})
done
# Sort and prune the files
sources=($(for src_file in ${sources[@]}; do echo "${src_file}"; done | sort | uniq))
echo -e "${empty_row}\rExamining ${SRCDEST}..."
for src_file in $(find "${SRCDEST}" -type f | sort); do
# Show the status
echo -ne "${empty_row}\r${src_file:0:$COLS}\r"
# Copy the basename of the current source file for comparisons
current=${src_file##*/}
i=0
j=${#sources[@]}
k=$(( (i + j) / 2 ))
# Perform a binary search for the current file
for (( c = 0; c < ${#sources[@]}; c++ )); do
let "k = (i + j) / 2"
if [[ "${sources[k]}" < "${current}" ]]; then
let "i = k + 1"
elif [[ "${sources[k]}" > "${current}" ]]; then
let "j = k - 1"
else
break
fi
done
# If the file at ${sources[k]} isn't the one we're looking for,
#+ check the element immediately before and after it.
if [[ "${sources[k]}" < "${current}" ]]; then
# Bash will let me slide when I try to print an element beyond its indices ...
let "k += 1"
elif [[ "${sources[k]}" > "${current}" && $k > 0 ]]; then
# ... but complains when I try to print an element at an index < 0
let "k -= 1"
fi
# If a match is not found ...
if [[ "${sources[k]}" == "${current}" ]]; then
# Since both arrays are sorted, I can remove all the elements
#+ in ${sources[@]} up to index k.
sources=(${sources[@]:k + 1})
# Proceed to the next iteration
continue
fi
# Else, add the file to the list of those to be removed
remove_files=(${remove_files[@]} ${src_file})
done
echo -e "${empty_row}\rFound ${#remove_files[@]} files to remove:"
if (( ${#remove_files[@]} )); then
for index in $(seq ${#remove_files[@]}); do
echo " ${index}) ${remove_files[index - 1]}"
done
echo -n | read # Clear the buffer (I had some issues)
echo -n "Would you like to remove all these? [Y|n|c]"
read ans # or `read -n 1 ans' if you prefer
case "$ans" in
""|[Yy]|[Yy][Ee][Ss])
for f2r in ${remove_files[@]}; do
rm "$f2r" || echo "cannot remove $f2r"
done
[Cc]|[Cc][Hh][Oo][Ss][Ee])
for f2r in ${remove_files[@]}; do
echo -n "${f2r}? [Y|n] "
echo -n | read # Clear the buffer, again
read ans
if [[ "$ans" == "" || "$ans" == [Yy] || "$ans" == [Yy][Ee][Ss] ]]; then
rm "$f2r" || echo "cannot remove $f2r"
fi
done
esac
fi
elif [[ "${SRCDEST}" == "" || ! -d "${SRCDEST}" ]]; then
echo "Your \$SRCDEST variable is invalid" 1>&2
echo "Be sure it's set correctly in your \`/etc/makepkg.conf'" 1>&2
exit 1
else
echo "Your \$ABSROOT variable is invalid" 1>&2
echo "Be sure you have \`abs' installed and that \`/etc/abs.conf' exists" 1>&2
exit 1
fi
(06/02/2009) If we depended on many little scripts to handle our package management, what would then be the purpose of package managers?
(06/02/2009) Minor edit -> changed `echo' to `echo -n'  on line 90 of my script (superficial modification).
Last edited by deltaecho (2009-06-02 21:42:54)

Similar Messages

  • Where can I Obtain the PKGBUILD and fglrx.install files for my 64bit

    I am frustrated with my HD3870 vid card on my 64 bit Arch so I am actually looking for instructions on how to remove all of the Vidcard drivers and build and install fresh drivers. I read http://wiki.archlinux.org/index.php/ATI but the link for pfgbuild http://www.archlinux.org/packages/12877/ gives me this 404 - Page Not Found
    Sorry, the page you've requested does not exist.
    and after reading allot of posts on the forums here and through google I am starting to believe that the Majority of Video cards are older and most people are using 32bit which is why I need to find out how /where I can find the proper drivers to build or install

    tigrmesh wrote:It seems that the package you're looking for is catalyst.  The PKBUILD and install file for x86_64 can be found here:  http://repos.archlinux.org/viewvc.cgi/c … ra-x86_64/.
    thank you

  • Source of .sca file for XCM

    Hi,
       I am working on SAP UCeS for which the XCM is required.Can anybody tell me the link where I can find the SAPCRMDIC0_0.sca file.
    Regards,
    Umadevi

    Hi!
    The only thing I have about that:essuslwegp
    is in the SAPESS03_0.sca file.
    I hope this can help.
    Sincerely,

  • Where to source MPEG movie files for training?

    Hello All,
    I'm wanting to train-up on iMovie HD 6 editing ahead of a documentary project I've been asked to produce for an Australian environmental education foundation in a couple of weeks.
    My past production experience is restricted to 16mm and SVHV in the early 1990's.
    So I bought the latest version of iLife/iMovie HD 6 hoping to assess it's post-production capabilities and mine to understand them.
    But I found there was no tutorial footage, clips or clip sequences to work with for training. I've sinced searched the internet for such material but was surprised to find nothing. Meanwhile I'm playing with stills.
    As I won't have the camera until a few days before the shoot, I'm losing sleep for not being able to learn and practice my iMovie's postproduction skills.
    Does anyone have any footage, clips or clip sequences that could assist me?
    Also, what are the best tutorial aids for this program you've found?
    Great to discover this forum!
    Graham
    GrahamLapthorne

    Hello Graham:
    Welcome to discussions!
    Go to this page:
    http://www.apple.com/support/imovie
    Scroll down a bit and you'll find the tutorials here:
    http://www.apple.com/ilife/tutorials/imovie/
    Or get the iMovie tutorials in pdf form at:
    http://manuals.info.apple.com/en/iMovieAtAGlance.pdf
    http://manuals.info.apple.com/en/iMovieHDGettingStarted.pdf
    http://manuals.info.apple.com/en/iMovieLesson1.pdf
    http://manuals.info.apple.com/en/iMovieLesson2.pdf
    http://manuals.info.apple.com/en/iMovieLesson3.pdf
    http://manuals.info.apple.com/en/iMovieLesson4.pdf
    http://manuals.info.apple.com/en/iMovieLesson5.pdf
    http://manuals.info.apple.com/en/iMovieLesson6.pdf
    http://manuals.info.apple.com/en/iMovieLesson7.pdf
    Good luck with your project and come back anytime you need a bit of assistance!
    Sue

  • Makepkg issue: cannot create temp file for here-document

    Hi there,
    Since few weeks ago i'm not able to build aur packages. I use yaourt  but i notice the problem comes from makepkg (i searched for the output message and found fakeroot related issues). Here the complete log of, for example, launching makepgk on with the ruby-headers PKGBUILD:
    $ makepkg
    ==> Creazione del pacchetto: ruby-headers 1.9.2_p136-1 (mer 9 feb 2011, 00.27.35, CET)
    ==> Controllo delle dipendenze per l'esecuzione in corso...
    ==> Controllo delle dipendenze per la compilazione in corso...
    ==> Download dei sorgenti in corso...
    -> Download di ruby-1.9.2-p136.tar.bz2 in corso...
    --2011-02-09 00:27:35-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
    => "ruby-1.9.2-p136.tar.bz2.part"
    Risoluzione di ftp.ruby-lang.org... 221.186.184.68
    Connessione a ftp.ruby-lang.org|221.186.184.68|:21... connesso.
    Accesso come utente anonymous ... Login eseguito!
    ==> SYST ... fatto. ==> PWD ... fatto.
    ==> TYPE I ... fatto. ==> CWD (1) /pub/ruby/1.9 ... fatto.
    ==> SIZE ruby-1.9.2-p136.tar.bz2 ... 8819324
    ==> PASV ... fatto. ==> RETR ruby-1.9.2-p136.tar.bz2 ...
    Errore nella risposta del server, chiusura della connessione di controllo.
    Altro tentativo in corso.
    --2011-02-09 00:28:47-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
    (tentativo: 2) => "ruby-1.9.2-p136.tar.bz2.part"
    Connessione a ftp.ruby-lang.org|221.186.184.68|:21... connesso.
    Accesso come utente anonymous ... Login eseguito!
    ==> SYST ... fatto. ==> PWD ... fatto.
    ==> TYPE I ... fatto. ==> CWD (1) /pub/ruby/1.9 ... fatto.
    ==> SIZE ruby-1.9.2-p136.tar.bz2 ... 8819324
    ==> PASV ... fatto. ==> RETR ruby-1.9.2-p136.tar.bz2 ... fatto.
    Lunghezza: 8819324 (8,4M) (non autorevole)
    100%[====================================================================>] 8.819.324 107K/s in 1m 58s
    2011-02-09 00:30:51 (72,8 KB/s) - "ruby-1.9.2-p136.tar.bz2.part" salvato [8819324]
    ==> Validazione dei file sorgenti con md5sums in corso...
    ruby-1.9.2-p136.tar.bz2 ... Verificato
    ==> Estrazione dei sorgenti in corso...
    -> estrazione di ruby-1.9.2-p136.tar.bz2 con bsdtar in corso...
    ==> Avvio di build() in corso...
    ==> Entrata nell'ambiente di fakeroot in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Avvio di package() in corso...
    ==> Rimozione dei dati superflui in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione degli altri file in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione delle pagine man ed info in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione dei simboli non necessari dai binari e dalle librerie in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Creazione del pacchetto in corso...
    -> Generazione del file .PKGINFO in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione del pacchetto in corso...
    xz: /tmp/rb_hdrs/ruby-headers-1.9.2_p136-1-any.pkg.tar: impossibile rimuovere: Successo
    Hints?
    Thanks in advance

    That time it was in /tmp/ruby_headers (which i created) but it happens with yaourt too and for every pkg i tried.
    [miche@bob tmp]$ yaourt -S ruby_headers
    ruby_headers non trovato su AUR
    [miche@bob tmp]$ yaourt -S ruby_header
    ruby_header non trovato su AUR
    ^[[A[miche@bob tmp]$ yaourt -S ruby-headers
    ==> Continuazione dalla compilazione precedente
    ==> Scaricamento del PKGBUILD di ruby-headers da AUR...
    Comment by: hilton on Tue, 28 Dec 2010 03:51:14 +0000
    Updated to 1.9.2_p136!
    First Submitted: Sat, 13 Nov 2010 20:25:52 +0000
    ruby-headers 1.9.2_p136-1 : A package of all Ruby headers needed by some gems like ruby-debug.
    ( Pacchetto non supportato: Potenzialmente pericoloso ! )
    ==> Modificare il PKGBUILD (altamente raccomandato per ragioni di sicurezza) ? [S/n]("A" per annullare)
    ==> ----------------------------------------------
    ==>n
    ==> Dipendenze di ruby-headers
    - ruby (già installato)
    ==> Continuare la compilazione di ruby-headers? [S/n]
    ==> ----------------------------------------------
    ==>s
    ==> Install or build missing dependencies for ruby-headers:
    ==> Compilazione e installazione del pacchetto
    ==> Dipendenze di ruby-headers
    - ruby (già installato)
    ==> Creazione del pacchetto: ruby-headers 1.9.2_p136-1 (mer 9 feb 2011, 01.23.54, CET)
    ==> Controllo delle dipendenze per l'esecuzione in corso...
    ==> Controllo delle dipendenze per la compilazione in corso...
    ==> Download dei sorgenti in corso...
    -> È stato trovato ruby-1.9.2-p136.tar.bz2
    ==> Validazione dei file sorgenti con md5sums in corso...
    ruby-1.9.2-p136.tar.bz2 ... Verificato
    ==> Estrazione dei sorgenti in corso...
    -> estrazione di ruby-1.9.2-p136.tar.bz2 con bsdtar in corso...
    ==> Rimozione dell'esistente directory pkg/ in corso...
    ==> Avvio di build() in corso...
    ==> Entrata nell'ambiente di fakeroot in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Avvio di package() in corso...
    ==> Rimozione dei dati superflui in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione degli altri file in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione delle pagine man ed info in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione dei simboli non necessari dai binari e dalle librerie in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Creazione del pacchetto in corso...
    -> Generazione del file .PKGINFO in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione del pacchetto in corso...
    xz: /tmp/yaourt-tmp-miche/aur-ruby-headers/ruby-headers/ruby-headers-1.9.2_p136-1-any.pkg.tar.xz: impossibile rimuovere: Successo
    Error: Makepkg non ha potuto costruire il pacchetto ruby-headers.
    [miche@bob tmp]$

  • Exporting Audition .wav files for ProTools correctly????

    I'm currently using Audition 3.0, recording multiple live tracks (around 20 instruments at one time) in multitrack mode. While thes e tracks are recording live, Audition is creating the .wav files (source files) in a specified folder....correct?  Now, I've recorded/captured the audio/wav files for the project, and I now want to export these .wav/source files onto a portable hard drive and load (import) them into ProTools for final mixdowns. What are the correct steps in exporting the Audition .wav files, in the right ProTools format, so that ProTools will recognize them properly and open in a PT session?
    I found a post on your forum about this saying:
    "Audition will export files directly in PT's restricted 24-bit format as well if needed (Audition's norm is 32-bit floating point)."
    I have another person doing our mixdown using ProTools, if you're wondering why I'm asking this and not using Audition for the mixdo wn.
    Thank you for your time and I look forward to hearing back from somebody on how to do this.

    You can easily use Audition's "Batch Processing" tool to convert your 32-bit source files to a ProTools compatible 24-bit format.  Switch to "Edit View" and click File > Batch Processing...  In the dialog that comes up, click the "Add Files" button and select the WAV files recorded for your session.  (These files will be in a subfolder of where you saved the original session, named "<session name>_Recorded"  For example, if you created your session in \My Documents\Adobe\Audition\3.0\My Session\  the recordings will be stored in \My Documents\Adobe\Audition\3.0\My Session\My Session_Recorded\ )
    After the files are loaded, click the "New Format" tab and set the Output Format to "Windows PCM (*.WAV)" then click the Format Properties button and choose "24-bit packed int (type 1, 24-bit)"  and click OK.  Click the "Destination" tab and choose a folder to collect the new files, and click "Run Batch."
    After the conversion process has completed, you should be able to send those files to your ProTools engineer for mixing.

  • Get MUTLIPLE output files for SINGLE input file with multiple records

    Hi ,
    I have source xml file  which has multiple records in it and  I want to get multiple seperate  flat files for it.
    this is my source structure
    <root>
    <Header1 fld1=1234 fld2="name1" fld3='SAP1"
    fld4='000" fld5=0 fld6="sdn1"></header>...............no line items here
    <Header2 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value1 fld8=value2 fld9=value3 /line><line fld7=value4 fld8=value5 fld9=value6 /line></header>.....two line items here
    <Header3 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value7 fld8=value8 fld9=value9 /line></header>......one line item here
    Header4 fld1=12345 fld2="name2" fld3='SAP2"
    fld4='0006" fld5=01 fld6="sdn2"</header>.......no line items here
    </root>
    I am trying to get flat files as many time the <b>header</b> values occur that many target files should appear in the target.
    like
    file1:
    1234name1SAP10000~sdn1
    file2:
    123nameSAp000~sdn
    value1value2valu3
    valu4value5value6
    file3:
    123namesap000~sdn
    value7valu8value9
    file4:
    12345name2SAP2000601~SDN2
    here I have 4 headers so i need to get 4 output files ,similarly for 'n' headers I need to get 'n'  output flat files. the above mentioned source xml file is just one file,like that I might get somany sourc xml files which has similar structure in it.
    and also it is important to get the line items,if exists to the header, for the corresponding headers.
    how can I achieve this?do I need to use BPM or any mappings other than Graphical? 
    please suggest me.
    thank you.
    Babu
    sorry,output file structure changed
            Babu

    Babu,
    See the Mapping and the logic.
    Make sure your target message occurrence:http://www.flickr.com/photo_zoom.gne?id=1412748793&size=o
    Check out for source and target structure
    http://www.flickr.com/photo_zoom.gne?id=1412748803&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748809&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748815&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748825&size=o
    Results:http://www.flickr.com/photo_zoom.gne?id=1412748799&size=o
    Note:
    While creating Interface determination choose it as Enhanced/Extended
    The Receiver Content conversion - For field separator and line separator give 'nl' , coz we concatenated all of them using ~ in mapping.
    If you find any discrepancy in the above logic , please let me know.
    raj.

  • Generate xml source file for Oracle Order Capture Print Quote

    Hi,
    I am new to xml and need to work on creating templates for Print Quote.
    I am trying to generate the xml source file for which I enabled the report in system administrator and set the output to XML and assigned to Quoting Reports responsiblity. I then assigned XML Report Publisher to the same responsiblity.
    I ran the report (Print Quote) and then I am trying to run the XML Report Publisher but I cannot get the request id in the list of values.
    I am able to generate xml source file for other reports like Printed Purchase Order etc.,
    The view output for the (Print Quote) report is as follows:
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.26.0
    -->
    <ASOPQTER />
    How do I get the xml source file? Or are there seeded templates that I can use to create more templates? Any help would be appreciated. Thanks Ravi

    Hi, I am in the same position - did this issue ever ger resolved by anyone. I have done a few XMLP reports successfully now using the Word add-in, but customising the Quote output differs from other standard reports.
    If you look at the data definition for Quote it is a 'dummy' definition and has no XML file attached. Does anyone know how I can get the XML format for the report output?
    Also the template uses XSL-FO ?!?!?! rather than RTF - not sure how to work with this, the Oracle docs are not very helpful in this regard either.
    Has anyone successfully managed to customise the Quote print report? Many thanks,
    Roger

  • PSD source file for animated GIF's - Fireworks CS3

    hi
    i've upgraded to Web Premium Suite CS3.
    Q: i have several PSD source file for animated GIF's created
    with ImageReday.
    how can i open/iomport/convert it in/to Fireworks CS3 without
    looing the "animation"
    many thanks
    Ueli

    ugisiger wrote:
    > hi
    > no any extras. simply 5 layers "distributed" on the
    timeline.
    > if i open a "animated" psd, so i get a file with the
    layers and one frame, but
    > loosing animation stuff like "when show witch layer an
    for how long"
    > -> there is no conversion to FW frames.
    >
    > Ueli
    >
    I don't do animations in PS or IR, but if you like, send me
    the file
    and I'll see if I can figure something out.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • Folio Builder: An error has occurred opening the source file for the article layout.

    I have been working on a Folio. When I sat down to work on my folio, I was instructed by indesign to update my Folio producer tools, which I did.
    Since then I can no longer view any article layout from that folio in indesign. Indeed any folio that I create that does not reside on my desktop give the same problem. I can import articles, add articles and they all upload to the proper place at adobe and I can view them. But I simply cannot open them up through folio builder as I previously.
    The exact error message is as below:
    An error has occurred opening the source file for the article layout.
    The InDesign file for the layout cannot be found.
    Another strange thing that seems to be happening is that the folio will randomly reoder the articles in the folio.
    I have dumped my indesign prefs, tried creating an entirely new project, made a new account and even reinstalled the entire software.
    But the problem of opening an article that I have imported or added to a folio, simply not being found to open has got me stumped. I can't proceed with a major project until I can sort this out.
    Can anyone help.
    Many thanks
    Steve
    The problem initially seemed very similar to the one linked below, but I dont get the content generation error
    http://forums.adobe.com/thread/901804?decorator=print&displayFullThread=true

    Questions about the Adobe Digital Publishing Suite should be posted in the DPS Forum.
    http://forums.adobe.com/community/dps

  • Can't Recorde Response file for Oracle client 11.2.0.3 windows 32bit

    Hello
    We are going to upgrade our Oracle client on our clients to 11.2.0.3. But I can not record a resopnsfile with setup.exe.
    Have Oracle removed this feature?
    Here's a dump from setup.exe -help
    There is no possibility to run setup.exe witch -record -destinationfile option
    Preparing to launch Oracle Universal Installer from C:\Users\Test\AppData\Local\
    Temp\OraInstall2013-01-14_02-12-48PM. Please wait ... Usage:
    setup [-options] [(<CommandLineVariable=Value>)*]
    Where options include:
    -clusterware oracle.crs,<crs version>
    Version of Cluster ready services installed.
    -crsLocation <Path>
    Used only for cluster installs, specifies the path to the crs home locat
    ion. Specifying this overrides CRS information obtained from central inventory.
    -invPtrLoc <full path of oraInst.loc>
    Unix only. To point to a different inventory location. The orainst.loc f
    ile contains:
    inventory_loc=<location of central inventory>
    inst_group=<>
    -jreLoc <location>
    Path where Java Runtime Environment is installed. OUI cannot be run with
    out it.
    -logLevel <level>
    To filter log messages that have a lesser priority level than <level>. V
    alid options are: severe, warning, info, config, fine, finer, finest, basic, gen
    eral, detailed, trace. The use of basic, general, detailed, trace is deprecated.
    -paramFile <location of file>
    Specify location of oraparam.ini file to be used by OUI.
    -responseFile <Path>
    Specifies the response file and path to use.
    -attachHome
    For attaching homes to the OUI inventory.
    -cfs
    Indicates that the Oracle home specified is on cluster file system (shar
    ed). This is mandatory when '-local' is specified so that Oracle Universal Insta
    ller can register the home appropriately into the inventory.
    -clone
    For making an Oracle Home copy match its current environment.
    -debug
    For getting the debug information from OUI.
    -detachHome
    For detaching homes from the OUI inventory without deleting inventory di
    rectory inside Oracle home.
    -enableRollingUpgrade
    Used in cluster environment, to enable upgrade of a product on a subset
    of nodes (on which the product was installed).
    -executeSysPrereqs
    Execute system pre-requisite checks and exit.
    -force
    Allowing silent mode installation into a non-empty directory.
    -help
    Displays above usage.
    -ignoreSysPrereqs
    For ignoring the results of the system pre-requisite checks.
    -local
    Performs the operation on the local node irrespective of the cluster nod
    es specified.
    -printdiskusage
    Log debug information for disk usage.
    -printmemory
    Log debug information for memory usage.
    -printtime
    Log debug information for time usage.
    -relink
    For performing relink actions on the oracle home
    Usage: -relink -maketargetsxml <location of maketargetsxml> [-makedepsx
    ml <location of makedepsxml>] [name=value]
    -silent
    For silent mode operations, the inputs can be a response file or a list
    of command line variable value pairs.
    -waitforcompletion
    Installer will wait for completion instead of spawning the java engine a
    nd exiting.
    -suppressPreCopyScript
    Suppress the execution of precopy script.
    -acceptUntrustedCertificates
    Accept untrusted certificates from a secure site.
    -suppressPostCopyScript
    Suppress the execution of postcopy script.
    -noconfig
    Do not execute config tools.
    -noconsole
    For suppressing display of messages to console. Console is not allocated
    -formCluster
    To install the Oracle clusterware in order to form the cluster.
    -remotecp <Path>
    Unix specific option. Used only for cluster installs, specifies the path
    to the remote copy program on the local cluster node.
    -remoteshell <Path>
    Unix specific option. Used only for cluster installs, specifies the path
    to the remote shell program on the local cluster node.
    -executePrereqs
    To execute only the prerequisite checks.
    -ignorePrereq
    To ignore running the prerequisite checks.
    -ignoreInternalDriverError
    To ignore any internal driver errors.
    -downloadUpdates
    To download updates only.
    -showProgress
    To show the installation progress on the console. This option is support
    ed only in case of silent installation.
    Command Line Variables Usage
    Command line variables are specified using <name=value>; for example:
    [ session: | compName: | compName:version: ]variableName=" valueOfVariable"]
    Session/Installer variables are specified using:
    [session:]varName=value
    Ex 1: session:ORACLE_HOME_NAME="OraHome"
    Ex 2: ORACLE_HOME_NAME="OraHome"
    The lookup order is session:varName then just varName. The session prefix is
    used to avoid ambiguity.
    Component variables are specified using:
    [compInternalName:[Version:]]varName
    Ex 1: oracle.comp1:1.0.1:varName="VarValue"
    Ex 2: oracle.comp1:varName="VarValue"
    The lookup order is compInternalName:Version:varName, then compInternalName:
    varName, then just varName.
    Please press Enter to exit...

    Hi,
    There is no record option with 11gR2.
    There is no need to use '-record' flag to record/save the response file. At Summary page of installation, 11gR2 installer provides option to save the response file. We can perfom the silent installation using this saved response file
    Unix:
    ./runInstaller -silent -responseFile <saved_response-file>
    Windows:
    c:\software\11.2.0.1\database\setup.exe -responseFile <saved_response-file>
    For more details, kindly refer
    11gR2 Install (Non-RAC): Understanding New Changes With All New 11.2 Installer (Doc ID 884232.1)
    4th point in the document explains about this
    Thanks,
    Krishna

  • Example of a source file for Creating general maintenance task list

    Hi SAP Gurus,
    I need to create general maintenance task list from a source file. Reading forums i found that it is possible by using LSMW, with object 0490 and method 0000.
    However, I don't know how to associate structure IBIPTLST, IBITLOP and IBIPMAT. When i assign individual source files for each structure, and I execute LSMW, a problem appears indicating that IBITLOP don't have all the required fields from the list header.
    This is the structure propose by SAP in standar programa IBIP.
    Structure - IBIPTLST     Task list header
    |-->>  IBIPTEXT  (see comment below)
       |-->>  IBIPTLOP   Operations
    |       |-->> IBIPTEXT  (see comment below)
       |       |-->> IBIPTMAT  Material for one operation
       |       |-->> IBIPPRTS  Production resources/tools (PRT
       |                   |-->> LONGTEXT  (see comment below)
       |       |-->  IBIPMPAC  Maintenance packages (up to 32)
       |--->> IBIPBDCD (see comment below) from operation overview
    In other forums, a possible solution is to define an unique source file, that is proposed by LSMW, but i don't know how to obtain this template.
    Can you send me an excel example of how to define de input file or the steps I have to follow in order to execute an LSMW or the standard transaction IBIP?.
    My e-mail is [email protected]
    I have read all the SAP documentation, what i really need is an example.
    Thanks a lot
    Andrés.

    solved

  • Logon Error:Could not retrieve the source file for Port "Main"

    Hi All,
    We have a port which is blocked due to structural exceptions.When i try to connect to the Exceptions folder
    "Main[Exceptions]" the import manager throws an error "Logon Error:Could not retrieve the source file for port "Main".
    Any help greatly appreciated

    Hi ,
    Thanks for your reply.
    This is what I see in the log file in the exceptions folder
    These are the line I see almost to the end of the log file before they complete field mappings,value addings
              <Failure ts="2008/07/22 00:10:48.326 GMT" tid="1286" entry-no="9114" operation="Create lookups" rc="0x80000001">Illegal value for parameter</Failure>
              <Timer ts="2008/07/22 00:10:48.327 GMT" tid="1286" entry-no="9115" name="Import Lookup" total="0.040819">1</Timer>
              <Trace ts="2008/07/22 00:10:48.327 GMT" tid="1286" entry-no="9116">Import of Lookup Failed.</Trace>
    But when I open the same source xml file after downloading to my local folder from Exceptions Structural folder and load manually using IM i get the status as "Ready to import".
    Any Help greatly appreciated

  • Trying to upgrade itunes says it cant find the source file for bonjour or quicktime. so it won't update. any help?

    Trying to upgrade itunes. it says it needs the source file to upgrade bonjour and quicktime. I downloaded itunes from a website originally. So therefore, i do not have a "source file" now i try to open itunes and i get a message that says something like "action only valid for installed software. Any ideas? oh ya, and i tried to delete itunes and bonjour and quicktime to start all over but it also said it needs the source files.

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes, QuickTime and Bonjour entries and click "Remove".
    Restart the PC, and try another iTunes install. Does it go through properly this time?

  • Edit Source Files For Skins?

    One of our programmers has asked about the possibility of editing the tab index for the skin on the Captivate demos I'm producing.  Apparently, the stock playback skins don't meet our accessibility standards as tightly as he'd like.  Anyway, I've found a folder in the Captivate 3 program folder called "Templates", within which is another folder called "PlaybackFLA" that contains what appear to be the Flash source files for the skins.  The names of these Flash files correspond to the names of the skins in the dropdown menu, so I assume these are the ones.
    I opened one in Flash and it was clearly the same playback controls used in my demo, so as a test I changed the button colors and saved it in the same folder under a different file name.  However, when I launched Captivate and looked for my new skin in the drop down menu it wasn't listed.  Now I'm confused.  Can anyone tell me why my altered skin Flash files don't appear with the others?  Any help would be welcome.
    Thanks!

    Hi there
    Did you close and restart Captivate?
    I ask because many things like this are read in when Captivate starts. So if it's left running (even with a project closed) it's unaware of changes until the housekeeping routines at startup read it in again.
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

Maybe you are looking for

  • System failed after install essbase client on 11.1.2.3

    I have done a install and config of 11.1.2.3 for essbase and planning after completion I run the diagnostics green light all the way i install the EAS Client Restart the server  and then everything fails Diagnostics Generated on 08/31/2013 00:51 AM V

  • Fixed layout Epubs versus PDF!

    I have this niggling thought that I can't seem to shake off, so I'll air it out here: What is the difference between a fixed-layout ePub and a PDF? I mean, what is the intrinsic difference? Isn't a PDF precisely a fixed-layout ePub, only better? A PD

  • BUG - Reformat in 10.1.3.2 erases explicit type argument specifications

    JDeveloper: 10.1.3.2.0.4066 Explicit type argument specifications seem to be erased when using the reformat function (Ctrl-Alt-L) in JDeveloper. For example, the following code compiles and runs before a reformat: import java.util.*; class Snow {} cl

  • How to implement SCD type 6 in stored procedures

    Hi , Can you please expalin with using some examples Thanks!!

  • How do I fix a corrupt playlist on my devices?

    I've used Match on my iPhone for awhile.  Now I have a playlist on the iPhone 4 that it won't play.  It won't play any song.  It plays songs in other playlists just fine. When I hit play for any track in this particular playlist, the phone has the pl