Browse Source

Smoother build script

Stephen Starkey 3 months ago
parent
commit
2ea66aebca
3 changed files with 9 additions and 7 deletions
  1. 8
    6
      build.sh
  2. 1
    1
      install-deps.sh
  3. 0
    0
      src/ensure-mounted.scm

+ 8
- 6
build.sh View File

@@ -1,9 +1,11 @@
1 1
 #!/bin/bash
2 2
 ./install-deps.sh
3
-FILE=ensure-mounted.scm
4
-rm -rf output
5
-mkdir output
6
-cd output
7
-cp ../$FILE .
3
+
4
+FILE=ensure-mounted
5
+SRCFILE=$FILE.scm
6
+DEST=../output
7
+cd src
8 8
 csc $FILE
9
-rm -f $FILE
9
+rm -rf $DEST
10
+mkdir $DEST
11
+mv $FILE $DEST

+ 1
- 1
install-deps.sh View File

@@ -1,3 +1,3 @@
1 1
 #!/bin/bash
2
-REQUIRED=$(cat ensure-mounted.scm  | grep require | sed -e s/\)// | awk '{print $2}')
2
+REQUIRED=$(cat src/ensure-mounted.scm  | grep require | sed -e s/\)// | awk '{print $2}')
3 3
 sudo chicken-install -x $REQUIRED

ensure-mounted.scm → src/ensure-mounted.scm View File