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
typo in last commit: remove .spec from package name
[git-tools-moved-to-github.git]
/
id-release
diff --git
a/id-release
b/id-release
index
7e16687
..
b9998d9
100755
(executable)
--- a/
id-release
+++ b/
id-release
@@
-25,7
+25,7
@@
echo "Did you updated the news log file?"
for file in Changes News NEWS
do
if [ -e $file ]; then
for file in Changes News NEWS
do
if [ -e $file ]; then
- ls -l Changes
+ ls -l $file
fi
done
echo ""
fi
done
echo ""
@@
-47,6
+47,9
@@
if [ `ls |egrep '\.spec$' | wc -l` -eq 0 ]; then
else
spec=`ls |egrep '\.spec$' | head -1`
package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA`
else
spec=`ls |egrep '\.spec$' | head -1`
package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA`
+ if [ -z "$package" ]; then
+ package=`basename $spec .spec`
+ fi
fi
# configure new version
fi
# configure new version
@@
-72,8
+75,10
@@
perl -i.bak -npe "s,^Version: .*,Version: $version," $spec
######################################################################
echo ""
######################################################################
echo ""
-echo "# Please run now"
+echo "# Please commit the version updates now"
echo "git commit -a"
echo "git commit -a"
+echo ""
+echo "# Please run now"
echo "git push"
echo "git tag v$version"
echo "git push origin tag v$version"
echo "git push"
echo "git tag v$version"
echo "git push origin tag v$version"
@@
-93,7
+98,7
@@
echo "sudo rpmbuild -ba $spec"
echo "# if successfully, upload"
echo "\$HOME/proj/git-tools/id-rpm-build/upload-rpms.sh $spec"
echo ""
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 "# on kebab run: sudo su; cd $HOME/proj/git-tools/update-archive; ./update-yum-archive.sh"
######################################################################
######################################################################
@@
-107,7
+112,7
@@
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 "# 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 "# on kebab run: sudo su; cd $HOME/proj/git-tools/update-archive; ./update-archive.sh"
echo ""
echo ""