# configure new version
perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA
# configure new version
perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA
# update redhat version file
perl -i.bak -npe "s,^Version: .*,Version: $version," $spec
# update redhat version file
perl -i.bak -npe "s,^Version: .*,Version: $version," $spec
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 "\$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 ""
echo "# On debian or ubuntu, please run the commands"
echo "sudo rm -rf deb-src"
######################################################################
echo ""
echo "# On debian or ubuntu, please run the commands"
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 "sudo \$HOME/proj/git-tools/id-deb-build/id-pbuild.sh"
echo "\$HOME/proj/git-tools/id-deb-build/mkdist.sh"
echo "\$HOME/proj/git-tools/id-deb-build/id-mk-deb-src.sh"
echo "sudo \$HOME/proj/git-tools/id-deb-build/id-pbuild.sh"