shebs 02/09/03 08:24:29
Added: maintainer-scripts import-prune local-summary local-untested
Log:
New files, scripts to help maintain gcc3.
Revision Changes Path
1.1 gcc3/maintainer-scripts/import-prune
Index: import-prune
===================================================================
#!/bin/sh
# APPLE LOCAL file maintenance
# Use in directory to prune, argument is corresponding mainline source dir.
# Output is list of commands to execute; save into file and review before
# executing.
diff -r --exclude CVS --exclude '*~' --exclude '*.#*' --brief $1 . \
| grep '^Only in \.' \
| sed -e 's,Only in \([^:]*\): \(.*\)$,\1/\2,' \
| sed -e 's,\./,,g' > /tmp/prunes
for fname in `cat /tmp/prunes`; do
if head -3 $fname |grep -q 'APPLE LOCAL' || test -d $fname; then :
echo "# keeping $fname"
else
echo "rm $fname; cvs remove $fname"
fi
done
1.1 gcc3/maintainer-scripts/local-summary
Index: local-summary
===================================================================
#!/bin/sh
# APPLE LOCAL file maintenance
root="."
uniq_options=""
while :
do
case $# in
0)
break
;;
esac
option=$1
shift
case $option in
-c)
uniq_options="-c"
;;
*)
root=$option
;;
esac
done
grep 'APPLE[^_]LOCAL' -r $root | \
sed -e 's/.*APPLE/APPLE/' \
-e 's/LOCAL[: ] /LOCAL /' \
-e 's/LOCAL *begin/LOCAL/' \
-e '/LOCAL *end/d' \
-e 's/LOCAL *file/LOCAL/' \
-e 's/APPLE LOCAL[ ]*//' \
-e 's,\*/.*$,,g' \
-e 's/ dpatel//' \
-e 's/ ff//' \
-e 's/ ilr//' \
-e 's/ matt//' \
-e 's/ --matt//' \
-e 's/ sts//' \
-e 's/ turly//' \
-e 's/ tur//' \
-e 's/ zll//' \
-e 's/ 200[12]-..-..//' \
-e 's/ 200[12]-.-..//' \
-e 's/ 200[12][0-9][0-9][0-9][0-9]//' \
-e 's,[ */"\\]*$,,g' | \
sort | uniq $uniq_options
1.1 gcc3/maintainer-scripts/local-untested
Index: local-untested
===================================================================
#!/bin/sh
# APPLE LOCAL file maintenance
# Use from the toplevel directory.
local-summary gcc >/tmp/locals1
local-summary gcc/testsuite >/tmp/locals2
diff -u /tmp/locals1 /tmp/locals2 | grep '^-' | sed -e 's/^-//'