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 executable rights
[git-tools-moved-to-github.git]
/
id-release
diff --git
a/id-release
b/id-release
index
50b31cd
..
5345e19
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
@@
-66,14
+69,16
@@
fi
perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog
# update redhat version file
perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog
# update redhat version file
-perl -i.bak -npe "s,^Version: .*,Version: $version," $spec
+perl -i.bak -npe "s,^Version: \d+.*,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"
@@
-85,7
+90,7
@@
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 "sudo date # ask for password early"
echo "git pull"
echo "\$HOME/proj/git-tools/id-deb-build/mkdist.sh"
echo "sudo cp $package-$version.tar.gz /usr/src/redhat/SOURCES/"
echo "git pull"
echo "\$HOME/proj/git-tools/id-deb-build/mkdist.sh"
echo "sudo cp $package-$version.tar.gz /usr/src/redhat/SOURCES/"
@@
-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 ""