User Tools

Site Tools


rpm_tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
rpm_tools [2015/05/07 18:26]
stephdl [git_mockbuild]
rpm_tools [2015/05/07 18:27]
stephdl [contrib_migration]
Line 277: Line 277:
     curl -u 'stephdl:xxxxxxxxxxxxxx' https://api.github.com/user/repos -d '{"name": "'"$NameGitHub"'" ,  "description": "A contrib for SME9",  "homepage": "http://wiki.contribs.org",  "private": false,  "has_issues": true,  "has_wiki": true,  "has_downloads": true}'     curl -u 'stephdl:xxxxxxxxxxxxxx' https://api.github.com/user/repos -d '{"name": "'"$NameGitHub"'" ,  "description": "A contrib for SME9",  "homepage": "http://wiki.contribs.org",  "private": false,  "has_issues": true,  "has_wiki": true,  "has_downloads": true}'
     mkdir -p ~/git_work/$1     mkdir -p ~/git_work/$1
- +  
     cp -R smeserver-*/* ~/git_work/$1     cp -R smeserver-*/* ~/git_work/$1
     cp $1*.spec ~/git_work/$1     cp $1*.spec ~/git_work/$1
     cd ~/git_work/$1     cd ~/git_work/$1
- +  
       if [ -e root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/ ]; then        if [ -e root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/ ]; then 
           mkdir -p root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/           mkdir -p root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/
Line 292: Line 292:
     mv -f $1.ter.spec $1.spec     mv -f $1.ter.spec $1.spec
     rm -f $1.bis.spec     rm -f $1.bis.spec
-  +   
- +  
   ###git work    ###git work 
- +  
         if [ ! -e README.md ]; then         if [ ! -e README.md ]; then
         touch README.md         touch README.md
         echo "$1 is a contrib for SME Server, a Linux distro oriented server. see http://wiki.contribs.org" > README.md         echo "$1 is a contrib for SME Server, a Linux distro oriented server. see http://wiki.contribs.org" > README.md
         fi         fi
- +  
        ##fill empty directories        ##fill empty directories
        find * -type d -empty -exec touch {}/.gitignore \;        find * -type d -empty -exec touch {}/.gitignore \;
- +  
     git init     git init
     git add .     git add .
Line 310: Line 310:
     git remote add origin git@github.com:stephdl/$1     git remote add origin git@github.com:stephdl/$1
     git push -u -f origin sme9     git push -u -f origin sme9
- +  
   ##find the apache authentication   ##find the apache authentication
     echo ""     echo ""
Line 323: Line 323:
             echo "no apache authentication"             echo "no apache authentication"
         fi         fi
- +  
   ## help to write the changelog   ## help to write the changelog
   myDate=$(LC_ALL=C date +"%a %b %d %Y")   myDate=$(LC_ALL=C date +"%a %b %d %Y")
Line 329: Line 329:
     echo "* $myDate stephane de Labrusse <stephdl@de-labrusse.fr>"     echo "* $myDate stephane de Labrusse <stephdl@de-labrusse.fr>"
     echo "- Initial release to sme9"     echo "- Initial release to sme9"
- +  
   else   else
     echo""     echo""
rpm_tools.txt · Last modified: 2019/06/05 19:48 (external edit)