File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ $(XCPROJECT): $(PROJECT)/project.yml
7575$(PROJECT ) /VPNLib/vpn.pb.swift : $(PROJECT ) /VPNLib/vpn.proto
7676 protoc --swift_opt=Visibility=public --swift_out=. ' Coder-Desktop/VPNLib/vpn.proto'
7777
78- # All other protobuf targets are vendored from Mutagen
79- % .pb.swift :
78+ $(MUTAGEN_PROTO_SWIFTS ) :
8079 protoc \
8180 -I=$(PROJECT ) /VPNLib/FileSync/MutagenSDK \
8281 --swift_out=$(PROJECT ) /VPNLib/FileSync/MutagenSDK \
Original file line number Diff line number Diff line change 4949# Extract MIT License header
5050mit_start_line=$( grep -n " ^MIT License" " $clone_dir /LICENSE" | cut -d " :" -f 1)
5151if [ -z " $mit_start_line " ]; then
52- echo " Failed to find MIT License header in Mutagen LICENSE file"
52+ echo " Error: Failed to find MIT License header in Mutagen LICENSE file"
5353 exit 1
5454fi
5555license_header=$( sed -n " ${mit_start_line} ,\$ p" " $clone_dir /LICENSE" | sed ' s/^/ * /' )
@@ -87,7 +87,8 @@ add_file() {
8787 if [ -f " $import_file_path " ]; then
8888 add_file " $import_file_path "
8989 else
90- echo " Warning: Import $import_path not found"
90+ echo " Error: Import $import_path not found"
91+ exit 1
9192 fi
9293 fi
9394 done < " $filepath "
@@ -96,7 +97,7 @@ add_file() {
9697for entry_file in " ${entry_files[@]} " ; do
9798 entry_file_path=" $clone_dir /$proto_prefix /$entry_file "
9899 if [ ! -f " $entry_file_path " ]; then
99- echo " Failed to find $entry_file_path in mutagen repo"
100+ echo " Error: Failed to find $entry_file_path in mutagen repo"
100101 exit 1
101102 fi
102103 add_file " $entry_file_path "
You can’t perform that action at this time.
0 commit comments