10 if ! (cd $repo_dir; git
diff >/dev
/null
2>&1); then
11 echo "Please run this script inside the thunix git repo" 1>&2
17 function build_clean
()
26 echo -n "build for release... "
27 (cd ${repo_dir##*/}; build_clean
>/dev
/null
2>&1 && mv *.img image
/)
29 echo -n "creating release tar package... "
30 tar --exclude-vcs -cjf thunix-
$version.
tar.bz2 thunix
31 tar --exclude-vcs -cf thunix-
$version.
tar.gz thunix
35 [ ! -d release
] && rm -rf release
&& mkdir release
36 cp ${tmp_dir}/{*.bz2
,*.gz
} release
/