Raised This Month: $ Target: $400
 0% 

[Github] Adding .inc file from another repository


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-28-2018 , 18:06   Re: [Github] Adding .inc file from another repository
Reply With Quote #2

In git submodule --help you can find
Code:
git submodule [--quiet] add [<options>] [--] <repository> [<path>]
The optional path argument lets you set where you want it to reside in your project, but by default it will reside in /submodule-name (or /cromchat in your case), but I guess for your case you'd want this:
Code:
git submodule add https://github.com/OciXCrom/cromchat scripting/cromchat
and in your crx_chatmanager.sma you can
PHP Code:
#include "cromchat/cromchat.inc" 
The real problem is that people don't really use git here, and even less server owners that only know how to compile a plugin using simple steps. This makes it much harder for them if you want to release a plugin.

It would be s e x y if we had something along the lines of NPM.
__________________

Last edited by klippy; 02-28-2018 at 18:10.
klippy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode