File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -79,24 +79,22 @@ buildPgrxExtension_0_11_3 rec {
7979 else
8080 echo "Warning: $sql_file not found"
8181 fi
82+ mv $out/lib/wrappers-${ version } .so $out/lib/wrappers.so
8283
8384 echo "Creating wrappers.so symlinks to support pg_upgrade..."
84- lib_file="$out/lib/wrappers-$current_version.so"
85-
86- if [ -f "$lib_file" ]; then
85+ if [ -f "$out/lib/wrappers.so" ]; then
8786 while read -r previous_version; do
8887 if [ "$(printf '%s\n' "$previous_version" "$current_version" | sort -V | head -n1)" = "$previous_version" ] && [ "$previous_version" != "$current_version" ]; then
8988 new_file="$out/lib/wrappers-$previous_version.so"
9089 echo "Creating $new_file"
91- ln -s "$lib_file " "$new_file"
90+ ln -s "$out/lib/wrappers.so " "$new_file"
9291 fi
9392 done < git_tags.txt
9493 else
95- echo "Warning: $lib_file not found"
94+ echo "Warning: $out/lib/wrappers.so not found"
9695 fi
9796
9897 rm git_tags.txt
99- mv $out/lib/wrappers-${ version } .so $out/lib/wrappers.so
10098 echo "Uncommenting module_pathname in wrappers.control..."
10199 sed -i 's/^#module_pathname/module_pathname/' $out/share/postgresql/extension/wrappers.control
102100 '' ;
You can’t perform that action at this time.
0 commit comments