6 PACKAGE
=$
(basename "$PWD")
9 VERSION
=$
(python
-c "from $PACKAGE.version import VERSION; print VERSION")
10 echo "$PACKAGE-$VERSION: $TEMPDIR"
11 mkdir
"$TEMPDIR/$PACKAGE-$VERSION"
12 git archive HEAD |
(cd "$TEMPDIR/$PACKAGE-$VERSION" && tar vx
)
15 rm "$PACKAGE-$VERSION/release.sh"
16 tar czf
"$DIR/dist/$PACKAGE-$VERSION.tar.gz" "$PACKAGE-$VERSION"
17 tar cjf
"$DIR/dist/$PACKAGE-$VERSION.tar.bz2" "$PACKAGE-$VERSION"
18 cd "$PACKAGE-$VERSION"
20 mv "dist/$PACKAGE-$VERSION-1."{noarch
,src
}.rpm
"$DIR/dist"