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
bce301a
..
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,7
+69,7
@@
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
@@
-87,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/"