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
1.1 KiB
Executable File
1.1 KiB
Executable File
#!/bin/sh
[ ! -e distro/dev-tools/scripts/make-tarball ] && exec echo Please execute '"distro/dev-tools/scripts/make-tarball"' 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 Warning! Version number in ChangeLog has some problem, please fix it!
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
[ ! -e distro/dev-tools/scripts/make-tarball ] && exec echo Please execute '"distro/dev-tools/scripts/make-tarball"' 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 Warning! Version number in ChangeLog has some problem, please fix it!
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