projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check for version early
[git-tools-moved-to-github.git]
/
id-release
diff --git
a/id-release
b/id-release
index
d888b5d
..
244633a
100755
(executable)
--- a/
id-release
+++ b/
id-release
@@
-15,6
+15,11
@@
usage () {
}
######################################################################
}
######################################################################
+case $1 in
+ [0-9]* ) version=$1 ;;
+ * ) usage ;;
+esac
+
if [ -e "pom.xml" ]; then
java=true
else
if [ -e "pom.xml" ]; then
java=true
else
@@
-35,11
+40,6
@@
else
package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA`
fi
package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA`
fi
-case $1 in
- [0-9]* ) version=$1 ;;
- * ) usage ;;
-esac
-
# configure new version
perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA
# configure new version
perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA
@@
-56,6
+56,9
@@
fi
# update debian version file
perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog
# update debian version file
perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog
+# update redhat version file
+perl -i.bak -npe "s,^Version: .*,Version: $version," $spec
+
######################################################################
echo ""
echo "# Please run now"
######################################################################
echo ""
echo "# Please run now"
@@
-71,9
+74,11
@@
fi
######################################################################
echo ""
echo "# On RedHat or centos, please run the commands"
######################################################################
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 "\$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 "# if successfully, upload"
echo "\$HOME/proj/git-tools/id-rpm-build/upload-rpms.sh $spec"
echo ""
echo "# on kebab run: sudo su; cd \$HOME/proj/git-tools/update-archive; update-yum-archive.sh"
echo "\$HOME/proj/git-tools/id-rpm-build/upload-rpms.sh $spec"
echo ""
echo "# on kebab run: sudo su; cd \$HOME/proj/git-tools/update-archive; update-yum-archive.sh"
@@
-85,7
+90,8
@@
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 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 "# if successfully, upload"
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"
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"