init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
19
Telegram/ThirdParty/hime/distro/dev-tools/scripts/make-tarball
vendored
Executable file
19
Telegram/ThirdParty/hime/distro/dev-tools/scripts/make-tarball
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
[ ! -e distro/dev-tools/scripts/make-tarball ] && exec echo Please execute '"[1m[32mdistro/dev-tools/scripts/make-tarball[0m"' under hime directory, thanks.
|
||||
XZ_OPT=${XZ_OPT-"-5e"}
|
||||
VER_1=`head -n 1 ChangeLog`
|
||||
# Remove space, tab, BOM
|
||||
VER_2=`sed -e 's/ //g' -e 's/ //g' -e 's/\t//g' -e 's/\xef\xbb\xbf//g' ChangeLog | grep -v ^$ | head -n 1`
|
||||
[ "$VER_1" != "$VER_2" ] && exec echo [1m[31mWarning! Version number in ChangeLog has some problem, please fix it![0m
|
||||
echo -n "ChangeLog: "
|
||||
head -n 1 ChangeLog
|
||||
GIT_DIR_NAME="${PWD##*/}"
|
||||
TAR_NAME=hime-`head -n 1 ChangeLog`
|
||||
cd ..
|
||||
[ -e "$TAR_NAME" ] && exec echo "$TAR_NAME" exist. exit.
|
||||
[ -e "$TAR_NAME".tar.xz ] && exec echo "$TAR_NAME".tar.xz exist. exit.
|
||||
[ -e "$TAR_NAME".dfsg.orig.tar.xz ] && exec echo "$TAR_NAME".dfsg.orig.tar.xz exist. exit.
|
||||
cp -r $GIT_DIR_NAME $TAR_NAME
|
||||
tar --owner=0 --group=0 -Jcf "$TAR_NAME".tar.xz $TAR_NAME --exclude=.gitignore --exclude=.git
|
||||
tar --owner=0 --group=0 -Jcf "$TAR_NAME".dfsg.orig.tar.xz $TAR_NAME --exclude=.gitignore --exclude=.git --exclude=dayi3.cin
|
||||
ls -ald "$TAR_NAME".tar.xz "$TAR_NAME".dfsg.orig.tar.xz
|
||||
Reference in New Issue
Block a user