-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'SSSD:master' into references
- Loading branch information
Showing
211 changed files
with
44,200 additions
and
42,936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/bash -x | ||
|
||
# Authors: | ||
# Lukas Slebodnik <[email protected]> | ||
|
@@ -166,10 +166,20 @@ sed -e "s/@PACKAGE_NAME@/$PACKAGE_NAME/" \ | |
> "$RPMBUILD/SPECS/$PACKAGE_NAME.spec" | ||
|
||
NAME="$PACKAGE_NAME-$PACKAGE_VERSION" | ||
TARBALL="$RPMBUILD/SOURCES/$NAME.tar.gz" | ||
|
||
git archive --format=tar --prefix="$NAME"/ \ | ||
--remote="file://$SRC_DIR" \ | ||
HEAD \ | ||
| gzip > "$RPMBUILD/SOURCES/$NAME.tar.gz" | ||
HEAD | gzip > "$TARBALL" | ||
|
||
# fallback to tar if git archive failed | ||
# tar may include more files so git archive is preferred | ||
tar -tzf "$TARBALL" &> /dev/null | ||
if [ $? -ne 0 ]; then | ||
rm -f "$TARBALL" | ||
pushd "$SRC_DIR" | ||
tar -cvzf "$TARBALL" --transform "s,^,$NAME/," * | ||
popd | ||
fi | ||
|
||
cp "$SRC_DIR"/contrib/*.patch "$RPMBUILD/SOURCES" 2>/dev/null | ||
add_patches "$RPMBUILD/SPECS/$PACKAGE_NAME.spec" \ | ||
|
Oops, something went wrong.