Portál AbcLinuxu, 11. května 2024 00:29

Dotaz: Ten vhodný skript nelze stáhnout

25.7.2009 16:04 kralyk z abclinuxu | skóre: 29 | blog:
Ten vhodný skript nelze stáhnout
Přečteno: 1816×
Odpovědět | Admin
Ahoj,
ten skript na vytvoření diff odkazovaný tady mi nejde stáhnout, píše to 403 Forbidden: You don't have permission to access /scripts/abcpatchgen.sh on this server.Forbidden You don't have permission to access /scripts/abcpatchgen.sh on this server.

Nehodil by ste to pls někdo někam kde bych si jej moh stáhnout, díky ;-)
diff se dá udělat hafo způsobama a já nevim kterej použít...
What Big Oil knew about climate change

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

=^..^= AmigaPower® avatar 26.7.2009 00:44 =^..^= AmigaPower® | skóre: 30 | blog: BLB | Praha
Rozbalit Rozbalit vše Re: Ten vhodný skript nelze stáhnout
Odpovědět | | Sbalit | Link | Blokovat | Admin
Tohle je celý nebo jen nějakej kousek? Já do toho nevidim... ;-)
I♥DRX * www.KERNELULTRAS.org
26.7.2009 14:24 crusoe
Rozbalit Rozbalit vše Re: Ten vhodný skript nelze stáhnout
Odpovědět | | Sbalit | Link | Blokovat | Admin

Nuz neviem co za skript to je ale google  ....

 

https://zdrojaky.abclinuxu.cz/viewvc/abclinuxu/trunk/bin/abcpatchgen.sh?annotate=2385&sortby=rev

(treba pridat bezpecnsotnu vynimku)


            #!/bin/bash            
            # This script generates a special "patch tree" composed of
            # new versions of files, original versions and patches between
                 # two file trees
                 # Author: Lubos Dolezel
                 # Modified by: Karel Piwko
                 # History:
                 # * Added support for excluding files from patch tree, motivation
                 # is to exclude configuration which differs from machine to machine
                
                 ROOTDIR="/home/kapy/devel/abclinuxu"
                 ORIGFILESDIR="${ROOTDIR}/portal" # original source tree
                 NEWFILESDIR="${ROOTDIR}/portal-devel" # modified source tree
                 TARGETDIR="${ROOTDIR}/patchtree" # output directory
                
                 ORIGEXT="orig" # original files will have a $ORIGEXT suffix
                 PATCHEXT="patch" # patch files will have a $PATCHEXT suffix
                
                 # insert space separated files which will be excluded from
                 # $TARGETDIR directory
                 # same name of file in different directories leads to multiple
                 # matches, so add directory prefix if that is your case
                 EXCLUDE_FILES="conf_devel.properties conf_deploy.properties"
               
                 function doCopy {
                 cesta=$(dirname "$1")
                
                 # Create the directory tree
                 mkdir -p "$TARGETDIR/$cesta"
                
                # Copy the new file
                 cp "$NEWFILESDIR/$1" "$TARGETDIR/$cesta"
                
                 # If original file exists...
                 if [ -f "$ORIGFILESDIR/$1" ]; then
                 # copy it
                 cp "$ORIGFILESDIR/$1" "$TARGETDIR/${1}.$ORIGEXT"
                 # and create a diff
                 diff -u "$TARGETDIR/${1}.$ORIGEXT" "$TARGETDIR/$1" >\
                 "$TARGETDIR/${1}.$PATCHEXT"
                 fi
                 }
                
                 # construct grep expression for excluding files
                 exclude=""
                 for file in $EXCLUDE_FILES; do
                 if [ -z $exclude ]; then
                 exclude="\(${file}"
                 else
                 exclude="${exclude}\|${file}"
                 fi
                 done
                 exclude="$exclude\)"
                
                 # find modified files and exclude
                 diff=$(LC_ALL=C diff -qrN "$ORIGFILESDIR" "$NEWFILESDIR" |\
                 awk '{print $2}' | grep -v $exclude)
                
                 for name in $diff; do
                 # get a relative path
                 relative="${name#$ORIGFILESDIR}"
                
                 doCopy "$relative"
                 done

=^..^= AmigaPower® avatar 26.7.2009 14:48 =^..^= AmigaPower® | skóre: 30 | blog: BLB | Praha
Rozbalit Rozbalit vše Re: Ten vhodný skript nelze stáhnout
...tys nekoukal na ten můj odkaz, co? ;-)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.