mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
13 lines
238 B
Bash
Executable File
13 lines
238 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PROJECT=libcork
|
|
|
|
COMMIT="$1"
|
|
if [ -z "$COMMIT" ]; then
|
|
COMMIT="HEAD"
|
|
fi
|
|
|
|
VERSION=$(git describe ${COMMIT})
|
|
git archive --prefix=${PROJECT}-${VERSION}/ --format=tar ${COMMIT} | \
|
|
bzip2 -c > ${PROJECT}-${VERSION}.tar.bz2
|