"Fossies" - the Fresh Open Source Software Archive

Member "aoe-aoe6-86/mak/update-if-new.sh" (4 Jul 2015, 191 Bytes) of archive /linux/misc/aoe-aoe6-86.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 s="${1?}"
    4 
    5 if test -r mak/${s}.last; then
    6     cmp mak/${s}.out mak/${s}.last > mak/${s}.cmpout 2>&1 ||
    7         echo > mak/${s}.ts
    8 else
    9     echo > mak/${s}.ts
   10 fi
   11 cp mak/${s}.out mak/${s}.last