Version references now automatically populated during package build workflow
[OSXPackageBuilder.git] / constructPkgContent.sh
index 54177b6..295c15a 100755 (executable)
@@ -42,6 +42,13 @@ echo "Copy the package skeleton (the unchanging content) to a new folder named '
 echo ""
 cp -vR pkg\ content\ skeleton pkg\ content
 
+# Replace the version number placeholders in the uninstallation script
+echo ""
+echo "Replace the version number placeholders in the uninstallation script"
+echo ""
+VERSION=`perl findversion.pl ../current/ChangeLog`
+sed "s/PRIVOXY_VERSION/${VERSION}/g" pkg\ content\ skeleton/Applications/Privoxy/uninstall.command > pkg\ content/Applications/Privoxy/uninstall.command
+
 # Copy the compiled privoxy binary from the 'current' project
 echo ""
 echo ""