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 sudo to call of id-pbuild-root.sh
[git-tools-moved-to-github.git]
/
id-deb-build
/
id-mk-deb-src.sh
diff --git
a/id-deb-build/id-mk-deb-src.sh
b/id-deb-build/id-mk-deb-src.sh
index
4e351bb
..
3fe1759
100755
(executable)
--- a/
id-deb-build/id-mk-deb-src.sh
+++ b/
id-deb-build/id-mk-deb-src.sh
@@
-11,28
+11,19
@@
fi
if test -f debian/.gitignore; then
cd debian; for i in `cat .gitignore`; do rm -fr $i; done; cd ..
fi
if test -f debian/.gitignore; then
cd debian; for i in `cat .gitignore`; do rm -fr $i; done; cd ..
fi
-if test -d deb-src; then
- echo "deb-src exist. You might remove it"
- exit 1
-fi
l=`head -1 $DEBCHANGELOG`
PROD=`echo $l|sed 's/ .*//g'`
VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'`
l=`head -1 $DEBCHANGELOG`
PROD=`echo $l|sed 's/ .*//g'`
VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'`
-echo "VERSION=$VERSION"
MAJOR=`echo $VERSION|sed 's/-.*//g'`
MAJOR=`echo $VERSION|sed 's/-.*//g'`
-echo "MAJOR=$MAJOR"
MINOR=`echo $VERSION|sed 's/.*-//g'`
MINOR=`echo $VERSION|sed 's/.*-//g'`
-echo "MINOR=$MINOR"
TAR=${PROD}-${MAJOR}.tar.gz
if test ! -f ${TAR}; then
echo "$0: ${TAR} missing"
exit 1
fi
set -e
TAR=${PROD}-${MAJOR}.tar.gz
if test ! -f ${TAR}; then
echo "$0: ${TAR} missing"
exit 1
fi
set -e
-mkdir deb-src
+mkdir -p deb-src
ORIG=${PROD}_${MAJOR}.orig.tar.gz
ORIG=${PROD}_${MAJOR}.orig.tar.gz
-echo "TAR=$TAR"
-echo "ORIG=$ORIG"
cp ${TAR} deb-src/${ORIG}
cd deb-src
tar xf ${ORIG}
cp ${TAR} deb-src/${ORIG}
cd deb-src
tar xf ${ORIG}