Permalink
Browse files

Optimize package script

  • Loading branch information...
1 parent fd209bc commit 0fe0af95759c0455de2f70fbe572681cbf5f537d @lintest committed Jun 6, 2012
Showing with 28 additions and 1 deletion.
  1. +28 −1 ubuntu.sh
View
@@ -1,6 +1,6 @@
#!/bin/sh
-LIST="precise oneiric natty maverick lucid"
+LIST="quantal precise oneiric natty"
NUMBER=1
@@ -41,6 +41,33 @@ echo
echo "============================================================"
echo
+cd myrulib-$VERSION
+
+echo "myrulib ($VERSION-squeeze$NUMBER) stable; urgency=low" > debian/changelog
+cat ../../debian/changelog | sed '1d'>> debian/changelog
+
+debuild -S -sa
+
+mkdir ../osc_myrulib
+mv ../*squeeze* ../osc_myrulib
+cp ../myrulib_$VERSION.orig.tar.bz2 ../osc_myrulib
+
+echo "Source: myrulib" > debian/control
+cat ../../debian/myrulib-cr/control | sed '1d'>> debian/control
+cp ../../debian/myrulib-cr/rules debian
+
+debuild -S -sa
+
+mkdir ../osc_myrulib-cr
+cp ../*squeeze* ../osc_myrulib-cr
+cp ../myrulib_$VERSION.orig.tar.bz2 ../osc_myrulib-cr
+
+cd ..
+
+echo
+echo "============================================================"
+echo
+
cd myrulib-cr-$VERSION
rm -rf debian

0 comments on commit 0fe0af9

Please sign in to comment.