6 PACKAGE
=$
(basename "$PWD")
9 VERSION
=$
(python
-c 'from pysize.version import VERSION; print VERSION')
10 echo "$PACKAGE-$VERSION: $TEMPDIR"
11 hg archive
"$TEMPDIR/$PACKAGE-$VERSION"
14 rm "$PACKAGE-$VERSION/release.sh"
15 rm "$PACKAGE-$VERSION"/.hg
*
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"