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 {
79
79
else
80
80
echo "Warning: $sql_file not found"
81
81
fi
82
+ mv $out/lib/wrappers-${ version } .so $out/lib/wrappers.so
82
83
83
84
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
87
86
while read -r previous_version; do
88
87
if [ "$(printf '%s\n' "$previous_version" "$current_version" | sort -V | head -n1)" = "$previous_version" ] && [ "$previous_version" != "$current_version" ]; then
89
88
new_file="$out/lib/wrappers-$previous_version.so"
90
89
echo "Creating $new_file"
91
- ln -s "$lib_file " "$new_file"
90
+ ln -s "$out/lib/wrappers.so " "$new_file"
92
91
fi
93
92
done < git_tags.txt
94
93
else
95
- echo "Warning: $lib_file not found"
94
+ echo "Warning: $out/lib/wrappers.so not found"
96
95
fi
97
96
98
97
rm git_tags.txt
99
- mv $out/lib/wrappers-${ version } .so $out/lib/wrappers.so
100
98
echo "Uncommenting module_pathname in wrappers.control..."
101
99
sed -i 's/^#module_pathname/module_pathname/' $out/share/postgresql/extension/wrappers.control
102
100
'' ;
You can’t perform that action at this time.
0 commit comments