[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Debian-NYC] workshop #1 script



Hi *,
I wrote this script based upon the first workshop, I tried it on Ubuntu Jaunty.
Could someone check if it runs on Debian?  
------------------------------------------------------
export DEBEMAIL="kevin.mark@verizon.net"
export DEBFULLNAME="Kevin Mark"
PKG=units
ME=$(whoami)
#rmadison $PKG
sudo apt-get source $PKG
sudo apt-get build-dep $PKG
PKGVER=$(ls $PKG*.dsc|head -1|rev|cut -d\. -f2-|cut -d\- -f2-|rev)
DEBVER=$(ls $PKG*.dsc|head -1|rev|cut -d\. -f2-|cut -d\- -f1|rev)
PKGVER2=$(echo $PKGVER|sed "s/_/-/")

#ls $PKGVER-$DEBVER.diff.gz
#ls $PKGVER.orig.tar.gz
#ls $PKGVER-$DEBVER.dsc

sudo chown $ME:$ME $PKGVER-$DEBVER.diff.gz
sudo chown $ME:$ME $PKGVER.orig.tar.gz
sudo chown $ME:$ME $PKGVER-$DEBVER.dsc
sudo chown -R $ME:$ME $PKGVER2

echo "
--- /usr/share/misc/units.dat.orig      2009-03-19 17:27:00.000000000 +0000
+++ /usr/share/misc/units.dat   2009-03-19 17:30:42.000000000 +0000
@@ -2736,6 +2736,7 @@
 point                   computerpoint
 computerpica            12 computerpoint  # to an even 1|72 inch by computer
 postscriptpoint         computerpoint     # people at some point.
+twip                    1|20 computerpoint # abbreviation of twentieth of a point
 pspoint                 postscriptpoint
 Q                       1|4 mm            # Used in Japanese phototypesetting
" > twip.patch

#echo $PKGVER2

cd $PKGVER2;
#patch --dry-run < ../twip.patch
patch < ../twip.patch
dch -i "adding twip path"
#pwd
dpkg-buildpackage -uc -us
cd ..
#pwd
ARCH=$(ls "$PKGVER-$DEBVER"*".changes"|rev|cut -d\. -f2-|cut -d\_ -f1|rev)
MODVER=$(ls "$PKGVER-$DEBVER"*".changes"|rev|cut -d\. -f2-|cut -d\_ -f2-|rev)
echo "$MODVER"_"$ARCH"
#ls "$MODVER".diff.gz
#ls "$MODVER".dsc
#ls "$MODVER"_"$ARCH".deb
#ls "$MODVER"_"$ARCH".changes
sudo dpkg --install "$MODVER"_"$ARCH".deb
------------------------------------------------------
-- 
|  .''`.  == Debian GNU/Linux == | http://kevix.myopenid.com      |
| : :' :     The Universal OS    | mysite.verizon.net/kevin.mark/ |
| `. `'   http://www.debian.org/ | http://counter.li.org [#238656]|
|___`-____Unless I ask to be CCd, assume I am subscribed _________|

_______________________________________________
DebianNYC mailing list
DebianNYC@vireo.org
http://lists.vireo.org/cgi-bin/mailman/listinfo/debiannyc


Reply to: