mike-mcgann commented on code in PR #919: URL: https://github.com/apache/daffodil/pull/919#discussion_r1089128432
########## scripts/refactor/git-restore.sh: ########## @@ -0,0 +1,60 @@ +#!/bin/bash -ex + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +BASE_DIR="$(dirname $0)/../.." +SRC_ROOT=src/main/scala/org/apache/daffodil +TEST_ROOT=src/test/scala/org/apache/daffodil + +cd $BASE_DIR + +function clean { + lib_name=$1 + target_dir=$2 + + rm -rf $lib_name/$SRC_ROOT/$target_dir + rm -rf $lib_name/$TEST_ROOT/$target_dir +} + +git restore daffodil-* + +clean daffodil-cli cli +clean daffodil-core core +# clean daffodil-io io (SKIP) +clean daffodil-lib lib +clean daffodil-macro-lib lib +clean daffodil-runtime1 runtime1 +# clean daffodil-runtime1-layers layers (SKIP) +clean daffodil-runtime1-unparser unparsers + +rm -rf daffodil-io/src/{main,test}/scala/org/apache/daffodil/io/{layers,processors} Review Comment: I wanted the git-restore script to be explicit so that I don't accidentally roll back the refactoring scripts themselves as I'm working on them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
