Imported Upstream version 0.72
This commit is contained in:
1859
scripts/bash-based-configure
Normal file
1859
scripts/bash-based-configure
Normal file
File diff suppressed because it is too large
Load Diff
9
scripts/convert-wgetted.bash
Executable file
9
scripts/convert-wgetted.bash
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd $1/documentation/wget-tmp
|
||||
|
||||
for file in ??/*.html; do
|
||||
new=`echo $file | sed -e "s/.php?/_/g" | sed -e "s/.php//g"`
|
||||
to=$1/documentation/$new
|
||||
cat $file | sed -e "s/.php#/.html#/g" | sed -e "s/.php%3F/_/g" | sed -e "s/.php//g" >$to
|
||||
done
|
||||
86
scripts/distcomp.bash
Executable file
86
scripts/distcomp.bash
Executable file
@@ -0,0 +1,86 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if test $# != 1 || ! test -d $1; then
|
||||
echo "Usage: distcomp <path to alternate distribution>"
|
||||
echo
|
||||
echo "- call within source directory, e.g. dvdisaster-0.72"
|
||||
echo "- make sure both are in distclean state"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HEAD_LINES=10
|
||||
|
||||
ref=$1
|
||||
new=$(pwd)
|
||||
|
||||
# Make sure we're talking about same stuff
|
||||
|
||||
echo "Old distribution: $ref"
|
||||
echo "New distribution: $new"
|
||||
echo
|
||||
|
||||
# Looks for added files
|
||||
|
||||
ADDED=0
|
||||
echo "Files and dirs ADDED in this distribution:"
|
||||
for i in $(find .); do
|
||||
if test -d $i && ! test -e $ref/$i; then
|
||||
ADDED=$((ADDED+1))
|
||||
echo " Dir : $i"
|
||||
fi
|
||||
if test -f $i && ! test -e $ref/$i; then
|
||||
ADDED=$((ADDED+1))
|
||||
echo " File: $i"
|
||||
fi
|
||||
done
|
||||
|
||||
if test $ADDED == 0; then
|
||||
echo " None"
|
||||
fi
|
||||
|
||||
# Looks for removed files
|
||||
|
||||
cd $ref
|
||||
REMOVED=0
|
||||
echo
|
||||
echo "Files and dirs REMOVED in this distribution:"
|
||||
for i in $(find .); do
|
||||
if test -d $i && ! test -e $new/$i; then
|
||||
REMOVED=$((REMOVED+1))
|
||||
echo " Dir : $i"
|
||||
fi
|
||||
if test -f $i && ! test -e $new/$i; then
|
||||
REMOVED=$((REMOVED+1))
|
||||
echo " File: $i"
|
||||
fi
|
||||
done
|
||||
|
||||
if test $REMOVED == 0; then
|
||||
echo " None"
|
||||
fi
|
||||
|
||||
cd $new
|
||||
CHANGED=0
|
||||
echo
|
||||
echo "Files CHANGED in this distribution:"
|
||||
for i in $(find .); do
|
||||
if test -f $i && test -f $ref/$i; then
|
||||
if ! cmp -s $i $ref/$i; then
|
||||
echo $i
|
||||
diff $ref/$i $i | head -n $HEAD_LINES
|
||||
echo
|
||||
CHANGED=$((CHANGED+1))
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if test $CHANGED == 0; then
|
||||
echo " None"
|
||||
fi
|
||||
|
||||
echo
|
||||
if test $((CHANGED+ADDED+REMOVED)) == 0; then
|
||||
echo "No changes."
|
||||
else
|
||||
echo "$CHANGED changed, $ADDED added and $REMOVED removed."
|
||||
fi
|
||||
7
scripts/time-stamper.bash
Executable file
7
scripts/time-stamper.bash
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
build=$(grep BUILD $1 | cut -d\ -f3)
|
||||
build=$((build+1))
|
||||
echo "#define BUILD $build" >$1
|
||||
date=$(date +"%d.%m.%y (%A, %H:%M)")
|
||||
echo "#define BDATE \"$date\"" >>$1
|
||||
Reference in New Issue
Block a user