lib/Tools/update_then
changeset 62449 1785cbadd226
parent 61216 4ca490f09ec6
child 62589 b5783412bfed
--- a/lib/Tools/update_then	Sun Feb 28 15:21:08 2016 +0100
+++ b/lib/Tools/update_then	Sun Feb 28 15:26:09 2016 +0100
@@ -4,35 +4,6 @@
 #
 # DESCRIPTION: expand old Isar command conflations 'hence' and 'thus'
 
-
-## diagnostics
-
-PRG="$(basename "$0")"
+isabelle_admin_build jars || exit $?
 
-function usage()
-{
-  echo
-  echo "Usage: isabelle $PRG [FILES|DIRS...]"
-  echo
-  echo "  Recursively find .thy files and expand old Isar command conflations:"
-  echo
-  echo "    hence  ~>  then have"
-  echo "    thus   ~>  then show"
-  echo
-  echo "  Old versions of files are preserved by appending \"~~\"."
-  echo
-  exit 1
-}
-
-
-## process command line
-
-[ "$#" -eq 0 -o "$1" = "-?" ] && usage
-
-SPECS="$@"; shift "$#"
-
-
-## main
-
-find $SPECS -name \*.thy -print0 | \
-  xargs -0 "$ISABELLE_TOOL" java isabelle.Update_Then
+"$ISABELLE_TOOL" java isabelle.Update_Then "$@"