Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
✨ feat(tools): 添加环境变量脚本
Browse files Browse the repository at this point in the history
Signed-off-by: xqyjlj <xqyjlj@126.com>
  • Loading branch information
xqyjlj committed Jan 19, 2024
1 parent ea39fe9 commit 78622c8
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tools/env.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
::
:: Licensed under the GNU General Public License v. 3 (the "License");
:: You may not use this file except in compliance with the License.
:: You may obtain a copy of the License at
::
:: https://www.gnu.org/licenses/gpl-3.0.html
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
::
:: Copyright (C) 2023-2024 xqyjlj<xqyjlj@126.com>
::
:: @author xqyjlj
:: @file env.cmd
::
:: Change Logs:
:: Date Author Notes
:: ------------ ---------- -----------------------------------------------
:: 2024-01-19 xqyjlj initial version
::
@echo off

set XMAKE_RCFILES=%~dp0scripts\xmake.lua
26 changes: 26 additions & 0 deletions tools/env.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# Licensed under the GNU General Public License v. 3 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gnu.org/licenses/gpl-3.0.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Copyright (C) 2023-2024 xqyjlj<xqyjlj@126.com>
#
# @author xqyjlj
# @file env.ps1
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2024-01-19 xqyjlj initial version
#
$script_dir = Split-Path -Parent $MyInvocation.MyCommand.Definition

$env:XMAKE_RCFILES=${script_dir}+"\scripts\xmake.lua"
28 changes: 28 additions & 0 deletions tools/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

#
# Licensed under the GNU General Public License v. 3 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gnu.org/licenses/gpl-3.0.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Copyright (C) 2023-2024 xqyjlj<xqyjlj@126.com>
#
# @author xqyjlj
# @file env.sh
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2024-01-19 xqyjlj initial version
#
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

export XMAKE_RCFILES=${script_dir}/scripts/xmake.lua

0 comments on commit 78622c8

Please sign in to comment.