Skip to content

Commit b0fde3e

Browse files
committed
One script to rule them all.
1 parent fe178ea commit b0fde3e

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

coder-apps/install_all.cmd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@echo off
2+
if =%1-==-- echo "Usage: install_all.cmd [coderbase]" & exit /b
3+
4+
set base=%1
5+
6+
REM Create base folder
7+
IF NOT EXIST %base% (
8+
mkdir %base%
9+
)
10+
11+
echo "Copying base files...."
12+
xcopy ..\common-base\*.* %base% /E
13+
14+
echo "Installing common files"
15+
call install_common.cmd %base%

coder-apps/install_all.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
##
4+
## Copies the common platform apps to
5+
## the coder-base working directory.
6+
##
7+
## sh install_all base_path
8+
##
9+
## Eg.
10+
## sh install_all ../coder-base/
11+
12+
if [ $# != 1 ]
13+
then
14+
echo -e "\nUse:\ninstall_all coderbase\n"
15+
exit
16+
fi
17+
18+
base=$1
19+
20+
mkdir -p $base
21+
cp ../coder-base/* $base/
22+
./install_common.sh $base

0 commit comments

Comments
 (0)