[wplug-bsd] Hello

Poyner, Brandon bpoyner at ccac.edu
Wed Nov 12 10:29:56 EST 2003


Not all is lost, you can still find the original file names.  The ports
collection has md5 sums for each distfile.  You can collect all the md5
sums, compare them to the distfiles you have and find the original names
where possible.  This is a quick and dirty hack that should get you back
most of the original file names if they are still current in ports.

#!/bin/sh

PORTS=/usr/ports
DISTFILES=/usr/ports/distfiles
TMPFILE=/tmp/distinfo

:>$TMPFILE
for i in `find $PORTS -name distinfo`; do
        cat $i >> $TMPFILE
done

for i in `find $DISTFILES -type f`; do
        MD5=`md5 $i | awk -F ' = ' '{print $2}'`
        MATCH=`grep ' = '$MD5 $TMPFILE | awk -F ' ' '{print $2}'`
        if [ "$MATCH" != "" ]; then
                echo "$i is $MATCH"
        fi
done

Brandon Poyner
Network Engineer II
CCAC - College Office
412-237-3086


-----Original Message-----
From: John Harrold [mailto:jmh17 at pitt.edu] 
Sent: Wednesday, November 12, 2003 10:05 AM
Cc: wplug-bsd at wplug.org
Subject: Re: [wplug-bsd] Hello


Sometime in November Mark Haney assaulted the keyboard and produced:

| Does anyone know if mkisofs has a setting or option that causes long 
| filenames to be preserved?

for windows you'll want to use the -J option for joliet extensions. for
everything else you'll want to check out -R for rockridge extensions.

-- 
------------------------------------------------------------------------
--
                                               | /"\
 john harrold                                  | \ / ASCII ribbon
campaign
      jmh at member.fsf.org                    |  X  against HTML mail
           the most useful idiot               | / \
------------------------------------------------------------------------
--
 What difference does it make to the dead, the orphans, and the
homeless,
 whether the mad destruction is brought under the name of
totalitarianism or
 the holy name of liberty and democracy?
 --Gandhi
------------------------------------------------------------------------
--
gpg --keyserver keys.indymedia.org --recv-key F65A739E
------------------------------------------------------------------------
--



More information about the wplug-bsd mailing list