diff --git a/build_rpm.sh b/build_rpm.sh index 4352357..0ed40bc 100755 --- a/build_rpm.sh +++ b/build_rpm.sh @@ -41,11 +41,14 @@ fi source_tar=$name-$version.tar.gz vendor_tar=$name-$version-vendor.tar.gz +echo "Building source tarball $source_tar." +echo "Building vendor tarball $vendor_tar." + # First, we need a tarball of the source code in this very repo. -git archive --format=tar.gz --prefix=$name-$version/ -o SolutionTM-$version.tar.gz HEAD +git archive --format=tar.gz --prefix=$name-$version/ -o $source_tar HEAD # If we want an unclean build, comment out the above line and use the following instead. -# git ls-files | tar --transform='s,^,$name-$version/,' -T - -czf $source_tar +# git ls-files | tar --transform="s,^,$name-$version/," -T - -czf $source_tar # Then we need a vendor tarball of the dependencies. cargo vendor --versioned-dirs vendor