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
upload script uses debian/control rather than debian/changelog
[git-tools-moved-to-github.git]
/
id-deb-build
/
id-upload.sh
diff --git
a/id-deb-build/id-upload.sh
b/id-deb-build/id-upload.sh
index
b5959bc
..
c4618a9
100755
(executable)
--- a/
id-deb-build/id-upload.sh
+++ b/
id-deb-build/id-upload.sh
@@
-7,14
+7,13
@@
fi
if test -n "$NAME"; then
PRODUCT=$NAME
else
if test -n "$NAME"; then
PRODUCT=$NAME
else
- DEBCHANGELOG=debian/changelog
- if test ! -f $DEBCHANGELOG; then
- echo "$DEBCHANGELOG missing"
+ DEBCONTROL=debian/control
+ if test ! -f $DEBCONTROL; then
+ echo "$DEBCONTROL missing"
echo "The current directory should be base source of package"
exit 1
fi
echo "The current directory should be base source of package"
exit 1
fi
- l=`head -1 $DEBCHANGELOG`
- PRODUCT=`echo $l|sed 's/ .*//g'`
+ PRODUCT=`awk '/Source:/ {print $2}' $DEBCONTROL`
fi
TAR=${PRODUCT}-${VERSION}.tar.gz
echo "TAR=$TAR"
fi
TAR=${PRODUCT}-${VERSION}.tar.gz
echo "TAR=$TAR"