Jump to content
Sign in to follow this  
MadTiago

Make.sh for commented locale_list

Recommended Posts

With this modifications to the original make.sh you can comment your locale_list.

Prerequisites

  • bash
How to use?

bash make.sh
Source code

#!/usr/local/bin/bash

LIST_FILE='locale_list'
BIN="./qc"

if [ -r $LIST_FILE ]; then
	rm -rdf object
	mkdir object
	while read line;
		do
			firstChar="${line:0:1}"
			if [ "$firstChar" != "#" ] && [ -n "$firstChar" ]; then
				quest=${line%#*}
				$BIN $quest
			fi
		done < $LIST_FILE
else
	echo $LIST_FILE' is missing'
fi
Example locale_list

# First quest
quest1.quest

quest2.quest # Second quest

quest3.quest
quest4.quest
Hope you like it.
  • Love 8

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.