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
add a comment before upload command
[git-tools-moved-to-github.git]
/
id-release
diff --git
a/id-release
b/id-release
index
0eb2bf7
..
331d63a
100755
(executable)
--- a/
id-release
+++ b/
id-release
@@
-32,7
+32,7
@@
if [ `ls |egrep '\.spec$' | wc -l` -eq 0 ]; then
usage
else
spec=`ls |egrep '\.spec$' | head -1`
usage
else
spec=`ls |egrep '\.spec$' | head -1`
- package=`basename $spec .spec`
+ package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA`
fi
case $1 in
fi
case $1 in
@@
-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"