forked from JeffersonLab/hd_utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|