perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog
# update redhat version file
-perl -i.bak -npe "s,^Version: .*,Version: $version," IDMETA
+perl -i.bak -npe "s,^Version: .*,Version: $version," $spec
######################################################################
echo ""
######################################################################
echo ""
echo "# On RedHat or centos, please run the commands"
+echo "sudo date"
echo "\$HOME/proj/git-tools/id-deb-build/mkdist.sh"
echo "sudo cp $package-$version.tar.gz /usr/src/redhat/SOURCES/"
echo "sudo rpmbuild -ba $spec"
echo "sudo rm -rf deb-src"
echo "\$HOME/proj/git-tools/id-deb-build/mkdist.sh"
echo "\$HOME/proj/git-tools/id-deb-build/id-mk-deb-src.sh"
-echo "\$HOME/proj/git-tools/id-deb-build/id-pbuild.sh"
+echo "sudo \$HOME/proj/git-tools/id-deb-build/id-pbuild.sh"
echo "\$HOME/proj/git-tools/id-deb-build/id-pbuild.sh --upload"
echo ""
echo "# on kebab run: sudo su; cd \$HOME/proj/git-tools/update-archive; update-archive.sh"