Mageia Bugzilla – Attachment 3196 Details for
Bug 7932
opencpn = A concise ChartPlotter and Navigation software
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
a script to download the git source and compress it
mk_git_tar (text/plain), 913 bytes, created by
Philippe Didier
on 2012-12-04 22:49:47 CET
(
hide
)
Description:
a script to download the git source and compress it
Filename:
MIME Type:
Creator:
Philippe Didier
Created:
2012-12-04 22:49:47 CET
Size:
913 bytes
patch
obsolete
>#!/bin/bash ># mk_git_tar ># Generic tool for making tarballs from git ># Run this script in SOURCES ># $ ./mk_git_tar <projectname> <url> <tar_compression> [-m|-a] ># Options: ># -m runs "make -f Makefile.cvs" or "make -f Makefile.svn" ># -a runs ./autogen.sh ># Examples :- ># $ ./mk_git_tar LogbookKonni_pi git://github.com/konnibe/LogbookKonni-1.2.git tar.gz > >name=$1 >url=$2 >tartype=$3 > >[[ -d git ]] || mkdir git >cd git >if [[ -d $name ]]; then >cd $name >git pull >cd .. >else >git clone $url $name >fi >cd .. >rm -rf $name && cp -rf git/$name/ . >cd $name > >cd .. > ># Create tarball >case $tartype in >tar.gz) >opt=z >;; >tar.bz2) >opt=j >;; >tar.xz) >opt=J >;; >tar) >opt= >;; >*) >echo "Unsupported compression type" >exit 1 >esac > >echo "Please wait creating tarball..." >[[ -f $name.$tartype ]] && rm $name.$tartype >tar -c"$opt"f $name.$tartype $name/ --exclude-vcs >[[ $? = 0 ]] && chmod 644 $name.$tartype && \ >echo "Written $name.$tartype" >
#!/bin/bash # mk_git_tar # Generic tool for making tarballs from git # Run this script in SOURCES # $ ./mk_git_tar <projectname> <url> <tar_compression> [-m|-a] # Options: # -m runs "make -f Makefile.cvs" or "make -f Makefile.svn" # -a runs ./autogen.sh # Examples :- # $ ./mk_git_tar LogbookKonni_pi git://github.com/konnibe/LogbookKonni-1.2.git tar.gz name=$1 url=$2 tartype=$3 [[ -d git ]] || mkdir git cd git if [[ -d $name ]]; then cd $name git pull cd .. else git clone $url $name fi cd .. rm -rf $name && cp -rf git/$name/ . cd $name cd .. # Create tarball case $tartype in tar.gz) opt=z ;; tar.bz2) opt=j ;; tar.xz) opt=J ;; tar) opt= ;; *) echo "Unsupported compression type" exit 1 esac echo "Please wait creating tarball..." [[ -f $name.$tartype ]] && rm $name.$tartype tar -c"$opt"f $name.$tartype $name/ --exclude-vcs [[ $? = 0 ]] && chmod 644 $name.$tartype && \ echo "Written $name.$tartype"
View Attachment As Raw
Actions:
View
Attachments on
bug 7932
:
3013
|
3018
|
3189
|
3190
|
3191
|
3192
|
3193
|
3194
|
3195
|
3196
|
3200
|
3201
|
3202
|
3206
|
3210
|
3211