-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package: archive script is the same as in dnf
- Loading branch information
Jan Silhan
committed
Jan 13, 2015
1 parent
09cbb14
commit 2aaf9a8
Showing
1 changed file
with
12 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
#!/bin/bash | ||
GITREV=`git rev-parse --short HEAD` | ||
#! /bin/bash | ||
|
||
GITREV=`git log|head -1| sed 's/commit //'` | ||
[[ $# -gt 1 ]] && GITREV=$1 | ||
|
||
# shorten to 7 characters | ||
GITREV=${GITREV:0:7} | ||
|
||
echo $GITREV | ||
git archive ${GITREV} --prefix=dnf-plugins-core/ | xz > dnf-plugins-core-${GITREV}.tar.xz | ||
|
||
TARGET_DIR=$HOME/rpmbuild/SOURCES | ||
mkdir -p $TARGET_DIR | ||
git archive ${GITREV} --prefix=dnf-plugins-core/ | xz > $TARGET_DIR/dnf-plugins-core-${GITREV}.tar.xz |