Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markito3 committed Jan 22, 2022
1 parent 4d34ca4 commit d81fedb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions hdi_conversion/convert_halld_recon.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash
hd_interface=/home/marki/git/hd_interface
hdi_conversion=/home/marki/git/hd_utilities/hdi_conversion
repo_dir=hdi_interface_from_hdr
rm -rf $repo_dir command.sh
git clone -b for_hdi_conversion [email protected]:markito3/halld_recon $repo_dir
hd_interface=/home/marki/git/hd_interface # specify the hd_interface clone
hdi_conversion=/home/marki/git/hd_utilities/hdi_conversion # specify the hdi_conversion directory of the hd_utilities clone
repo_dir=hdi_interface_from_hdr # name the halld_recon clone
rm -rf $repo_dir command.sh # clear the decks
git clone -b for_hdi_conversion [email protected]:markito3/halld_recon $repo_dir # clone halld_recon
#cp -pr halld_recon.save halld_recon # instead of clone for testing to save time
cd $repo_dir
echo git filter-repo \\ > ../command.sh
awk '{print " --path "$1" \\"}' < $hdi_conversion/filter.txt >> ../command.sh
echo >> ../command.sh
. ../command.sh
cd $repo_dir # enter the halld_recon clone
echo git filter-repo \\ > ../command.sh # add the git filter-repo command to command.sh
awk '{print " --path "$1" \\"}' < $hdi_conversion/filter.txt >> ../command.sh # add directories to be passed through filter to command.sh
echo >> ../command.sh # display command.sh
. ../command.sh # execute command.sh, i.e., git filter-repo
git branch| awk '{print "git branch -D "$1}' | bash | grep -v "Deleted branch"
git mv src old_src
git commit -m "src moved to old_src" | grep -v "rename"
Expand Down

0 comments on commit d81fedb

Please sign in to comment.