I've found an corrected 3 small bugs in version 0.2 :
- Fix : Path correctly evaluate (it evaluate like it should in terminal), ~/ work
- Fix : Revision number is now correct in debian/changelog when update
- Fix : Bad output when there are many packages
Patch : Version 0.2 -> Version 0.2.1
--- debuild_CB.sh 2007-07-13 00:11:08.000000000 -1000
+++ debuild_CB-0.2.1.sh 2007-07-14 08:35:27.000000000 -1000
@@ -1,5 +1,5 @@
# Code::Blocks Build deb package script from SVN
-# Version 0.2
+# Version 0.2.1
################################################################################
# #
@@ -26,12 +26,11 @@
echo "What is your Code::Blocks sources path?"
# Ask Code::Blocks sources path
read -e CB_SOURCES_PATH
+# Evaluate CB_SOURCES_PATH like it should in terminal
+CB_SOURCES_PATH=`eval "echo $CB_SOURCES_PATH"`
+# Verification of the path made by user
echo -n 'Your Code::Blocks sources path is correct? [y/n] '
-################################## TO FIX ######################################
-# Bug : doesn't accept ~/ instead of /home/user directory syntax
-# So we have to type the entire path >.<
read CORRECT_CB_SOURCES_PATH
-################################ END TO FIX ####################################
if [ "$CORRECT_CB_SOURCES_PATH" = "y" ]; then
{
@@ -60,6 +59,7 @@
sudo svn-clean --quiet
# Update the Code:Blocks sources from SVN
svn update
+ CB_CURRENT_REV=`svn --xml info | tr -d '\r\n' | sed -e 's:.*<commit.*revision="\([0-9]*\)".*<\/commit>.*:\1:'`
}
fi
@@ -67,7 +67,7 @@
cd ..
LINE_COMPILED=`ls | grep --extended-regexp [-rev]*[0-9]+.deb | wc -l`
# Check if a compiled version of the lastest revision is available # DEV
- CB_COMPILED_REV=`ls | grep --extended-regexp [-rev]*[0-9]+.deb | sed -e "$LINE_COMPILED s:.*rev\([0-9]*\).*:\1:"`
+ CB_COMPILED_REV=`ls | grep --extended-regexp [-rev]*[0-9]+.deb | grep -n --extended-regexp [.]* | grep "$LINE_COMPILED": | sed -e "s:.*rev\([0-9]*\).*:\1:"`
echo "Your latest revision package is : $CB_COMPILED_REV"
# Go back in Code::Blocks sources directory
Now there shouldn't be anymore bugs in 0.2.
For the installation feature please wait, it'll be in the next release (it will be better than planned : now we will also also be able to choose which package already made to install).
Kurapix